/* benchmarks.weeyuga.com — own stylesheet (v2, post Andre A1/A3 + Marko M1-M4).
 *
 * Sister-site to weeyuga.com. Tokens COPIED from Andre's reply (warm
 * cream + ink + brand-blue), NOT from docs/landing/style.css verbatim
 * (which uses the dark GitHub-tinged palette). Andre canonicalised the
 * sister-site palette as warm-cream because the brand brief is "calm,
 * editorial, evidence-presenting" — dark themes signal urgency /
 * dashboard, the opposite intent.
 *
 * Aesthetic: editorial-grade type (Newsreader serif hero + Inter body
 * + JetBrains Mono numbers), asymmetric 12-col grid, brand-blue
 * restraint (links / chevrons / finding-card stroke only), gentle
 * paper-grain on photos, vertical rhythm at 8px multiples.
 */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,500;1,500;1,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Andre's canonical palette (warm-cream sister-site) */
  --bg-page:       #FAF7EE;
  --bg-card:       #FFFFFF;
  --ink-body:      #1B1A18;
  --ink-secondary: #5B574E;
  --ink-tertiary:  #8B8576;
  --divider:       #E5DFCD;
  --divider-soft:  #F0E9D5;
  --accent-link:   #2585BD;
  --accent-link-2: #1f6da0;
  --accent-warm:   #D8843A;
  --accent-coral:  #D8443A;
  --accent-sage:   #7C9B7C;

  /* Type stack */
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans:  "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Spacing — 8/16 multiples; Andre's vertical rhythm */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 48px; --s-10: 64px; --s-11: 80px; --s-12: 96px;
  --s-13: 128px;

  /* Layout — Andre's containers */
  --container:      min(100% - 32px, 1200px);
  --content:        min(100% - 32px, 880px);   /* hero question + body paragraphs */
  --content-narrow: min(100% - 32px, 760px);   /* per-bench prose */

  /* Radii */
  --r-sm: 6px;  --r-md: 8px;  --r-lg: 12px;  --r-xl: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  220ms;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-page);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 19px;          /* Sloba's 18-20px guardrail */
  line-height: 1.65;
  color: var(--ink-body);
  background: var(--bg-page);
  min-height: 100vh;
  font-feature-settings: 'kern', 'liga';
}

/* Type scale — Andre's editorial hierarchy */
h1, h2, h3, h4 { margin: 0; color: var(--ink-body); }

h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}
h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--s-5);
  max-width: 64ch;
  color: var(--ink-body);
}

a {
  color: var(--accent-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
a:hover { border-bottom-color: var(--accent-link); }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink-secondary);
}

/* Eyebrow — small caps mono label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-3);
}

/* Layout helpers */
.container { width: var(--container); margin-inline: auto; }
.content   { width: var(--content);   margin-inline: auto; }
.narrow    { width: var(--content-narrow); margin-inline: auto; }

/* Asymmetric grid — Andre A1 move 2 */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5); }

/* Section rhythm */
.section { padding-block: var(--s-12); }
.section-tight { padding-block: var(--s-10); }

/* Top nav — transparent on hero, opaque on scroll */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  background: transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-opaque {
  background: rgba(250, 247, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--divider);
}
.nav .brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink-body);
  border: 0;
}
.nav .brand .accent { color: var(--accent-link); }
.nav .links {
  display: flex;
  gap: var(--s-7);
  align-items: center;
}
.nav .links a {
  font-family: var(--font-sans);
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 400;
  border: 0;
  transition: color var(--dur) var(--ease);
}
.nav .links a:hover  { color: var(--ink-body); border: 0; }
.nav .links a.is-active { color: var(--ink-body); font-weight: 500; }

