/* ------------------------------------------------------------------
   Marriage Politics — design tokens + components
   Concept: "The statehouse and the kitchen table." A political journal's
   authority (ink navy, Fraunces serif) warmed by the home (parchment,
   lamp-light gold) with one oxblood accent reserved for the hard news.
------------------------------------------------------------------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Color — OKLCH */
  --paper: oklch(96.5% 0.012 85);
  --paper-2: oklch(93.5% 0.018 85);
  --paper-3: oklch(89% 0.022 85);
  --ink: oklch(24% 0.045 265);
  --ink-2: oklch(30% 0.05 265);
  --ink-deep: oklch(18% 0.04 265);
  --text: oklch(22% 0.03 265);
  --text-muted: oklch(44% 0.025 265);
  --text-faint: oklch(58% 0.02 265);
  --line: oklch(22% 0.03 265 / 0.14);
  --line-strong: oklch(22% 0.03 265 / 0.3);
  --accent: oklch(46% 0.17 20);        /* oxblood */
  --accent-strong: oklch(40% 0.17 20);
  --accent-soft: oklch(46% 0.17 20 / 0.1);
  --gold: oklch(80% 0.14 82);          /* lamp-light / PAIRS sunrise */
  --gold-deep: oklch(66% 0.14 75);
  --on-ink: oklch(95% 0.012 85);
  --on-ink-muted: oklch(78% 0.02 85);
  --on-ink-faint: oklch(62% 0.02 265);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 4px; --radius: 8px; --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px oklch(22% 0.03 265 / 0.06), 0 12px 32px -16px oklch(22% 0.03 265 / 0.25);
  --measure: 66ch;
  --gutter: clamp(var(--space-5), 5vw, var(--space-16));
  --content: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.012em; font-variation-settings: 'opsz' 72, 'SOFT' 40; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--space-4); }
.prose a { text-decoration-color: oklch(46% 0.17 20 / 0.45); }
.prose a:hover { color: var(--accent); }
.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); display: inline-flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-head { max-width: 760px; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head h2 { font-size: var(--text-2xl); margin-top: var(--space-4); }
.section-head .lede { margin-top: var(--space-5); font-size: var(--text-lg); line-height: 1.45; color: var(--text-muted); font-weight: 400; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: oklch(96.5% 0.012 85 / 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--space-6); }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.35em; white-space: nowrap; }
.brand em { font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: 'opsz' 72, 'SOFT' 100; }
.nav { display: flex; gap: var(--space-6); font-size: var(--text-sm); font-weight: 500; }
.nav a { text-decoration: none; color: var(--text-muted); padding-block: var(--space-2); border-bottom: 1px solid transparent; transition: color .25s var(--ease), border-color .25s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); border-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-10), 5vw, var(--space-16)) clamp(var(--space-12), 6vw, var(--space-20)); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1rem + 3.4vw, 4.25rem); margin-top: var(--space-5); max-width: 15ch; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); font-variation-settings: 'opsz' 144, 'SOFT' 100; }
.hero .lede { margin-top: var(--space-6); font-size: var(--text-lg); line-height: 1.5; color: var(--text-muted); max-width: 52ch; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: clamp(360px, 58vh, 600px); object-fit: cover; object-position: 50% 80%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-art figcaption { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--text-faint); }

/* Search form (shared hero + search section) */
.search-form { margin-top: var(--space-8); display: flex; gap: var(--space-2); max-width: 560px; }
.search-form .field { flex: 1; position: relative; }
.search-form input {
  width: 100%; padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  background: oklch(100% 0 0 / 0.7); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: var(--text-base); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px oklch(24% 0.045 265 / 0.08); }
.search-form .field svg { position: absolute; left: var(--space-4); top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--text-faint); pointer-events: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-6); border-radius: var(--radius); border: 1px solid transparent;
  font-size: var(--text-sm); font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-deep); }
.btn-accent { background: var(--accent); color: var(--on-ink); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: oklch(100% 0 0); }
.examples { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--text-xs); color: var(--text-faint); }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: var(--space-1) var(--space-3); font-size: var(--text-xs); color: var(--text-muted); transition: all .2s var(--ease); }
.chip:hover { border-color: var(--text); color: var(--text); }

