/* ============================================================================
   eugeny.css — Design system & production stylesheet for eugeny.com
   ----------------------------------------------------------------------------
   "Measured, not marketed." A publication, not a startup landing page.

   This stylesheet codifies the established brand language of Eugeny — the
   sovereign European AI built by Fornace — and scales it from a single hero
   page to a full multi-page site. It is self-contained: only system fonts,
   zero external requests, no build step. It works on a plain file:// open.

   Sections:
     01  Reset & base elements
     02  Design tokens (:root)
     03  Layout primitives (.wrap, section rhythm)
     04  Typography
     05  Site navigation — sticky bar + CSS-only mobile menu
     06  Hero, eyebrow, lede, hero-note
     07  Section head (split .72 / 1.28 grid)
     08  Score grid (absolute predictions)
     09  Proxy cards (--fill bars)
     10  Diagnostic grid (dark ink panel)
     11  Facts definition list
     12  Warning callout
     13  Footer
     14  Page header (eyebrow + title block)
     15  Article prose (max ~680px measure)
     16  Card grid (3-up -> 1-up)
     17  Data table (benchmarks / evidence)
     18  Stat row
     19  Generic definition list
     20  Callout / note (left signal border)
     21  Tag / pill
     22  Timeline / numbered steps
     23  Two-column comparison
     24  Code block
     25  CTA link
     26  Run-status dot
     27  Responsive breakpoints (820px, 520px)
   ========================================================================== */


/* ----------------------------------------------------------------------------
   01. Reset & base elements
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(231, 88, 62, .13), transparent 24rem),
    linear-gradient(180deg, var(--paper) 0%, #f8f5ee 64%, var(--paper-2) 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul[class], ol[class] { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: var(--white);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-xl) 0;
}


/* ----------------------------------------------------------------------------
   02. Design tokens
   ----------------------------------------------------------------------------
   The single source of truth. Every component reads from here. Change a token,
   change the whole site.
   ------------------------------------------------------------------------- */
:root {
  /* --- Brand palette ----------------------------------------------------- */
  --ink:        #10251f;   /* forest-green "ink" — primary text                  */
  --paper:      #f4f0e7;   /* cream "paper" — primary background                 */
  --paper-2:    #ebe5d8;   /* deeper paper — page fade                            */
  --paper-warm: #f8f5ee;   /* mid paper — gradient stop                          */
  --signal:     #e7583e;   /* the single accent — eyebrows, fills, borders       */
  --green:      #2f6c58;   /* sovereign green — positive status                  */
  --white:      #fffdf7;   /* warm off-white — cards, dark-panel text            */

  /* --- Derived tints (alpha over paper) --------------------------------- */
  --line:        rgba(16, 37, 31, .18);   /* hairline separators              */
  --line-strong: rgba(16, 37, 31, .32);   /* emphasized rules                */
  --line-soft:   rgba(16, 37, 31, .09);
  --muted:       #596963;                 /* secondary text                  */
  --text-soft:   #334841;                 /* body-leaning dark               */
  --green-soft:  rgba(47, 108, 88, .13);  /* status dot halo                 */
  --signal-soft: rgba(231, 88, 62, .08);  /* warning tint                    */
  --signal-line: rgba(231, 88, 62, .48);  /* warning rule                    */

  /* --- Type families (system only — NO @font-face) ---------------------- */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans:  Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
           "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
           "Liberation Mono", monospace;

  /* --- Fluid type scale ------------------------------------------------- */
  --step--1: .78rem;
  --step-0:  .84rem;   /* eyebrows, captions, meta */
  --step-1:  1rem;     /* body */
  --step-2:  1.12rem;
  --step-3:  1.28rem;  /* lede */
  --step-4:  1.6rem;
  --step-5:  clamp(2.1rem, 4vw, 3.7rem);   /* h2 */
  --step-6:  clamp(3.4rem, 8.4vw, 7.5rem); /* h1 */

  /* --- Spacing scale ---------------------------------------------------- */
  --space-3xs: .25rem;
  --space-2xs: .5rem;
  --space-xs:  .75rem;
  --space-s:   1rem;
  --space-m:   1.5rem;
  --space-l:   2rem;
  --space-xl:  3.25rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;   /* section padding */

  /* --- Radius scale ----------------------------------------------------- */
  --radius-0: 0;
  --radius-1: 3px;     /* tags, pills edges */
  --radius-2: 8px;     /* the rare soft element */

  /* --- Measure ---------------------------------------------------------- */
  --measure:       1120px;
  --measure-prose: 680px;   /* optimal reading line length  */
  --measure-narrow: 520px;

  /* --- Motion ----------------------------------------------------------- */
  --ease: cubic-bezier(.2, .6, .2, 1);
  --dur:  .18s;

  /* --- Layout ----------------------------------------------------------- */
  --nav-h: 64px;

  color-scheme: light;
}