/* Buttons — Andre's restrained brand-blue dark-fill primary + outlined secondary */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-4) var(--s-7);
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 500;
  border-radius: var(--r-md);
  border: 1px solid var(--ink-body);
  background: transparent;
  color: var(--ink-body);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover {
  background: var(--ink-body);
  color: var(--bg-page);
  border-color: var(--ink-body);
}
.btn-primary {
  background: var(--ink-body);
  color: var(--bg-page);
}
.btn-primary:hover {
  background: var(--accent-link);
  border-color: var(--accent-link);
}
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* HERO (landing) — scoped to .hero.container so it only matches the
   landing-page hero, NOT the legacy report `.hero` cards (which also load
   /style.css via Ben's SITE_STYLE_LINK injection but don't carry .container).
   Without this scoping, the unscoped `.hero { max-width: 880px }` rule was
   capping every legacy-report hero card at 880px while the sibling .panel
   cards filled the full .shell width — Sloba 2026-05-06 bug report. */
.hero.container {
  padding: var(--s-13) 0 var(--s-12);
  max-width: 880px;
  margin-inline: auto;
}
.hero.container h1 { max-width: 18ch; margin-bottom: var(--s-5); }
.hero .subhead {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-9);
}
.hero .ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-9); }

/* Hardware section — asymmetric grid */
.hw-section {
  padding-block: var(--s-12);
}
.hw-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.hw-section.left  .hw-photo { grid-column: 1 / span 7; }
.hw-section.left  .hw-copy  { grid-column: 9 / span 4; }
.hw-section.right .hw-copy  { grid-column: 2 / span 4; }
.hw-section.right .hw-photo { grid-column: 6 / span 7; }
.hw-section.center .hw-copy  { grid-column: 3 / span 8; text-align: left; }
.hw-section.center .hw-photo { display: none; }      /* cicd: no photo per Andre A2 (c) */

.hw-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.hw-photo .placeholder-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hw-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hw-copy h2 {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 34px);
  margin-bottom: var(--s-4);
}
.hw-copy .body {
  font-size: 18px;
  color: var(--ink-secondary);
  margin-bottom: var(--s-5);
  max-width: 38ch;
}
.hw-copy .specs {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.hw-copy .count-link {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-link);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  border-bottom: 1px solid var(--accent-link);
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease);
}
.hw-copy .count-link:hover { gap: var(--s-3); }

/* "What we measure" + footer-warmup section */
.measure-section {
  padding-block: var(--s-12);
  text-align: left;
}
.measure-section .lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.4;
  color: var(--ink-body);
  max-width: 30ch;
  margin-bottom: var(--s-7);
}
.measure-section .body {
  font-size: 18px;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin-bottom: var(--s-7);
}
.measure-section .links {
  display: flex; gap: var(--s-7);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-link);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Latest finding card */
.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-lg);
  padding: var(--s-9);
  display: block;
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.finding-card:hover {
  border-color: var(--accent-link);
  border-bottom: 1px solid var(--accent-link);
  transform: translateY(-2px);
}
.finding-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-3);
}
.finding-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.2;
  color: var(--ink-body);
  margin-bottom: var(--s-4);
}
.finding-card p {
  font-size: 18px;
  color: var(--ink-secondary);
  max-width: 56ch;
  margin-bottom: var(--s-5);
}
.finding-card .read-more {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-link);
  font-weight: 500;
}

/* Bench card (browse list) */
.bench-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: var(--s-7);
  margin-bottom: var(--s-4);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  border-bottom: 1px solid var(--divider);
}
.bench-card:hover {
  border-color: var(--accent-link);
  border-bottom: 1px solid var(--accent-link);
  transform: translateY(-2px);
}
.bench-card .row1 {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
  margin-bottom: var(--s-2);
}
.bench-card h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink-body);
}
.bench-card .date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-tertiary);
  white-space: nowrap;
}
.bench-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-3);
}
.bench-card .headline {
  font-size: 17px;
  color: var(--ink-secondary);
  margin: 0;
}
.bench-card .grade-flagship {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-link);
  font-weight: 500;
  margin-right: var(--s-3);
}

/* Filter bar */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  margin-block: var(--s-7) var(--s-9);
  align-items: baseline;
}
.filter-group {
  display: flex; align-items: baseline; gap: var(--s-2);
  flex-wrap: wrap;
}
.filter-group .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-tertiary);
  margin-right: var(--s-2);
}
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--divider);
  color: var(--ink-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--ink-secondary); color: var(--ink-body); }
