@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #16120F;
  --surface: #1F1A16;
  --text: #F2EBE1;
  --text-dim: #A89C8F;
  --line: #2E2721;
  --accent: #C8826A;
  --spectrum-start: #4A4038;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --header-h: 3.5rem;
  --gutter: 1.25rem;
  --max: 68rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Type scale: tracking and leading set per size */
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-synthesis: none; }
h1 {
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
h2 {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
h1 em { font-style: italic; }
.label {
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 500;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}
.small {
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}

/* Translucent header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  background: rgba(22, 18, 15, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem;
  background: linear-gradient(rgba(22, 18, 15, 0.55), rgba(22, 18, 15, 0));
  pointer-events: none;
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 1rem; }
.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }
.long { display: none; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

/* Sections */
section { padding: 2.25rem 0; }
main section + section { border-top: 1px solid var(--line); }

.intro {
  --peek: 8.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h) - var(--peek));
  padding: 1.5rem 0 2rem;
}
.intro h1 {
  font-size: clamp(3rem, 14.5vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 9.2em;
  margin-bottom: 1.25rem;
}
.nowrap { white-space: nowrap; }
.intro .lede {
  font-size: 1.1875rem;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--text);
  max-width: 36rem;
}

/* The journey (phone first) */
.journey-intro { color: var(--text-dim); max-width: 40rem; margin: -0.5rem 0 1.5rem; }
.journey { position: relative; }
.j-key { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.01em; font-weight: 500; margin: 0 0 1.25rem; }
.k-lose { color: var(--text-dim); }
.k-does { color: var(--accent); }
.k-does::before { content: "→ "; }
.j-head, .j-band { display: none; }
.j-end { display: block; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.02em; font-weight: 500; color: var(--text-dim); padding-left: 2.25rem; }
.j-start { margin-bottom: 0.625rem; }
.j-finish { order: 99; margin-top: 0.625rem; color: var(--accent); }
.journey { display: flex; flex-direction: column; }
.j-stages { position: relative; padding-left: 2.25rem; }
.j-stages::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 0.75rem;
  clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
  background: linear-gradient(var(--spectrum-start), var(--accent));
}
.j-stages li { position: relative; padding-bottom: 1rem; }
.j-stages li:last-child { padding-bottom: 0; }
.j-stages li::before {
  content: "";
  position: absolute;
  left: -2.125rem;
  top: 0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px var(--bg);
}
.j-stages li:last-child::before { background: var(--accent); }
.j-stages span { display: block; }
.j-name { font-weight: 600; font-size: 1rem; line-height: 1.35; margin-bottom: 0.125rem; }
.j-lose, .j-does { font-size: 0.9375rem; line-height: 1.4; }
.j-lose { color: var(--text-dim); }
.j-does { color: var(--text); position: relative; padding-left: 1.25rem; margin-top: 0.125rem; }
.j-does::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.reporting { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.875rem; }
.reporting h3 { margin: 0 0 0.375rem; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
.reporting-text p { margin: 0; font-size: 0.9375rem; line-height: 1.4; color: var(--text-dim); }
.report-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem 0.5rem;
}
.report-card-title { margin: 0 0 0.25rem; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.01em; font-weight: 600; color: var(--text-dim); }
.report-card dl { margin: 0; }
.report-card dl > div { padding: 0.4375rem 0; border-top: 1px solid var(--line); }
.report-card dl > div:first-child { border-top: 0; }
.report-card dt { font-size: 0.9375rem; line-height: 1.3; font-weight: 600; }
.report-card dd { margin: 0; font-size: 0.8125rem; line-height: 1.35; color: var(--text-dim); }
.report-card .key dt { color: var(--text); font-weight: 600; }
.report-monthly { margin: 0; font-size: 0.9375rem; line-height: 1.4; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
.num {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.01em;
  font-weight: 400;
  font-synthesis: none;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.375rem;
}
.stat p { font-size: 0.9375rem; line-height: 1.4; margin: 0 0 0.25rem; max-width: 26rem; }
.stat .small { margin: 0; font-size: 0.75rem; }
.ref { color: var(--text-dim); text-decoration: none; }

.funfact {
  margin-top: 1.75rem;
  padding: 1.25rem 1.25rem 1.375rem;
  border-radius: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.funfact p { font-size: 1.0625rem; line-height: 1.45; color: var(--text); }
.funfact .funfact-label {
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.375rem;
}

/* About */

/* Footer */
.site-footer { padding: 2.5rem 0 2.75rem; border-top: 1px solid var(--line); }
.contact { font-size: 1rem; margin-bottom: 1.5rem; }
.contact .small { display: block; margin-top: 0.25rem; }
.sources h2 {
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.sources ul { list-style: none; padding: 0; }
.sources li { margin-bottom: 0.5rem; }
.sources a { color: var(--text-dim); text-underline-offset: 2px; word-break: break-word; }
.legal { margin-top: 1.5rem; }
.legal a { color: var(--text-dim); text-underline-offset: 2px; }

/* Gentle, once-only fade in (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(1rem); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .site-nav a { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-dim: #E2D9CD; --line: #6B5F54; }
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--text); }
  .site-header::after { display: none; }
}

/* Privacy page */
.doc { padding: 3rem 0 4rem; }
.doc .wrap > * { max-width: 40rem; }
.doc h1 { font-size: 2.75rem; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.005em; margin: 2.25rem 0 0.75rem; }
.doc ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1em; }
.doc li { margin-bottom: 0.375rem; }
.doc li::marker { color: var(--text-dim); }
.doc .small { margin-bottom: 2rem; }

/* Larger screens */
@media (min-width: 30rem) {
  .long { display: inline; }
}
@media (min-width: 48rem) {
  :root { --gutter: 2.5rem; --header-h: 4rem; }
  .wordmark { font-size: 1rem; }
  .site-nav { gap: 1.75rem; }
  .site-nav a { font-size: 0.875rem; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.75rem; margin-bottom: 2.25rem; }
  section { padding: 5rem 0; }
  .intro { --peek: 10rem; padding: 2.5rem 0; }
  .intro .lede { font-size: 1.375rem; max-width: 40rem; }
  .stats { gap: 2.5rem 3rem; }
  .num { font-size: 3.75rem; }
  .stat p { font-size: 1rem; }
  .stat .small { font-size: 0.8125rem; }
}
@media (min-width: 64rem) {
  h1 { font-size: 3.5rem; line-height: 1.07; }
  h2 { font-size: 3rem; }
  .num { font-size: 4.5rem; }
  .journey {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto auto auto auto;
    column-gap: 1.25rem;
  }
  .j-key { display: none; }
  .j-end { grid-row: 1; padding: 0; margin: 0 0 0.5rem; }
  .j-start { grid-column: 1; justify-self: start; }
  .j-finish { grid-column: 6; justify-self: end; }
  .j-band {
    display: grid;
    grid-row: 2;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    position: relative;
    height: 1.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
  }
  .j-band::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, 100% 30%, 100% 70%, 0 100%);
    background: linear-gradient(90deg, var(--spectrum-start), var(--accent));
  }
  .j-band i { position: relative; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--bg); margin-left: 0.125rem; }
  .j-band i:last-child { background: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--accent); }
  .j-head { display: block; grid-column: 1 / -1; margin: 1.5rem 0 0.625rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); font-size: 0.8125rem; line-height: 1.4; letter-spacing: 0.01em; font-weight: 500; }
  .j-head-lose { grid-row: 4; color: var(--text-dim); }
  .j-head-does { grid-row: 6; color: var(--accent); }
  .j-stages { display: contents; }
  .j-stages::before, .j-stages li::before, .j-does::before { content: none; }
  .j-stages li { display: grid; grid-row: 3 / span 5; grid-template-rows: subgrid; padding: 0; }
  .j-stages li:nth-child(1) { grid-column: 1; } .j-stages li:nth-child(2) { grid-column: 2; } .j-stages li:nth-child(3) { grid-column: 3; }
  .j-stages li:nth-child(4) { grid-column: 4; } .j-stages li:nth-child(5) { grid-column: 5; } .j-stages li:nth-child(6) { grid-column: 6; }
  .j-name { grid-row: 1; margin: 0; }
  .j-lose { grid-row: 3; }
  .j-does { grid-row: 5; padding: 0; margin: 0; }
  .j-name, .j-lose, .j-does { font-size: 0.875rem; align-self: start; }
  .j-name { font-size: 0.9375rem; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reporting { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: min-content 1fr; column-gap: 4rem; row-gap: 1.25rem; align-items: start; margin-top: 2.5rem; padding-top: 2rem; }
  .reporting h3 { font-size: 1.5rem; }
  .reporting-text p, .report-monthly { font-size: 1rem; }
  .report-monthly { grid-column: 1; grid-row: 2; color: var(--text-dim); }
  .reporting-card-wrap { grid-column: 2; grid-row: 1 / span 2; }
  .report-card dl > div { display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline; }
  .report-card dd { text-align: right; }
}

