/* Kettle: a warm-neutral news page. Heat orange is the one accent: fills, live dots, rank numbers. */

:root {
  --heat: #ff4f1f;
  --heat-soft: #ffb199;
  --background: #faf9f7;
  --surface: #f1eeea;
  --surface-strong: #e6e1db;
  --text: #17120f;
  --muted: #645b55;
  --accent-text: #bf360c;
  --on-heat: #17120f;
  --heat-tint: rgb(255 79 31 / 0.12);
  --header-background: rgb(250 249 247 / 0.86);
  --band-background: #17120f;
  --band-text: #f4efea;
  --band-muted: #c9bdb4;
  --input-background: #faf9f7;
  --input-text: #17120f;
  --input-border: transparent;
  --shadow: 0 1px 2px rgb(23 18 15 / 0.06), 0 8px 24px -12px rgb(23 18 15 / 0.25);
  --radius: 12px;
  --page-width: 1200px;
  --gutter: 16px;
  --headline-font: Archivo, "Arial Narrow", system-ui, sans-serif;
  --reading-font: Newsreader, Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dither-placeholder: url("/assets/dither/placeholder-light.png");
  --dither-boiling: url("/assets/dither/boiling-heat-light.png");
  --dither-section: url("/assets/dither/section-glow-light.png");
  --dither-halo: url("/assets/dither/halo-light.png");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #110d0b;
    --surface: #1c1714;
    --surface-strong: #29221e;
    --text: #f4efea;
    --muted: #a99e96;
    --accent-text: #ff7a4f;
    --heat-tint: rgb(255 79 31 / 0.16);
    --header-background: rgb(17 13 11 / 0.82);
    --band-background: #1c1714;
    --input-background: #110d0b;
    --input-text: #f4efea;
    --input-border: rgb(244 239 234 / 0.22);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 28px -14px rgb(0 0 0 / 0.8);
    --dither-placeholder: url("/assets/dither/placeholder-dark.png");
    --dither-boiling: url("/assets/dither/boiling-heat-dark.png");
    --dither-section: url("/assets/dither/section-glow-dark.png");
    --dither-halo: url("/assets/dither/halo-dark.png");
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--headline-font);
  font-size: 16px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--heat);
  outline-offset: 3px;
  border-radius: 6px;
}

main.page {
  flex: 1;
}

.page {
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 760px) {
  :root {
    --gutter: 24px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 8px 12px;
  background: var(--heat);
  color: var(--on-heat);
  z-index: 20;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Only the logo uses picture; the wrapper should not change layout. */
picture {
  display: contents;
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
}

/* Site header: one sticky bar with the brand, the sections and the actions */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-background);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgb(23 18 15 / 0.35);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.wordmark {
  font-size: 28px;
  font-weight: 900;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.045em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease-out);
}

.brand:hover .brand-mark img {
  transform: rotate(-8deg) scale(1.05);
}

.site-nav {
  display: flex;
  flex: 1;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .icon {
  color: var(--heat);
  transition: transform 0.25s var(--ease-out);
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.site-nav a:hover .icon {
  transform: translateY(-1px) scale(1.12);
}

.site-nav a[aria-current="page"] {
  background: var(--heat-tint);
  color: var(--accent-text);
}

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--text);
  transition: background-color 0.2s ease;
}

.icon-button:hover {
  background: var(--surface);
}

.header-actions .button-small {
  height: 38px;
}

/* Narrow screens: brand and actions on top, the sections scroll in a row below. */
@media (max-width: 979px) {
  .header-row {
    flex-wrap: wrap;
    gap: 0 12px;
    min-height: 0;
    padding-top: 10px;
  }

  .site-nav {
    flex-basis: 100%;
    order: 3;
    margin: 6px calc(-1 * var(--gutter)) 0;
    padding: 0 calc(var(--gutter) - 12px) 8px;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
}

@media (max-width: 479px) {
  .wordmark {
    font-size: 25px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .icon-button {
    display: none;
  }

  .site-nav a {
    padding: 7px 10px;
    font-size: 14px;
  }
}

/* Shared story bits */

.headline {
  margin: 0;
  font-family: var(--headline-font);
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  letter-spacing: -0.012em;
  line-height: 1.12;
  text-wrap: balance;
}

/* An underline that draws in under the headline on hover. */
.headline-text {
  background-image: linear-gradient(var(--heat), var(--heat));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 0.3s var(--ease-out);
}

a:hover .headline-text,
a:focus-visible .headline-text {
  background-size: 100% 2px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.topic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-text);
  font-weight: 700;
}

.topic .icon {
  width: 14px;
  height: 14px;
  color: var(--heat);
}

.meta .separator {
  opacity: 0.6;
}

.meta time,
.timeline-time time {
  font-variant-numeric: tabular-nums;
}

/* Until a picture loads, its frame shows a halftone of sparse dots. */
.frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--dither-placeholder) 0 0 / 16px 16px repeat, var(--surface-strong);
  image-rendering: pixelated;
}

