/* ---------- Tokens ---------- */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #16202b;
  --ink-2: #44505c;
  --ink-3: #6b7580;
  --rule: #e4e1da;
  --accent: #1f6b5a;       /* deep green, echoes the portrait backdrop */
  --accent-soft: #e6f0ec;
  --bar: #1f6b5a;
  --bar-muted: #9cbdb3;
  --fig-bg: #ffffff;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1080px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161b;
    --surface: #182027;
    --ink: #eef1f3;
    --ink-2: #c3cad0;
    --ink-3: #8f99a2;
    --rule: #2a343d;
    --accent: #6cc3a8;
    --accent-soft: #1b2e29;
    --bar: #6cc3a8;
    --bar-muted: #3d6f61;
    --fig-bg: #ffffff;
  }
}
:root[data-theme="dark"] {
  --bg: #11161b;
  --surface: #182027;
  --ink: #eef1f3;
  --ink-2: #c3cad0;
  --ink-3: #8f99a2;
  --rule: #2a343d;
  --accent: #6cc3a8;
  --accent-soft: #1b2e29;
  --bar: #6cc3a8;
  --bar-muted: #3d6f61;
  --fig-bg: #ffffff;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0; }
p { margin: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
nav { display: flex; gap: 24px; }
nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hero h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px; }
.lede { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.4; color: var(--ink); max-width: 34em; margin-bottom: 16px; }
.hero-sub { color: var(--ink-2); max-width: 38em; margin-bottom: 22px; }
.focus { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.focus li {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--rule); background: var(--surface);
  padding: 4px 12px; border-radius: 999px;
}
.focus li:nth-child(-n+2) { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }

.btn {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  font-size: 14px; font-weight: 600; border-radius: 4px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
:root[data-theme="dark"] .btn { color: #0d1a16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { color: #0d1a16; } }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
:root[data-theme="dark"] .btn-ghost { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { color: var(--ink); } }
.btn-ghost:hover { border-color: var(--ink-3); filter: none; }

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.proof-inner { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.proof-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.proof-value { font-size: 14px; color: var(--ink); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding-top: 72px; }
.section:last-of-type { padding-bottom: 80px; }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.section-head h2 { font-size: 28px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-3); font-size: 14px; }

/* ---------- Featured ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas: "body chart" "body haiku";
  gap: 8px 48px;
  margin-top: 28px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.featured-body { grid-area: body; }
.featured-chart { grid-area: chart; margin: 0; align-self: start; }
.featured-haiku { grid-area: haiku; align-self: end; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 3px;
}
:root[data-theme="dark"] .badge { color: #0d1a16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #0d1a16; } }
.featured h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px; }
.featured h3 a { color: var(--ink); }
.featured .authors { margin-bottom: 16px; }
.summary { color: var(--ink-2); margin-bottom: 24px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 28px; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats div { margin: 0; }
.stats dt { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--accent); margin-bottom: 8px; letter-spacing: -0.02em; }
.stats dd { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.featured .links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }

.chart-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.featured-chart svg { width: 100%; height: auto; overflow: visible; }
.featured-chart .lbl { font: 500 13px var(--sans); fill: var(--ink-2); }
.featured-chart .val { font: 600 14px var(--sans); fill: var(--ink); }
.featured-chart .bar { fill: var(--bar); }
.featured-chart .bar-muted { fill: var(--bar-muted); }
.featured-chart .axis { stroke: var(--ink-3); stroke-width: 1; }
.chart-note { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

/* ---------- Paper rows ---------- */
.paper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.paper:last-child { border-bottom: 0; }
.paper-fig {
  display: block;
  background: var(--fig-bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px;
  aspect-ratio: 4 / 3;
  transition: border-color .15s, box-shadow .15s;
}
.paper-fig img { width: 100%; height: 100%; object-fit: contain; }
.paper-fig:hover { border-color: var(--ink-3); box-shadow: 0 4px 16px rgba(0,0,0,.06); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tags span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tags span + span::before { content: "·"; margin-right: 6px; color: var(--ink-3); }
.paper h3 { font-size: 21px; line-height: 1.3; margin-bottom: 6px; }
.paper h3 a { color: var(--ink); }
.paper h3 a:hover { color: var(--accent); text-decoration: none; }
.authors { font-size: 14px; color: var(--ink-2); }
.venue { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); margin-top: 4px; }
.award { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 3px; }
.media { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.haiku {
  font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.55;
  color: var(--ink-3); margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--rule);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 56px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.site-footer h2 { font-size: 24px; margin-bottom: 10px; }
.site-footer p { color: var(--ink-2); }
.contact-line { margin-top: 6px; font-weight: 500; }
.disclaimer { font-size: 13px; color: var(--ink-3) !important; line-height: 1.55; }
.copyright { font-size: 12px; color: var(--ink-3); margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 220px; gap: 32px; }
  .featured { grid-template-columns: 1fr; grid-template-areas: "body" "chart" "haiku"; gap: 28px; padding: 28px; }
  .proof-inner { grid-template-columns: 1fr; gap: 14px; }
  .paper { grid-template-columns: 220px 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  nav { gap: 14px; }
  nav a:nth-child(3) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 28px; }
  .hero-photo { order: -1; max-width: 180px; }
  .featured { padding: 22px 18px; }
  .stats { grid-template-columns: 1fr; gap: 16px; }
  .stats div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: baseline; }
  .stats dt { font-size: 28px; margin: 0; }
  .paper { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .paper-fig { aspect-ratio: 16 / 10; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