/* ----------------------------------------------------------------------------
   03. Layout primitives
   ------------------------------------------------------------------------- */
.wrap {
  width: min(var(--measure), calc(100% - 40px));
  margin-inline: auto;
}

/* every page section is divided by a bottom hairline — newspaper-of-record */
section {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type { border-bottom: 0; }
section.is-tight { padding: var(--space-2xl) 0; }
section.is-tight:first-of-type { padding-top: var(--space-xl); }

/* a quiet band for pull-quotes / mid-page emphasis */
.band {
  padding: var(--space-2xl) 0;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.stack > * + * { margin-top: var(--space-m); }
.stack-tight > * + * { margin-top: var(--space-xs); }
.stack-loose > * + * { margin-top: var(--space-xl); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}


/* ----------------------------------------------------------------------------
   04. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-6);
  letter-spacing: -.065em;
  line-height: .89;
  max-width: 860px;
}

h2 { font-size: var(--step-5); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.035em; }
h4 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }

p { text-wrap: pretty; }

.eyebrow {
  color: var(--signal);
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.lede {
  max-width: 690px;
  color: var(--text-soft);
  font-size: var(--step-3);
}
.lead { color: var(--text-soft); }

.muted  { color: var(--muted); }
.soft   { color: var(--text-soft); }
.signal { color: var(--signal); }
.green  { color: var(--green); }

.mono { font-family: var(--mono); }

small, .small { font-size: var(--step-0); color: var(--muted); }


/* ----------------------------------------------------------------------------
   05. Site navigation — sticky bar + CSS-only mobile menu
   ----------------------------------------------------------------------------
   Desktop: brand left, links right, active link underlined in --signal.
   Mobile: a hidden checkbox drives a collapsible link list. No JS.
   ------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 231, .96);   /* solid-ish cream — NOT glassmorphism */
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  gap: var(--space-m);
  position: relative;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;            /* pushes links to the far right */
  white-space: nowrap;
}
.brand .brand-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 2px;
  background: var(--signal);
  vertical-align: middle;
  transform: translateY(-3px);
}

