/* ============================================================================
   tokens.css — Antedate design system
   ----------------------------------------------------------------------------
   Single source of truth for color, type, spacing, radius and elevation.

   Audience: patent litigation counsel and testifying experts building an
   invalidity case. The visual language is meant to read as an established,
   authoritative research service — not a prototype. Two deliberate signals do
   most of the work:
     1. A serif display face (--font-serif) for headlines — gravitas + trust.
     2. A restrained palette: one accent for "interactive / important", and a
        green / amber / red ramp RESERVED for true status meaning (case
        strength, coverage, confidence), never decoration.

   If a component needs a color, reference a token. Don't hardcode hex.
   ========================================================================== */

:root {
  /* ── Type ─────────────────────────────────────────────────────────────── */
  /* Serif display stack — authoritative headlines. System fonts only (no
     network dependency): Iowan/Palatino on Apple, Cambria/Georgia elsewhere. */
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
                Palatino, "Cambria", Georgia, "Times New Roman", serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;

  --text-xs:   0.72rem;
  --text-sm:   0.8rem;
  --text-base: 0.9rem;
  --text-md:   1rem;
  --text-lg:   1.2rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.6rem;

  /* ── Neutrals — warm-cool slate; surfaces, text, lines ────────────────── */
  --bg:         #f4f6fa;   /* page background                */
  --bg-tint:    #eef1f7;   /* subtle banded background        */
  --surface:    #ffffff;   /* primary card                  */
  --surface-2:  #f7f9fc;   /* secondary / inset panel        */
  --surface-3:  #eef2f8;   /* deepest inset (code, quotes)   */
  --ink:        #0f1b33;   /* primary text / headings        */
  --ink-2:      #344256;   /* body text                      */
  --ink-3:      #5d6b80;   /* secondary / meta               */
  --ink-4:      #8a97ab;   /* muted / placeholder            */
  --line:       #e3e8f0;   /* default border                 */
  --line-2:     #c8d2e0;   /* stronger border (inputs)       */

  /* Dark surface — the navy band used for topbars, the reasoning ledger,
     the footer. Deep + slightly desaturated reads "established", not "tech demo". */
  --ink-surface:      #0d1730;
  --ink-surface-2:    #1a2742;
  --ink-surface-line: #2c3a58;
  --on-dark:          #e6ebf4;
  --on-dark-muted:    #9aa7bd;

  /* ── Accent — the ONE interactive / "important" color ─────────────────── */
  --accent:        #1d4ed8;
  --accent-hover:  #1b44bd;
  --accent-deep:   #16307e;   /* headings / hero ink / dark accents */
  --accent-ink:    #1c3a8a;   /* accent-colored text on light bg    */
  --accent-bg:     #eef3fe;   /* tinted background                  */
  --accent-border: #c2d4f6;
  --accent-soft:   #93b4f0;
  --accent-grad:   linear-gradient(180deg, #2a5ae6 0%, #1d4ed8 60%, #1a45c4 100%);

  /* ── Status — RESERVED for meaning (strength / coverage / confidence) ─── */
  --good:        #1a7f43;
  --good-bg:     #eefbf2;
  --good-border: #9fe0b6;
  --warn:        #a85a1a;
  --warn-bg:     #fdf6ea;
  --warn-border: #f3cf94;
  --bad:         #b3261e;
  --bad-bg:      #fdf1f0;
  --bad-border:  #f1b3ae;

  /* ── Radius ───────────────────────────────────────────────────────────── */
  --r-sm:   6px;
  --r:      9px;
  --r-lg:   13px;
  --r-xl:   18px;
  --r-pill: 999px;

  /* ── Elevation — soft, layered, low-contrast (premium, not harsh) ─────── */
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, 0.05);
  --shadow:    0 1px 2px rgba(15, 27, 51, 0.04), 0 6px 16px rgba(15, 27, 51, 0.06);
  --shadow-md: 0 2px 4px rgba(15, 27, 51, 0.05), 0 12px 28px rgba(15, 27, 51, 0.09);
  --shadow-lg: 0 8px 40px rgba(15, 27, 51, 0.16);

  /* ── Spacing scale ────────────────────────────────────────────────────── */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 56px;
  --sp-16: 72px;

  /* ── Focus ring ───────────────────────────────────────────────────────── */
  --ring: 0 0 0 3px rgba(29, 78, 216, 0.18);

  /* ── Topbar ───────────────────────────────────────────────────────────── */
  --topbar-h: 52px;

  /* Readable measure for long-form / legal text. */
  --measure: 68ch;
}
