/**
 * AL250 canonical design tokens — CSS custom properties
 *
 * Source of truth: packages/design-tokens/src/index.ts
 * Imported once at the root of every app via @al250/design-tokens/css.
 *
 * Composition utility classes (.al-h1, .al-eyebrow, etc.) live in the
 * sibling composition.css file (@al250/design-tokens/composition).
 *
 * Typography roles use resilient local/system stacks. Public identity must
 * never depend on a third-party font request succeeding.
 *
 * Camp tokens are surface-scoped overrides (Webster site, Mencken site)
 * and do NOT propagate to neutral surfaces.
 *
 * Aesthetic register: current American institution, not historical replica.
 * No gradients. No drop shadows on type. No rounded SaaS cards.
 * No parchment, sepia, paper texture, noise, or engraving ornament.
 *
 * DIRECTION A (2026-08-25). These values are the ones the live reference works
 * ship — standardamericandictionary.com and americanlanguage250.com. They were
 * being hand-copied into each surface's own globals ("so the two surfaces cannot
 * drift apart"), which is how the package fell behind and new surfaces landed
 * off-system. The package is the source of truth again; copy from here.
 */

:root {
  /* ---------- Color: neutral / institutional spine ---------- */
  --paper: #ffffff;        /* primary canvas */
  --paper-deep: #f3f4f6;   /* controls and quiet secondary regions */
  --paper-warm: #f8fafc;   /* alternate neutral surface; never cream */
  --ink: #151515;          /* body text */
  --ink-soft: #5e5c57;     /* secondary text — warm, not blue-grey */
  --rule: #d8d7d1;         /* hairlines, dividers — warm */
  --rule-soft: #e8e7e3;    /* lighter hairlines (derived from --rule) */
  --oxblood: #6f211d;      /* declarative accent, primary CTA */
  --oxblood-deep: #4a1410; /* CTA stamped-shadow, hover state */
  --gold: #6f211d;         /* COLLAPSED INTO OXBLOOD — Direction A runs one
                              accent, not two. Kept as a name so surfaces that
                              call for gold inherit the single accent instead of
                              introducing a second one. */
  --rose: #ead8d5;         /* quiet oxblood tint: fills, hover beds */

  /* ---------- Signal color: high-velocity public surfaces ---------- */
  --signal-red: #e43b2f;
  --signal-blue: #1554d1;
  --signal-yellow: #f2c300;
  --velocity-ink: #10192b;
  --orbital-space: #020408;
  --velocity-rule: #9aa5b4;
  --board-ink: #111c31;
  --board-cell: #1b2a45;

  /* ---------- Camp tokens (surface-scoped — do NOT propagate) ---------- */
  --webster: #1f3a5f;
  --webster-deep: #122443;
  --webster-gold: #a88838;
  --mencken: #5a2818;
  --mencken-deep: #3a1810;
  --mencken-gold: #a07828;

  /* ---------- Auxiliary (use sparingly, body copy only) ---------- */
  --rust: #8a3a1f;
  --green: #2a4a2a;

  /* ---------- Type: resilient local/system families ---------- */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: Charter, "Bitstream Charter", "Sitka Text", Georgia, serif;
  --font-caps: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-description: Charter, "Bitstream Charter", "Sitka Text", Georgia, serif;

  /* ---------- Type: weights ---------- */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---------- Type: scale (px) ----------
     Display / hero are responsive in practice — use clamp() at usage site.
     Numbers here are the canonical desktop ceilings. */
  --size-xs: 11px;
  --size-sm: 13px;
  --size-base: 16px;
  --size-body: 18px;
  --size-lead: 22px;
  --size-h6: 21px;
  --size-h5: 24px;
  --size-h4: 28px;
  --size-h3: 36px;
  --size-h2: 44px;
  --size-h1: 56px;
  --size-display: 72px;
  --size-hero: 96px;

  /* ---------- Type: tracking ---------- */
  --tracking-tight: -0.015em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;
  --tracking-caps: 0.08em;
  --tracking-caps-wide: 0.12em;
  --tracking-caps-extra: 0.16em;

  /* ---------- Type: line-height ---------- */
  --leading-tight: 1.0;
  --leading-snug: 1.1;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.65;

  /* ---------- Spacing scale (8-base) ---------- */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 100px;

  /* ---------- Radii (essentially square — no SaaS rounding) ---------- */
  --radius-none: 0;
  --radius-sm: 2px;       /* hairline-only on form controls */
  --radius-md: 4px;       /* used very rarely */

  /* ---------- Borders (semantic) ---------- */
  --border-hairline: 1px solid var(--rule);
  --border-ink: 1px solid var(--ink);
  --border-double-gold: 4px double var(--gold);

  /* ---------- Motion ---------- */
  --ease-linear: linear;
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --rise: 0.7s ease-out;

  /* ---------- Breakpoints ---------- */
  --bp-sm: 500px;
  --bp-md: 700px;
  --bp-lg: 800px;
  --bp-xl: 1080px;

  /* Kept as an inert compatibility token while older surfaces are retired. */
  --noise: none;
}