/* the link list */
.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.site-nav-links a {
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-nav-links a:hover { color: var(--signal); }
.site-nav-links a.is-active,
.site-nav-links a[aria-current="page"] {
  border-bottom-color: var(--signal);
  color: var(--ink);
}

/* CSS-only mobile toggle (checkbox hack) */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 10px;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible + .nav-burger {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}


/* ----------------------------------------------------------------------------
   06. Hero
   ------------------------------------------------------------------------- */
.hero {
  padding: clamp(74px, 10vw, 132px) 0 var(--space-2xl);
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
}
.hero .eyebrow { margin-bottom: var(--space-m); }
.hero h1 { margin: var(--space-m) 0 var(--space-l); }

.hero-note {
  padding: var(--space-l) 0 var(--space-2xs) var(--space-l);
  border-left: 2px solid var(--signal);
  color: var(--muted);
  font-size: .92rem;
}
.hero-note strong { color: var(--ink); }


/* ----------------------------------------------------------------------------
   07. Section head (split .72 / 1.28 grid)
   ------------------------------------------------------------------------- */
.section-head {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.section-head h2 { margin-top: var(--space-2xs); }
.section-copy {
  max-width: 650px;
  color: var(--text-soft);
  font-size: 1.06rem;
}
.section-copy p + p { margin-top: var(--space-s); }
.section-copy p:first-child { margin-top: 0; }


/* ----------------------------------------------------------------------------
   08. Score grid (absolute predictions)
   ------------------------------------------------------------------------- */
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, .54);
}
.score {
  min-height: 210px;
  padding: 25px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.score:last-child { border-right: 0; }
.score-label {
  max-width: 13rem;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.score-value {
  margin-top: 34px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -.06em;
}
.score-unit { color: var(--signal); font-size: .45em; }
.score-sub  { color: var(--muted); font-size: var(--step-0); margin-top: var(--space-2xs); }


/* ----------------------------------------------------------------------------
   09. Proxy cards (--fill bars)
   ------------------------------------------------------------------------- */
.proxy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proxy {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}
.proxy::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  width: var(--fill);
  background: var(--signal);
}
.proxy-name {
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.proxy-value {
  margin: 46px 0 8px;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -.06em;
  line-height: .9;
}
.proxy-meta { color: var(--muted); font-size: .9rem; }


/* ----------------------------------------------------------------------------
   10. Diagnostic grid (dark ink panel)
   ------------------------------------------------------------------------- */
.diagnostic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.diag-cell {
  padding: 28px;
  background: var(--ink);
  color: var(--paper);
}
.diag-key {
  color: #aebdb6;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.diag-value {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 2.55rem;
  line-height: 1;
  letter-spacing: -.03em;
}
.diag-value.pos { color: var(--green); }
.diag-value.neg { color: var(--signal); }


/* ----------------------------------------------------------------------------
   11. Facts definition list (the canonical run-facts table)
   ------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.facts .fact {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts .fact:nth-child(odd) { padding-right: 34px; }
.facts .fact:nth-child(even) {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.facts dd {
  margin: 0;
  font-size: .94rem;
  overflow-wrap: anywhere;
}


/* ----------------------------------------------------------------------------
   12. Warning callout
   ------------------------------------------------------------------------- */
.warning {
  margin-top: var(--space-l);
  padding: 24px 26px;
  border: 1px solid var(--signal-line);
  background: var(--signal-soft);
}
.warning strong { display: block; margin-bottom: 6px; }
.warning :last-child { margin-bottom: 0; }


/* ----------------------------------------------------------------------------
   13. Footer
   ------------------------------------------------------------------------- */
footer {
  padding: 46px 0 62px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .84rem;
}
.footer-row a { text-underline-offset: 3px; }
.footer-sign {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: -.01em;
  color: var(--ink);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-l);
}
.footer-cols h4 {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-s);
}
.footer-cols ul { list-style: none; padding: 0; }
.footer-cols li { margin-bottom: var(--space-3xs); }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--signal); text-decoration: underline; }


/* ----------------------------------------------------------------------------
   14. Page header — eyebrow + title block (interior pages)
   ------------------------------------------------------------------------- */
.page-header {
  padding: clamp(48px, 7vw, 88px) 0 var(--space-2xl);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: var(--space-m); }
.page-header h1 {
  margin: 0 0 var(--space-m);
  max-width: 14ch;
}
.page-header .lede { max-width: 60ch; }


/* ----------------------------------------------------------------------------
   15. Article prose — long-form reading column (max ~680px)
   ------------------------------------------------------------------------- */
.prose {
  max-width: var(--measure-prose);
}
.prose > * + * { margin-top: var(--space-m); }
.prose h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-top: var(--space-2xl);
}
.prose h3 {
  font-size: 1.45rem;
  margin-top: var(--space-xl);
}
.prose h4 { margin-top: var(--space-l); }
.prose p,
.prose li { font-size: 1.06rem; line-height: 1.65; color: var(--text-soft); }
.prose p { max-width: 70ch; }
.prose a { color: var(--ink); text-decoration: underline; }
.prose a:hover { color: var(--signal); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--space-2xs); }
.prose blockquote {
  margin: var(--space-l) 0;
  padding-left: var(--space-l);
  border-left: 3px solid var(--signal);
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--ink);
}
.prose blockquote cite {
  display: block;
  margin-top: var(--space-xs);
  font-family: var(--sans);
  font-size: .85rem;
  font-style: normal;
  color: var(--muted);
}
.prose figure { margin: var(--space-xl) 0; }
.prose figcaption {
  margin-top: var(--space-xs);
  font-size: var(--step-0);
  color: var(--muted);
  text-align: left;
}
.prose hr { margin: var(--space-2xl) 0; }