/* Marquee strip under hero */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .stat { padding: var(--space-6) var(--space-5) var(--space-6) 0; border-right: 1px solid var(--line); }
.strip .stat:last-child { border-right: 0; }
.strip .stat + .stat { padding-left: var(--space-5); }
.strip .num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.strip .num small { font-size: 0.55em; font-weight: 400; color: var(--text-muted); margin-left: .1em; }
.strip .cap { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--text-muted); line-height: 1.4; }
.strip .cap a { text-decoration-color: var(--line); }

/* ---------- Thesis ---------- */
.thesis-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(var(--space-12), 6vw, var(--space-24)); }
.essay { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(220px, 300px); gap: var(--space-8); align-items: start; }
.essay .n { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 300; color: var(--accent); line-height: 1; font-variation-settings: 'opsz' 144; padding-top: .1em; }
.essay h3 { font-size: var(--text-xl); margin-bottom: var(--space-4); text-wrap: balance; }
.callout { border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.callout .big { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.callout .big small { font-size: .5em; color: var(--text-muted); font-weight: 400; margin-left: .15em; }
.callout p { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }
.callout p a { text-decoration-color: var(--line); }
.fullbleed { margin-block: clamp(var(--space-12), 6vw, var(--space-24)); position: relative; }
.fullbleed img { width: 100%; height: clamp(300px, 46vw, 560px); object-fit: cover; }
.fullbleed blockquote {
  margin: 0; position: absolute; left: 50%; bottom: clamp(var(--space-6), 4vw, var(--space-12)); translate: -50% 0;
  width: min(100% - 2 * var(--gutter), 780px); background: oklch(96.5% 0.012 85 / 0.94); backdrop-filter: blur(6px);
  padding: var(--space-6) var(--space-8); border-left: 3px solid var(--accent);
}
.fullbleed blockquote p { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.35; font-style: italic; font-variation-settings: 'opsz' 48, 'SOFT' 80; }
.fullbleed blockquote cite { display: block; margin-top: var(--space-3); font-style: normal; font-size: var(--text-xs); color: var(--text-muted); letter-spacing: .04em; }
.fullbleed blockquote cite a { text-decoration-color: var(--line); }

/* ---------- Search ---------- */
#search { background: var(--paper-2); border-block: 1px solid var(--line); }
.search-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: start; }
.search-side { position: sticky; top: 88px; }
.search-side .search-form { max-width: none; }
.search-side .how { margin-top: var(--space-8); display: grid; gap: var(--space-4); font-size: var(--text-sm); color: var(--text-muted); }
.search-side .how div { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); }
.search-side .how b { font-weight: 600; color: var(--text); }
.search-side .how span.k { font-family: var(--font-display); color: var(--accent); font-size: var(--text-base); }
.results { min-height: 320px; }
.results-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: clamp(var(--space-8), 4vw, var(--space-12)); color: var(--text-muted); text-align: center; }
.results-empty h3 { font-size: var(--text-lg); color: var(--text); margin-bottom: var(--space-2); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.profile-top { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6); border-bottom: 1px solid var(--line); }
.portrait { width: 180px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--paper-3); }
.portrait.placeholder { display: grid; place-items: center; color: var(--text-faint); font-family: var(--font-display); font-size: var(--text-2xl); }
.profile-top h3 { font-size: var(--text-xl); }
.profile-top .desc { color: var(--text-muted); margin-top: var(--space-1); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.tag { font-size: var(--text-xs); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px var(--space-3); color: var(--text-muted); }
.tag.accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }
.profile-top .summary { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-muted); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; }
.profile-grid > div { padding: var(--space-6); }
.profile-grid > div + div { border-left: 1px solid var(--line); }
.profile-grid h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-4); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.timeline li { display: grid; grid-template-columns: 1fr; gap: 2px; padding-left: var(--space-4); border-left: 2px solid var(--line); }
.timeline li.current { border-color: var(--gold-deep); }
.timeline li.ended { border-color: var(--accent); }
.timeline .who { font-weight: 600; }
.timeline .when { font-size: var(--text-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.timeline .cause { font-size: var(--text-xs); color: var(--accent-strong); font-weight: 600; }
.kids { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.muted { color: var(--text-muted); font-size: var(--text-sm); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: var(--space-4) 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-1); }
.news-list li:first-child { border-top: 0; padding-top: 0; }
.news-list .meta { font-size: var(--text-xs); color: var(--text-muted); display: flex; gap: var(--space-3); }
.news-list .meta b { color: var(--text); font-weight: 600; }
.news-list a { font-weight: 500; text-decoration: none; }
.news-list a:hover { color: var(--accent); }
.card-foot { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--text-faint); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }
.card-foot a { text-decoration-color: var(--line); }
.suggest { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--text-xs); color: var(--text-muted); }