.chip.is-active {
  background: var(--ink-body);
  color: var(--bg-page);
  border-color: var(--ink-body);
}

/* Browse-stats lede */
.browse-stats {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-tertiary);
  margin-block: var(--s-4) var(--s-2);
}
.browse-stats .num { color: var(--ink-body); font-weight: 500; }

/* Per-bench detail */
.detail .meta-row {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-3);
}
.detail h1 {
  font-size: clamp(36px, 4.5vw, 54px);
  margin-bottom: var(--s-9);
}
.detail .headline {
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.4;
  color: var(--ink-body);
  border-left: 4px solid var(--accent-link);
  padding-left: var(--s-6);
  margin-block: var(--s-9);
  max-width: 720px;
}
.detail h2 {
  margin-block: var(--s-12) var(--s-5);
}
.detail .blurb {
  max-width: var(--content-narrow);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-body);
}
.detail .blurb p { margin-bottom: var(--s-5); }
.detail .blurb p:last-child { margin-bottom: 0; }

.detail .caveat {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--accent-warm);
  border-radius: var(--r-sm);
  padding: var(--s-6) var(--s-7);
  margin-block: var(--s-7);
}
.detail .caveat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--accent-warm);
  margin-bottom: var(--s-3);
}
.detail .caveat p { margin: 0; color: var(--ink-secondary); font-size: 17px; }

/* Archive-tier transparency notice — neutral grey, not warm-amber.
   Caveats use warm-amber for the "we know about this risk and named it"
   semantic; archive notices are softer "we published this for transparency
   without endorsing the headline." Different intent → different visual. */
.detail .archive-notice {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-left: 3px solid var(--ink-tertiary);
  border-radius: var(--r-sm);
  padding: var(--s-6) var(--s-7);
  margin-block: var(--s-6) var(--s-9);
}
.detail .archive-notice .label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-3);
}
.detail .archive-notice p { margin: 0; color: var(--ink-secondary); font-size: 16px; }
.detail .archive-notice p + p { margin-top: var(--s-3); }
.detail .archive-notice code {
  background: var(--divider-soft);
  padding: 0 var(--s-2);
  border-radius: 3px;
}

/* Rendered findings posts (markdown → HTML via build_benchmarks_site.py) */
.findings-post h1 {
  font-style: normal;
  margin-bottom: var(--s-9);
  max-width: 24ch;
}
.findings-post h2 {
  margin-block: var(--s-12) var(--s-5);
}
.findings-post h3 {
  margin-block: var(--s-10) var(--s-4);
}
.findings-post p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-body);
  margin-bottom: var(--s-5);
  max-width: 720px;
}
.findings-post ul, .findings-post ol {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-body);
  margin-block: var(--s-5);
  padding-left: var(--s-7);
  max-width: 720px;
}
.findings-post li { margin-bottom: var(--s-3); }
.findings-post li > p:first-child { margin-bottom: var(--s-2); }
.findings-post blockquote {
  border-left: 4px solid var(--accent-link);
  padding: var(--s-2) var(--s-7);
  margin-block: var(--s-7);
  color: var(--ink-secondary);
  background: var(--bg-card);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.findings-post blockquote p {
  font-size: 18px;
  margin-bottom: var(--s-3);
  max-width: none;
}
.findings-post blockquote p:last-child { margin-bottom: 0; }
.findings-post blockquote ul,
.findings-post blockquote ol {
  font-size: 17px;
}
.findings-post hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin-block: var(--s-10);
}
.findings-post pre {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-sm);
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  margin-block: var(--s-6);
}
.findings-post pre code { background: none; padding: 0; font-size: inherit; }
.findings-post code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--divider-soft);
  padding: 1px var(--s-2);
  border-radius: 3px;
  color: var(--ink-body);
}
.findings-post table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-block: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.findings-post th, .findings-post td {
  text-align: left;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.findings-post tbody tr:last-child td { border-bottom: 0; }
.findings-post th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-tertiary);
  background: var(--divider-soft);
}
.findings-post td { color: var(--ink-body); }
.findings-post a { color: var(--accent-link); }

