@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1f3f4;
  --ink: #16212b;
  --muted: #56636f;
  --rule: #d2d8dc;
  --brass: #9c7326;
  --brass-soft: #c9a75f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17222b;
    --ink: #e7ebee;
    --muted: #9aa7b2;
    --rule: #2e3c48;
    --brass: #d2ad62;
    --brass-soft: #8e7134;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: inherit; text-decoration-color: var(--brass-soft); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--brass); }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.name { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.masthead-links { display: flex; gap: 1.5rem; }
.masthead-links a { color: var(--muted); font-size: 0.9375rem; }

/* Hero: the one bold element */
.hero { padding-top: clamp(3rem, 10vw, 8rem); padding-bottom: 2.5rem; }
.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.75rem, 8.2vw, 7rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.lede {
  margin: 2rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

/* Recovery curve */
.curve svg { display: block; width: 100%; height: clamp(64px, 9vw, 120px); overflow: visible; }
.curve-base { fill: none; stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve-line { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.curve-dot { fill: var(--brass); }
.curve { position: relative; margin: 1rem auto 2.5rem; }
.curve-labels {
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: clamp(64px, 9vw, 120px);
  font-size: 0.8125rem;
  color: var(--muted);
  pointer-events: none;
}
.curve-labels span { position: absolute; white-space: nowrap; transform: translateX(-50%); }
.lbl-incident { left: 45.7%; top: calc(87% + 0.6rem); }
.lbl-recovered { left: 63.3%; top: calc(33% - 1.7rem); }

/* Content rows */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
}
.row:first-of-type { margin-top: 3.5rem; }
.row h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.body { max-width: 40rem; }
.body p { margin: 0 0 1rem; }
.body p:last-child { margin-bottom: 0; }

@media (min-width: 48rem) {
  .row { grid-template-columns: 14rem 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

/* Topics */
.topics { margin: 0; display: grid; gap: 1.75rem; }
.topics dt { font-weight: 650; font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.01em; }
.topics dd { margin: 0.35rem 0 0; color: var(--muted); }

/* Press */
.outlets { font-size: 1.1875rem; line-height: 1.5; margin: 0 0 2rem !important; }
.press { list-style: none; margin: 0; padding: 0; }
.press li { padding: 1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.2rem; }
.press li:first-child { padding-top: 0; }
.press li:last-child { border-bottom: 0; padding-bottom: 0; }
.press a { font-weight: 550; font-size: 1.0625rem; line-height: 1.4; }
.press .meta { color: var(--muted); font-size: 0.875rem; }

/* Contact */
.email { font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.email a { word-break: break-word; }
.social { margin-top: 0.75rem !important; }

/* Footer */
.footer {
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer p { margin: 0 0 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }
