/* =========================================================
   tokens.css — base design tokens + variant definitions
   Only this file may contain raw colour and size values.
   ========================================================= */

:root {
  /* ── Brand ───────────────────────────────────────────── */
  --green-800: #04543f;
  --green-700: #056b50;   /* AA for white text and for text on white */
  --green-600: #058765;   /* AA against white at 4.51; decorative fills */
  --green-500: #0cc392;   /* decorative only: 2.27 on white */
  --green-050: #e8f7f2;

  --navy-900: #071c2f;
  --navy-800: #0b2f50;
  --navy-700: #14405f;
  --navy-050: #eef3f8;

  --gold-800: #875f35;   /* smallest gold that passes AA as text on tint */
  --gold-700: #996532;
  --gold-600: #b87a3c;
  --gold-500: #d09353;
  --gold-050: #fdf4e8;

  --sky-700: #1a5fc4;   /* AA for white text; also clears 3:1 as a focus ring */
  --sky-600: #287cf3;
  --sky-500: #2eb3f8;   /* decorative only */

  /* ── Neutrals ────────────────────────────────────────── */
  --white: #ffffff;
  --black: #000000;

  --navy-950: #0b2436;   /* nav dropdown surface */
  --navy-1000: #0b1a26;  /* lightbox surface */

  --ticker-ink: #9aa3ad;
  --ticker-sep: #9e0d0b;

  --ink: #14202b;
  --ink-muted: #4f5965;
  --ink-subtle: #6b7684;
  --line: #dde4ea;         /* decorative dividers only */
  --line-soft: #eef2f5;
  --line-strong: #8d959e;  /* 3.03:1 on white — inputs and controls */
  --map-region: #6b7684;   /* 4.3:1 on surface-alt; white labels on it 4.6:1 */
  --surface: #ffffff;
  --surface-alt: #f5f8fa;
  --surface-tint: #eae7e7;

  /* ── Semantic (variant-neutral defaults) ─────────────── */
  --color-action: var(--green-700);
  --color-action-hover: var(--green-800);
  --color-action-text: #ffffff;
  --color-link: var(--navy-800);
  --color-link-hover: var(--green-700);
  --color-accent-text: var(--gold-800);
  --color-brand-text: var(--green-700);
  --color-danger: #b42318;
  --color-focus: var(--sky-700);
  --color-focus-on-dark: var(--sky-500);  /* 7.3:1 on navy-900 */
  --color-on-dark: #ffffff;
  --color-on-dark-muted: rgba(255, 255, 255, 0.9);

  /* ── Typography scale ────────────────────────────────── */
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.6vw, 1.5rem);
  --step-3: clamp(1.6rem, 2.6vw, 2.25rem);
  --step-4: clamp(2rem, 4vw, 3.25rem);
  --step-5: clamp(2rem, 4.6vw, 4rem);
  --step-6: clamp(2.5rem, 6vw, 5rem);

  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-body: 1.7;
  --leading-loose: 1.8;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.045em;
  --tracking-wider: 0.12em;
  --tracking-widest: 0.2em;

  /* ── Space ───────────────────────────────────────────── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(3.25rem, 7vw, 6rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* ── Radius ──────────────────────────────────────────── */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ── Elevation ───────────────────────────────────────── */
  --shadow-1: 0 1px 2px rgba(7, 28, 47, 0.06), 0 8px 24px rgba(7, 28, 47, 0.06);
  --shadow-2: 0 12px 40px rgba(7, 28, 47, 0.12);

  /* ── Layout ──────────────────────────────────────────── */
  --measure: 68ch;
  --measure-wide: 80ch;
  --container: 1220px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --nav-h: 84px;

  /* ── Motion ──────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* =========================================================
   Surface and variant tokens

   These were selected as the site's single design. They previously
   lived in three places — a `[data-variant="a"]` block, a
   `[data-variant="b"]` block, and a variant-neutral fallback — because
   the repo built three mockups side by side and the reader could switch
   between them.

   Variant A was chosen, so there is nothing left to switch between:
   its values are simply the defaults now, declared once on `html`.
   `data-variant` is gone from every page, and so are the B blocks.
   Variant B and its stylesheet remain in git history at 3088541, the
   commit immediately before the promotion, if the decision is ever
   revisited.

   Institutional: Verdana system stack, navy headings, green accents,
   gold numerals, pill buttons, square-ish soft cards.
   ========================================================= */

html {
  --v-surface: var(--surface);
  --v-surface-alt: var(--surface-tint);
  --v-surface-dark: var(--navy-900);

  --v-color-brand: var(--green-600);
  --v-color-brand-text: var(--green-700);
  --v-color-heading: var(--navy-800);
  --v-color-body: var(--ink);
  --v-color-accent: var(--gold-800);   /* text-safe gold */
  --v-color-accent-fill: var(--gold-500); /* decorative rules and numerals */
  --v-color-icon-tile: var(--gold-050);   /* tint behind value/challenge marks */
  --v-color-action: var(--sky-700);
  --v-color-action-hover: var(--navy-800);
  --v-color-action-text: #ffffff;

  --v-font-display: Verdana, Geneva, Tahoma, sans-serif;
  --v-font-body: Roboto, Arial, Helvetica, sans-serif;

  --v-tracking-heading: var(--tracking-widest);
  --v-weight-heading: 900;
  --v-transform-heading: uppercase;

  --v-radius-card: var(--radius-sm);
  --v-radius-btn: var(--radius-pill);
  --v-shadow-card: 0 12px 32px rgba(11, 47, 80, 0.08);
  --v-heading-size: var(--step-3);
}