/* ----------------------------------------------------------------------------
   16. Card grid (3-up -> 1-up)
   ------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-kicker {
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal);
}
.card h3 {
  font-size: 1.4rem;
  letter-spacing: -.03em;
  margin: 0;
}
.card p { color: var(--text-soft); font-size: .96rem; }
.card .card-foot {
  margin-top: auto;
  padding-top: var(--space-s);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card.is-cta { border-color: var(--signal); }
.card.is-cta .card-foot { color: var(--signal); }


/* ----------------------------------------------------------------------------
   17. Data table (benchmarks / evidence)
   ------------------------------------------------------------------------- */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: .94rem;
  min-width: 540px;
}
table.data caption {
  padding: 16px 20px;
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 231, .6);
}
table.data th,
table.data td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 0;
  white-space: nowrap;
}
table.data tbody th {
  font-weight: 700;
  color: var(--ink);
  background: rgba(244, 240, 231, .4);
}
table.data tbody tr:last-child td,
table.data tbody tr:last-child th { border-bottom: 0; }
table.data tbody tr:nth-child(even) td { background: rgba(244, 240, 231, .25); }
table.data td.num,
table.data th.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
table.data .best { color: var(--green); font-weight: 700; }
table.data .weak { color: var(--signal); font-weight: 700; }


/* ----------------------------------------------------------------------------
   18. Stat row — a band of headline figures
   ------------------------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
}
.stat {
  padding: var(--space-l);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-label {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.stat-value {
  margin-top: var(--space-m);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.stat-unit { color: var(--signal); font-size: .45em; }
.stat-note { margin-top: var(--space-xs); color: var(--muted); font-size: .82rem; }


/* ----------------------------------------------------------------------------
   19. Generic definition list (single-column, hairline rows)
   ------------------------------------------------------------------------- */
.deflist {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 32px;
  border-top: 1px solid var(--line);
}
.deflist dt,
.deflist dd {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.deflist dt {
  color: var(--muted);
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.deflist dd { margin: 0; font-size: .96rem; overflow-wrap: anywhere; }


/* ----------------------------------------------------------------------------
   20. Callout / note — quiet left signal border
   ------------------------------------------------------------------------- */
.callout {
  padding: 18px 22px;
  border-left: 3px solid var(--signal);
  background: rgba(255, 253, 247, .6);
}
.callout :first-child { margin-top: 0; }
.callout :last-child { margin-bottom: 0; }
.callout-title {
  display: block;
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.callout.is-info    { border-left-color: var(--green); }
.callout.is-info .callout-title { color: var(--green); }
.callout.is-warning { background: var(--signal-soft); }


/* ----------------------------------------------------------------------------
   21. Tag / pill
   ------------------------------------------------------------------------- */
.tag,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}
.tag.signal,
.pill.signal { border-color: var(--signal-line); color: var(--signal); }
.tag.green,
.pill.green { border-color: rgba(47, 108, 88, .5); color: var(--green); }
.tag.is-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tag::before {
  content: "";
  width: 7px; height: 7px;
  background: currentColor;
  flex: none;
}
.pill::before { content: none; }
.tag-set { display: flex; flex-wrap: wrap; gap: 8px; }


/* ----------------------------------------------------------------------------
   22. Timeline / numbered steps
   ------------------------------------------------------------------------- */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  padding: 0 0 var(--space-2xl) 64px;
  border-left: 1px solid var(--line);
  margin-left: 20px;
  counter-increment: step;
}
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -1px;
  top: -4px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 0; top: 36px; bottom: 0;
  /* the rail is drawn by the border-left above */
}
.steps h3 {
  font-size: 1.3rem;
  letter-spacing: -.03em;
  margin-bottom: var(--space-2xs);
}
.steps p { color: var(--text-soft); }
.steps .step-when {
  display: inline-block;
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 4px;
}