/* Skeleton */
.skeleton { position: relative; overflow: hidden; background: var(--paper-3); border-radius: var(--radius-sm); }
.skeleton::after { content: ''; position: absolute; inset: 0; translate: -100% 0; background: linear-gradient(90deg, transparent, oklch(100% 0 0 / 0.5), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { translate: 100% 0; } }
.sk-card { padding: var(--space-6); display: grid; grid-template-columns: 180px 1fr; gap: var(--space-6); }
.sk-lines { display: grid; gap: var(--space-3); align-content: start; }

/* ---------- Marriages gone wrong (dark) ---------- */
#gone-wrong { background: var(--ink-deep); color: var(--on-ink); }
#gone-wrong .eyebrow { color: var(--on-ink-muted); }
#gone-wrong .section-head .lede { color: var(--on-ink-muted); }
.gw-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: start; }
.gw-status { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; font-size: var(--text-xs); color: var(--on-ink-faint); margin-bottom: var(--space-6); padding-bottom: var(--space-4); border-bottom: 1px solid oklch(95% 0.012 85 / 0.14); }
.live { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--gold); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 oklch(80% 0.14 82 / 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.gw-status button { margin-left: auto; background: none; border: 1px solid oklch(95% 0.012 85 / 0.25); color: var(--on-ink-muted); border-radius: 999px; padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }
.gw-status button:hover { border-color: var(--on-ink); color: var(--on-ink); }
.day { margin-top: var(--space-8); }
.day:first-child { margin-top: 0; }
.day h3 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: var(--space-3); }
.story { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid oklch(95% 0.012 85 / 0.12); }
.story .t { font-size: var(--text-xs); color: var(--on-ink-muted); font-weight: 600; padding-top: .45em; line-height: 1.35; overflow-wrap: anywhere; }
.story .t small { display: block; font-weight: 400; color: var(--on-ink-faint); margin-top: 2px; }
.story h4 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; line-height: 1.25; font-variation-settings: 'opsz' 36, 'SOFT' 50; }
.story h4 a { text-decoration: none; }
.story h4 a:hover { color: var(--gold); }
.story .src { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--on-ink-muted); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.story .src b { font-weight: 600; color: var(--on-ink); }
.story details { margin-top: var(--space-2); font-size: var(--text-xs); }
.story summary { cursor: pointer; color: var(--on-ink-faint); list-style: none; display: inline-flex; gap: var(--space-1); align-items: center; }
.story summary::-webkit-details-marker { display: none; }
.story summary:hover { color: var(--on-ink); }
.story details ul { margin: var(--space-2) 0 0; padding-left: var(--space-4); color: var(--on-ink-muted); display: grid; gap: var(--space-1); }
.story details a { text-decoration-color: oklch(95% 0.012 85 / 0.3); }
.gw-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.gw-side .note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--on-ink-muted); line-height: 1.55; padding-left: var(--space-4); border-left: 2px solid var(--accent); }
.gw-side .note + .note { border-color: oklch(95% 0.012 85 / 0.2); }
.gw-side .note a { text-decoration-color: oklch(95% 0.012 85 / 0.3); }
.gw-empty, .gw-error { padding: var(--space-8); border: 1px dashed oklch(95% 0.012 85 / 0.25); border-radius: var(--radius-lg); color: var(--on-ink-muted); }
.sk-dark .skeleton { background: oklch(28% 0.04 265); }
.sk-dark .skeleton::after { background: linear-gradient(90deg, transparent, oklch(40% 0.04 265 / 0.5), transparent); }