.frame img {
  image-rendering: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

a:hover .frame img {
  transform: scale(1.04);
}

.card-dek {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--reading-font);
  font-size: 16px;
  line-height: 1.4;
}

/* Fresh stories (under two hours) get a pulsing dot; time.js adds the label. */

.fresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-weight: 700;
}

.pulse-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--heat);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--heat);
  opacity: 0;
}

/* Front: lead story with the top stack beside it */

.front {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}

.lead {
  display: grid;
  gap: 18px;
}

.lead .frame {
  aspect-ratio: 16 / 9;
}

.lead .headline {
  font-size: clamp(32px, 7.4vw, 56px);
  font-weight: 850;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.lead .headline-text {
  background-size: 0 4px;
}

.lead a:hover .headline-text {
  background-size: 100% 4px;
}

.lead .dek {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-family: var(--reading-font);
  font-size: 20px;
  line-height: 1.4;
}

.lead .meta {
  margin-top: 12px;
  font-size: 14px;
}

.stack-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 850;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.compact-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  align-items: start;
}

.compact .frame {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.stack-feature a {
  display: grid;
  gap: 12px;
}

.stack-feature .frame {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}

.stack-feature .headline {
  font-size: 22px;
  font-variation-settings: "wdth" 82;
  line-height: 1.1;
}

.stack-feature .meta {
  margin-top: 0;
}

/* On phones the stack reads as rows; the picture-on-top feature is for the desktop column. */
@media (max-width: 999px) {
  .stack-feature a {
    grid-template-columns: minmax(0, 1fr) 112px;
    grid-template-rows: auto 1fr;
    gap: 6px 14px;
  }

  .stack-feature .frame {
    grid-column: 2;
    grid-row: 1 / span 2;
    border-radius: 8px;
  }

  .stack-feature .headline {
    grid-column: 1;
    grid-row: 1;
    font-size: 17px;
    font-variation-settings: "wdth" 88;
    line-height: 1.18;
  }

  .stack-feature .meta {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
}

.compact .headline {
  font-size: 17px;
  line-height: 1.18;
}

.compact .meta {
  margin-top: 6px;
}

@media (min-width: 1000px) {
  .front {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .front-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .front-single .lead {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }

  .top-stack {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
  }

  .compact a {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .compact .headline {
    font-size: 18px;
  }
}

/* Briefing band: the timeline and the ranked list */

.briefing {
  display: grid;
  gap: 48px;
  margin-top: 64px;
}

@media (min-width: 1000px) {
  .briefing {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
}

.timeline {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  margin: 0 -12px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.timeline a:hover {
  background: var(--surface);
}

.timeline-time {
  padding-top: 3px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.timeline-text {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.timeline .headline {
  font-size: 19px;
}

.timeline .topic {
  font-size: 13px;
}

/* Heat rises from the bottom edge of the panel; the extra bottom padding keeps it clear of the text. */
.boiling {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 24px 24px 72px;
  border-radius: var(--radius);
  background: var(--surface);
}

.boiling::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 360px;
  height: 90px;
  background: var(--dither-boiling) 0 0 / 360px 540px no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  --dither-travel: -450px;
}

.boiling-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 26px;
  font-weight: 850;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.flame-icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--heat);
  transform-origin: 50% 90%;
}

.boiling-note {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.boiling-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: boiling;
}

.boiling-list li {
  counter-increment: boiling;
}

.boiling-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
}

.boiling-list a::before {
  content: counter(boiling);
  grid-row: span 2;
  color: var(--heat);
  font-size: 36px;
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.boiling-list .headline {
  font-size: 17px;
  line-height: 1.18;
}

.boiling-list .meta {
  margin-top: 6px;
}

/* Section blocks */

.section {
  margin-top: 72px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.28em;
  margin: 0;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 850;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
  line-height: 1;
}

.section-title .icon {
  width: 0.7em;
  height: 0.7em;
  color: var(--heat);
}

.section-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 700;
}

.section-link .arrow {
  transition: transform 0.2s var(--ease-out);
}

.section-link:hover .arrow {
  transform: translateX(3px);
}

/* Card grid: rows on phones, cards from tablet up */

.card-grid {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.card .frame {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.card .headline {
  font-size: 17px;
  line-height: 1.18;
}

.card .card-dek {
  display: none;
}

.card .meta {
  margin-top: 6px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .card a {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card .frame {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    transition: box-shadow 0.3s ease, transform 0.3s var(--ease-out);
  }

  .card a:hover .frame {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
  }

  .card .headline {
    font-size: 21px;
  }

  .card .card-dek {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .card .meta {
    margin-top: 10px;
  }
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Section rails: a feature and a list; every other rail flips sides */

.rail-body {
  display: grid;
  gap: 24px;
}

.rail-feature a {
  display: grid;
  gap: 14px;
}

.rail-feature .frame {
  aspect-ratio: 16 / 9;
}

.rail-feature .headline {
  font-size: clamp(22px, 5vw, 28px);
  font-variation-settings: "wdth" 80;
  line-height: 1.08;
}

.rail-feature .card-dek {
  margin-top: 0;
}

.rail-feature .meta {
  margin-top: 0;
}

@media (min-width: 1000px) {
  .rail-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .rail-flipped .rail-feature {
    order: 2;
  }
}

/* Newsletter and X band, dark with the banner's orange glow */

.signup-band {
  position: relative;
  display: grid;
  gap: 32px;
  margin-top: 80px;
  padding: 32px 24px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 20px;
  background: var(--band-background);
  color: var(--band-text);
}

/* The banner's orange glow, as ordered dither: 150 by 100 cells drawn at 4px each, six breathing frames. */
.signup-band::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 600px;
  height: 400px;
  background: url("/assets/dither/signup-glow.png") 0 0 / 600px 2400px no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  --dither-travel: -2000px;
}

.signup-band h2 {
  margin: 0;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 850;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.signup-band p {
  max-width: 44ch;
  margin: 10px 0 0;
  color: var(--band-muted);
  font-family: var(--reading-font);
  font-size: 17px;
  line-height: 1.45;
}

/* Stacked on phones, the text runs full width, so the glow shrinks to 3px cells and gets room below the button. */
@media (max-width: 859px) {
  .signup-band {
    padding-bottom: 80px;
  }

  .signup-band::after {
    width: 450px;
    height: 300px;
    background-size: 450px 1800px;
    --dither-travel: -1500px;
  }
}

@media (min-width: 860px) {
  .signup-band {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 56px;
    padding: 44px 48px;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--heat);
  color: var(--on-heat);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}

.button:hover {
  background: var(--heat-soft);
}

.button:active {
  transform: scale(0.97);
}

.button .icon {
  width: 18px;
  height: 18px;
}

button.button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.button-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 15px;
}

.button-small .icon {
  width: 16px;
  height: 16px;
}

.button-light {
  margin-top: 18px;
  background: var(--band-text);
  color: #17120f;
}

.button-light:hover {
  background: #ffffff;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.subscribe-form input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--input-background);
  color: var(--input-text);
  font: inherit;
  font-size: 16px;
}

/* Section page header */

.section-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 32px;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--surface);
}

.section-hero::after {
  content: "";
  position: absolute;
  top: -56px;
  right: -64px;
  z-index: -1;
  width: 260px;
  height: 180px;
  background: var(--dither-section) 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

.section-hero h1 {
  display: flex;
  align-items: center;
  gap: 0.22em;
  margin: 0;
  font-size: clamp(48px, 13vw, 88px);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.section-hero h1 .icon {
  width: 0.62em;
  height: 0.62em;
  color: var(--heat);
}

.section-description {
  max-width: 50ch;
  margin: 12px 0 0;
  font-family: var(--reading-font);
  font-size: 20px;
  line-height: 1.4;
}

.section-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.section-facts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
}

.section-facts a:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 760px) {
  .section-hero {
    padding: 40px 44px;
  }

  .section-hero::after {
    top: 0;
    right: 0;
    width: 520px;
    height: 360px;
  }
}

.section-grid {
  margin-top: 56px;
}

.empty {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
}

/* Story page */

.story-layout {
  display: grid;
  gap: 56px;
  margin-top: 32px;
}

.story {
  min-width: 0;
  max-width: 720px;
}

.story h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 58px);
  font-weight: 850;
  font-variation-settings: "wdth" 75;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}

.story .dek {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--reading-font);
  font-size: 22px;
  line-height: 1.4;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.byline img {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.byline p {
  margin: 0;
}

.byline-name {
  font-size: 15px;
  line-height: 1.35;
}

.byline-name strong {
  font-weight: 800;
}

.byline-name a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.byline .meta {
  margin-top: 4px;
}

.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 28px 0 0;
}

.story-images figure {
  min-width: 0;
  margin: 0;
}

.story-images .frame {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.story-images figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.story-images figcaption a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 640px) {
  .story-images {
    gap: 12px;
  }

  .story-images figcaption {
    font-size: 13px;
  }
}

.story-body {
  margin-top: 32px;
  font-family: var(--reading-font);
  font-size: 21px;
  line-height: 1.6;
}

.story-body p {
  margin: 0 0 20px;
}

.sources {
  margin-top: 36px;
}

.sources h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 850;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.01em;
}

.sources ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color 0.2s ease;
}

.sources a:hover {
  background: var(--surface-strong);
}

.sources .outlet {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

.sources .source-title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sources .source-title::after {
  content: "\00a0↗";
  color: var(--heat);
}

.sources .via {
  color: var(--muted);
  font-weight: 500;
}

@media (min-width: 1100px) {
  .story-layout {
    grid-template-columns: minmax(0, 720px) minmax(0, 340px);
    justify-content: space-between;
    align-items: start;
  }

  .story-layout .boiling {
    position: sticky;
    top: 72px;
  }
}

/* About, contact, privacy, terms */

.prose {
  max-width: 680px;
  margin: 40px auto 0;
  font-family: var(--reading-font);
  font-size: 20px;
  line-height: 1.6;
}

.prose h1 {
  margin: 0 0 20px;
  font-family: var(--headline-font);
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  letter-spacing: -0.02em;
  line-height: 1;
}

.prose h2 {
  margin: 40px 0 8px;
  font-family: var(--headline-font);
  font-size: 24px;
  font-weight: 850;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.prose p {
  margin: 0 0 16px;
}

.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

/* Footer */

.site-footer {
  margin-top: 88px;
  background: var(--surface);
}

.site-footer .page {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.footer-brand .wordmark {
  font-size: 26px;
}

.footer-brand .brand-mark,
.footer-brand .brand-mark img {
  width: 32px;
  height: 32px;
}

.site-footer p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 15px;
  font-weight: 600;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-text);
}

/* 404 */

.not-found {
  max-width: 560px;
  margin: 64px auto 0;
  text-align: center;
}

/* The halo is wider than a phone; clip it sideways at the page edge, never vertically. */
.not-found {
  isolation: isolate;
}

main:has(.not-found) {
  overflow-x: clip;
}

/* The logo sits in a dithered halo, like the kettle glowing on the banner. */
.not-found-mark {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.not-found-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 400px;
  height: 256px;
  margin: -128px 0 0 -200px;
  background: var(--dither-halo) 0 0 / 400px 1536px no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  --dither-travel: -1280px;
}

.not-found img {
  width: 120px;
  height: 120px;
  border-radius: 28px;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(40px, 10vw, 60px);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  letter-spacing: -0.02em;
  line-height: 1;
  text-wrap: balance;
}

.not-found p {
  margin: 16px 0 28px;
  color: var(--muted);
  font-family: var(--reading-font);
  font-size: 20px;
}

/* Motion: only for readers who have not asked for less */

@media (prefers-reduced-motion: no-preference) {
  .flame-icon {
    animation: flame-flicker 1.6s ease-in-out infinite;
  }

  .fresh .pulse-dot::after {
    animation: pulse-ring 1.8s ease-out infinite;
  }

  /* Whole-frame steps keep every dither cell on its pixel grid. */
  .signup-band::after,
  .not-found-mark::before {
    animation: dither-breathe 3.6s steps(6, jump-none) infinite alternate;
  }

  .boiling::after {
    animation: dither-breathe 1.8s steps(6, jump-none) infinite alternate;
  }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
  }

  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  /* Cards inside a revealed block follow one after another. */
  .js [data-reveal] .card,
  .js [data-reveal] .compact,
  .js [data-reveal] .timeline li,
  .js [data-reveal] .boiling-list li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
    transition-delay: calc(var(--reveal-order, 0) * 60ms);
  }

  .js [data-reveal].is-revealed .card,
  .js [data-reveal].is-revealed .compact,
  .js [data-reveal].is-revealed .timeline li,
  .js [data-reveal].is-revealed .boiling-list li {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame img,
  .card .frame,
  .brand-mark img {
    transition: none;
  }

  a:hover .frame img,
  .card a:hover .frame,
  .brand:hover .brand-mark img {
    transform: none;
  }
}

@keyframes flame-flicker {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  30% {
    transform: scale(1.06, 0.96) rotate(-3deg);
  }

  60% {
    transform: scale(0.97, 1.05) rotate(2deg);
  }
}

@keyframes dither-breathe {
  to {
    background-position: 0 var(--dither-travel);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

/* Pointer-following dither glow (dither-hover.js). It sits under the panel's content, above its background. */
.has-dither-hover {
  position: relative;
}

.dither-hover {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}
