/* ==========================================================================
   Design tokens — the single source of truth for the visual system.
   Palette and typefaces are fixed by the brand direction; nothing below
   should be overridden ad hoc in page stylesheets.
   ========================================================================== */

:root {
  /* ---- colour ------------------------------------------------------ */
  --ivory:      #F6F4EF;   /* dominant ground */
  --ivory-deep: #EFEBE2;   /* second surface: strips, table zebra */
  --ink:        #1B1B18;   /* headlines, primary text */
  --court:      #1F3D2E;   /* accent 1 — CTAs, links, active states, rules */
  --court-soft: #2F5643;   /* hover of court */
  --brass:      #A9762F;   /* accent 2 — stat emphasis, hovers */
  --neutral:    #857D6E;   /* secondary + caption text */
  --divider:    #DFDACD;   /* hairlines only */

  /* Medal colours. Gold is the brand brass — a title is the brand's own
     accent, not a separate hue. Silver is cooled so the two never read alike
     at a glance, which is the whole point of the coding. */
  --gold:        #A9762F;
  --gold-tint:   #F0E4CE;
  --gold-ink:    #6E4A16;
  --silver:      #8A9095;
  --silver-tint: #E4E5E4;
  --silver-ink:  #55595C;

  --focus:      #1F3D2E;
  --danger:     #8C3A2B;

  /* ---- type -------------------------------------------------------- */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "Barlow Condensed", "Arial Narrow", Arial, sans-serif;

  /* Fraunces axes: optical size, softness and the "wonk" leg on the g/y.
     Set once here so display type is consistent everywhere. */
  --display-axes: "opsz" 128, "SOFT" 22, "WONK" 1;

  --step--2: 0.75rem;
  --step--1: 0.8125rem;
  --step-0:  1.0625rem;                              /* body */
  --step-1:  clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step-2:  clamp(1.4rem,  1.2rem  + 0.9vw, 2rem);
  --step-3:  clamp(1.9rem,  1.5rem  + 1.8vw, 3rem);
  --step-4:  clamp(2.5rem,  1.8rem  + 3.2vw, 4.5rem);
  --step-5:  clamp(3rem,    1.4rem  + 9.7vw, 10rem); /* hero */

  --lh-tight: 0.98;
  --lh-head:  1.06;
  --lh-body:  1.62;

  /* ---- space ------------------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --section-y: clamp(3.5rem, 7vw, 7rem);
  --gutter:    clamp(1.25rem, 4.5vw, 4rem);
  --measure:   66ch;
  --page-max:  1360px;

  /* ---- motion ------------------------------------------------------ */
  --ease: cubic-bezier(0.22, 0.61, 0.28, 1);
  --dur-fast: 160ms;
  --dur:      280ms;
  --dur-slow: 620ms;
}

/* The palette is a deliberate single light identity — the brief rules out a
   dark treatment — so the dark-scheme preference keeps the same ground rather
   than inverting it. Contrast is already AA+ on ivory. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}