/* ---------- PAIRS ---------- */
#pairs { position: relative; }
.pairs-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(var(--space-8), 5vw, var(--space-20)); align-items: center; }
.pairs-intro img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pairs-intro h2 { font-size: var(--text-2xl); margin-top: var(--space-4); text-wrap: balance; }
.pairs-intro h2 mark { background: linear-gradient(transparent 55%, var(--gold) 55%); color: inherit; padding-inline: .05em; }
.pairs-intro .lede { margin-top: var(--space-5); font-size: var(--text-lg); color: var(--text-muted); line-height: 1.45; }
.pairs-intro .prose { margin-top: var(--space-5); }
.skills { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.skill { border-top: 2px solid var(--gold-deep); padding-top: var(--space-5); }
.skill .k { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.skill h3 { font-size: var(--text-lg); margin-top: var(--space-2); }
.skill p { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.evidence { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); background: var(--ink); color: var(--on-ink); border-radius: var(--radius-lg); padding: clamp(var(--space-8), 4vw, var(--space-12)); }
.evidence h3 { font-size: var(--text-xl); text-wrap: balance; }
.evidence .lead-p { margin-top: var(--space-4); color: var(--on-ink-muted); font-size: var(--text-sm); }
.evidence .lead-p a { text-decoration-color: oklch(95% 0.012 85 / 0.3); }
.ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.ev .num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--gold); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ev .num small { font-size: .5em; color: var(--on-ink-muted); margin-left: .1em; }
.ev p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--on-ink-muted); line-height: 1.45; }
.ev p a { text-decoration-color: oklch(95% 0.012 85 / 0.3); }
.offer { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-10); align-items: start; }
.offer h3 { font-size: var(--text-xl); text-wrap: balance; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.offer-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); padding: var(--space-5); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-list .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.offer-list b { display: block; font-weight: 600; }
.offer-list p { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--text-muted); }
.cta-row { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.offer .fine { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--text-faint); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-2); padding-block: var(--space-16) var(--space-10); font-size: var(--text-sm); color: var(--text-muted); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-10); }
.footer h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: var(--space-3); font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer a { text-decoration-color: var(--line); }
.footer .legal { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--text-faint); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transition: opacity .9s var(--ease); }
.reveal.in { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .essay { grid-template-columns: 56px minmax(0, 1fr); }
  .essay .callout { grid-column: 2; max-width: 420px; }
  .skills { grid-template-columns: 1fr 1fr; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip .stat:nth-child(2) { border-right: 0; }
  .strip .stat:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .strip .stat:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: var(--space-2) var(--gutter) var(--space-4); }
  .nav.open { display: flex; }
  .nav a { padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
  .hero .wrap, .search-layout, .gw-layout, .pairs-intro, .evidence, .offer { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { height: clamp(240px, 42vw, 420px); }
  .hero h1 { max-width: none; }
  .search-side { position: static; }
  .profile-top { grid-template-columns: 1fr; }
  .portrait { width: 140px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sk-card { grid-template-columns: 1fr; }
  .gw-side { order: -1; }
  .gw-side img { aspect-ratio: 16 / 9; }
  .footer .cols { grid-template-columns: 1fr; gap: var(--space-8); }
  .fullbleed blockquote { position: static; translate: none; width: auto; margin-inline: var(--gutter); margin-top: calc(-1 * var(--space-10)); }
}
@media (max-width: 560px) {
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
  .skills { grid-template-columns: 1fr; }
  .essay { grid-template-columns: 1fr; }
  .essay .n { font-size: var(--text-xl); }
  .essay .callout { grid-column: 1; }
  .story { grid-template-columns: 1fr; gap: var(--space-2); }
  .ev-grid { grid-template-columns: 1fr; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .stat { border-right: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .strip .stat:first-child { border-top: 0; }
}