/* Archive pill in the meta-row — same shape as .grade-flagship but ink-tertiary */
.detail .meta-row .grade-archive {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-tertiary);
  border: 1px solid var(--divider);
  background: var(--divider-soft);
  padding: 1px var(--s-3);
  border-radius: var(--r-pill);
  vertical-align: 1px;
}

.detail table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-block: var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.detail th, .detail td {
  text-align: left;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--divider);
}
.detail tbody tr:last-child td { border-bottom: 0; }
.detail th {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink-tertiary);
  background: var(--divider-soft);
}
.detail td { color: var(--ink-body); }
.detail th.num,
.detail td.num {
  text-align: right;
}
.detail td.num {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}
.detail th.num {
  /* mono is inherited from .detail th above; tnum keeps the prompt-id
     headers ("hello", "P-MEDIUM", "P-HARD", "tok/s p50", etc.) sitting
     on the same right edge as the numbers below them. */
  font-feature-settings: 'tnum';
}

/* Chart card */
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-7);
  margin-block: var(--s-6);
}
.chart-card .chart-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-tertiary);
  margin-bottom: var(--s-5);
}
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card svg .axis-line { stroke: var(--ink-body); stroke-width: 1; }
.chart-card svg .grid-line { stroke: var(--divider); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-card svg .axis-label { fill: var(--ink-secondary); font-family: var(--font-mono); font-size: 11px; }
.chart-card svg .bar { fill: var(--accent-link); }
.chart-card svg .bar-secondary { fill: var(--accent-warm); }
.chart-card svg .bar-label {
  fill: var(--ink-body); font-family: var(--font-mono); font-size: 11px;
  font-feature-settings: 'tnum';
}

/* Raw data block */
.detail .raw-data ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-7); }
.detail .raw-data li { padding: var(--s-1) 0; }
.detail .raw-data a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-link);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cite-block {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--r-sm);
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  margin-block: var(--s-6);
}

/* Sticky anchor strip on detail page */
.anchor-strip {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(250, 247, 238, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
  padding: var(--s-3) var(--s-6);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.anchor-strip .back { color: var(--ink-secondary); border: 0; }
.anchor-strip .anchors { display: flex; gap: var(--s-6); }
.anchor-strip .anchors a {
  color: var(--ink-tertiary);
  border: 0;
  transition: color var(--dur) var(--ease);
}
.anchor-strip .anchors a:hover,
.anchor-strip .anchors a.is-active { color: var(--ink-body); }

/* Compare placeholder */
.compare-soon {
  text-align: center;
  padding: var(--s-13) var(--s-6);
  color: var(--ink-secondary);
}
.compare-soon h1 { color: var(--ink-body); margin-bottom: var(--s-7); }

/* Footer */
.footer {
  border-top: 1px solid var(--divider);
  padding: var(--s-9) var(--s-6);
  margin-top: var(--s-13);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-tertiary);
}
.footer .cols {
  display: flex; flex-wrap: wrap; gap: var(--s-9);
  justify-content: space-between;
  max-width: var(--container);
  margin-inline: auto;
}
.footer a { color: var(--ink-secondary); border: 0; }
.footer a:hover { color: var(--ink-body); }
.footer .build-stamp {
  font-size: 11px;
  color: var(--ink-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Scroll hint */
.scroll-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-tertiary);
  text-align: center;
  margin-top: var(--s-12);
}

/* Mobile */
@media (max-width: 900px) {
  body { font-size: 18px; }
  .nav { padding: var(--s-3) var(--s-4); }
  .nav .links { gap: var(--s-4); }
  .nav .links a { font-size: 13px; }
  .nav .links a:not(.is-active) { display: none; }   /* collapse on mobile */
  .nav .brand { font-size: 12px; }

  .hero { padding: var(--s-11) 0 var(--s-10); }

  .hw-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hw-section.left  .hw-photo,
  .hw-section.right .hw-photo,
  .hw-section.left  .hw-copy,
  .hw-section.right .hw-copy,
  .hw-section.center .hw-copy { grid-column: 1; }

  .anchor-strip .anchors { gap: var(--s-3); }
  .anchor-strip .anchors a:not(.is-active) { display: none; }

  .filter-bar { gap: var(--s-3); }
}