/* flat timeline variant (label : value rows) */
.timeline {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-top: 1px solid var(--line);
}
.timeline .row {
  display: contents;
}
.timeline dt,
.timeline dd {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.timeline dt {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
}
.timeline dd { color: var(--ink); }


/* ----------------------------------------------------------------------------
   23. Two-column comparison (A vs B)
   ------------------------------------------------------------------------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.compare-col {
  padding: var(--space-xl);
  border-right: 1px solid var(--line);
}
.compare-col:last-child { border-right: 0; }
.compare-label {
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-m);
}
.compare-col h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-s);
}
.compare-col.is-featured {
  background: var(--ink);
  color: var(--paper);
}
.compare-col.is-featured .compare-label { color: #aebdb6; }
.compare-col.is-featured h3 { color: var(--white); }
.compare-col ul { padding-left: 1.2em; }
.compare-col li + li { margin-top: var(--space-2xs); }


/* ----------------------------------------------------------------------------
   24. Code block + inline code
   ------------------------------------------------------------------------- */
code, kbd, samp {
  font-family: var(--mono);
  font-size: .86em;
}
:not(pre) > code {
  padding: 1px 5px;
  background: rgba(16, 37, 31, .07);
  border-radius: var(--radius-1);
  overflow-wrap: anywhere;
}
pre {
  margin: var(--space-m) 0;
  padding: 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.6;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
/* gentle, brand-only syntax accents (no external highlighter) */
pre .tok-key  { color: var(--signal); }
pre .tok-str  { color: #8fd3b6; }
pre .tok-com  { color: #aebdb6; font-style: italic; }
pre .tok-num  { color: #f0b48d; }
.command-prompt::before { content: "$ "; color: #aebdb6; user-select: none; }


/* ----------------------------------------------------------------------------
   25. CTA link
   ------------------------------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--signal);
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.cta::after { content: "→"; transition: transform var(--dur) var(--ease); }
.cta:hover { color: var(--signal); }
.cta:hover::after { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-l); align-items: center; }

/* primary solid button (rare — use sparingly) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }


/* ----------------------------------------------------------------------------
   26. Run-status dot (sovereign green)
   ------------------------------------------------------------------------- */
.run-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.run-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.run-status.is-warn::before { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }


/* ----------------------------------------------------------------------------
   27. Responsive breakpoints
   ------------------------------------------------------------------------- */
@media (max-width: 820px) {
  /* nav collapses to hamburger */
  .nav-burger { display: flex; }
  .site-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-toggle:checked ~ .site-nav-links {
    max-height: 80vh;
    overflow-y: auto;
    visibility: visible;
    transition: max-height .25s var(--ease);
  }
  .site-nav-links a {
    width: 100%;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    border-bottom-width: 1px;
  }
  .site-nav-links a:last-child { border-bottom: 0; }
  .site-nav-links a.is-active,
  .site-nav-links a[aria-current="page"] {
    border-bottom-color: var(--line);
    color: var(--signal);
  }

  .hero,
  .section-head {
    grid-template-columns: 1fr;
  }
  .hero { align-items: start; }
  .hero-note { max-width: 610px; }

  .score-grid { grid-template-columns: 1fr 1fr; }
  .score:nth-child(2) { border-right: 0; }
  .score:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .proxy-grid,
  .card-grid,
  .card-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .card-grid.cols-2 { grid-template-columns: 1fr; }

  .diagnostic,
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-row .stat:nth-child(2) { border-right: 0; }

  .facts { grid-template-columns: 1fr; }
  .facts .fact:nth-child(odd),
  .facts .fact:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .compare { grid-template-columns: 1fr; }
  .compare-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .compare-col:last-child { border-bottom: 0; }

  .deflist { grid-template-columns: 1fr; }
  .deflist dt,
  .deflist dd { padding: 10px 0; }
  .deflist dt { padding-top: var(--space-m); border-bottom: 0; }

  .footer-cols { grid-template-columns: 1fr; gap: var(--space-l); }
  .section-head { margin-bottom: var(--space-xl); }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 26px, var(--measure)); }
  :root { --nav-h: 56px; }

  .score-grid,
  .diagnostic,
  .stat-row { grid-template-columns: 1fr; }
  .score {
    min-height: 170px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .score:last-child { border-bottom: 0; }
  .stat-row .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-row .stat:last-child { border-bottom: 0; }

  .facts .fact { grid-template-columns: 1fr; gap: 6px; }

  .footer-row { flex-direction: column; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .timeline { grid-template-columns: 1fr; }
  .timeline dt { padding-bottom: 0; border-bottom: 0; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* keep printed evidence legible — this is a publication of record */
@media print {
  .site-nav, .nav-burger, .cta, .btn { display: none !important; }
  body { background: #fff; }
  section { break-inside: avoid; }
}
