/* ai-ready.in design tokens (BUILD_BRIEF §6.1). Every colour pairing used in components is checked
   against WCAG 2.2 AA in .loop/EVIDENCE/T04/contrast.txt. */

@font-face{font-family:"Fraunces";src:url("../fonts/fraunces-var.woff2") format("woff2");font-weight:500 600;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url("../fonts/fraunces-italic-500.woff2") format("woff2");font-weight:400 600;font-style:italic;font-display:swap}
@font-face{font-family:"Geist";src:url("../fonts/geist-var.woff2") format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"AR Caps";src:url("../fonts/arcaps-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
/* Metric-matched fallbacks (T14): Times New Roman / Arial metrics scaled to Fraunces / Geist, so the
   font swap doesn't shift layout (CLS). Values computed with fontTools from the subset woff2 files. */
@font-face{font-family:"Fraunces Fallback";src:local("Times New Roman"),local("TimesNewRomanPSMT"),local("Liberation Serif"),local("Tinos");font-style:normal;size-adjust:106.38%;ascent-override:91.93%;descent-override:23.97%;line-gap-override:0%}
@font-face{font-family:"Fraunces Fallback";src:local("Times New Roman Italic"),local("TimesNewRomanPS-ItalicMT"),local("Liberation Serif Italic"),local("Tinos Italic");font-style:italic;size-adjust:103.16%;ascent-override:94.80%;descent-override:24.72%;line-gap-override:0%}
@font-face{font-family:"Geist Fallback";src:local("Arial"),local("ArialMT"),local("Liberation Sans"),local("Arimo");size-adjust:104.81%;ascent-override:95.89%;descent-override:28.15%;line-gap-override:0%}

:root{
  /* colour */
  --ink:#0C0B0A;            /* primary dark */
  --charcoal:#151311;       /* secondary dark: check section, cards */
  --paper:#C8B796;          /* kraft */
  --ivory:#EDE6D8;          /* text on dark (15.8:1 on ink) */
  --ivory-2:#CFC6B5;        /* body copy on dark (11.6:1) */
  --muted-dark:#B9AF9E;     /* secondary text on dark (9.1:1 ink, 8.6:1 charcoal) */
  --muted-dark-2:#8C7E6A;   /* small notes on dark (5.0:1 ink, 4.7:1 charcoal) */
  --ink-text:#14110E;       /* text on paper (9.6:1) */
  --ink-text-2:#2A251F;     /* secondary text on paper (7.7:1) */
  --ink-text-3:#3A342C;     /* labels on paper (6.3:1) */
  --bronze:#B4865A;         /* fine lines. Never text on paper (1.6:1) */
  --bronze-label:#C99A6A;   /* labels on dark (7.8:1 ink) */
  --vermilion:#E3401E;      /* the one accent. Ink text on it (4.7:1). Never small text on paper */
  --vermilion-hi:#FF6A47;   /* hover tint, 6.9:1 on ink */

  --line-dark:#2A2520;      /* hairlines on dark (decorative) */
  --line-dark-2:#3A3026;    /* card borders on dark (decorative) */
  --line-ui-dark:#8C7E6A;   /* input / secondary button borders on dark (5.0:1, ≥3:1 UI) */
  --line-paper:#8C7A5E;     /* hairlines on paper (decorative) */

  /* type */
  --font-display:"Fraunces","Fraunces Fallback",Georgia,"Times New Roman",serif;
  --font-label:"AR Caps","Marcellus",Georgia,serif;
  --font-body:"Geist","Geist Fallback",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;

  --fs-body:1.0625rem;      /* 17px */
  --fs-body-lg:clamp(1.125rem,1rem + .45vw,1.3125rem); /* 18-21px */
  --fs-small:.9375rem;      /* 15px */
  --fs-note:.8125rem;       /* 13px, the floor for running notes */
  --fs-label:.8125rem;      /* 13px small caps, 0.16em */
  --fs-h4:clamp(1.3125rem,1.2rem + .4vw,1.5625rem);        /* 21-25 */
  --fs-h3:clamp(1.5rem,1.3rem + .8vw,1.875rem);            /* 24-30 */
  --fs-h2:clamp(2.125rem,1.4rem + 2.9vw,3.5rem);           /* 34-56 */
  --fs-h1:clamp(2.75rem,1.6rem + 4.6vw,5.125rem);          /* 44-82 */
  --fs-display:clamp(3rem,1.5rem + 6vw,5.5rem);            /* closing signature, 48-88 */
  --lh-tight:1.04; --lh-head:1.12; --lh-body:1.6;
  --track-label:.16em; --track-display:-.012em;

  /* layout */
  --maxw:1240px;
  --gutter:40px;
  --pad-x:40px;
  --section-y:clamp(4.5rem,3rem + 5vw,6.5rem);
  --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-5:1.5rem;
  --space-6:2rem; --space-7:2.75rem; --space-8:3.5rem; --space-9:4.5rem;
  --radius:2px; --radius-card:10px;
  --tap:44px;
  --header-h:80px; --header-h-compact:64px;
}
@media (max-width:767px){:root{--gutter:20px;--pad-x:20px}}
