/* DSE — Datum Statutum Exploratum · design tokens v0.1 (27-sep-2026)
   Single source for color, type, spacing and shape. The website and every other DSE
   piece import this file; nobody hand-writes a hex value anywhere else. */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap");

:root {
  /* ── Lilac (primary). Brand base: lilac-300 #C8B8F6, hue 255° ── */
  --lilac-50:  #F7F4FE;
  --lilac-100: #EFEAFD;
  --lilac-200: #DFD5FB;
  --lilac-300: #C8B8F6;   /* DSE LILAC — brand surfaces, block backgrounds */
  --lilac-400: #AA96EC;
  --lilac-500: #8B72DE;
  --lilac-600: #6E52C4;   /* links and interaction on white (5.7:1) */
  --lilac-700: #56409C;   /* brand text on white (8:1) */
  --lilac-800: #3C2D6E;
  --lilac-900: #231A42;

  /* ── Lime (exact complement, hue 75°). Accent only: never a large background ── */
  --lime-100: #F4FADF;
  --lime-200: #E7F5B8;
  --lime-300: #D2ED82;    /* DSE LIME — "verified", logo dot, markers */
  --lime-500: #9AC322;
  --lime-700: #556C13;    /* readable lime text on white (6.9:1) */
  --lime-900: #2C380A;

  /* ── Neutrals with a hint of violet ── */
  --ink:     #18142A;     /* body text · 17.9:1 on white */
  --ink-2:   #3A3550;
  --muted:   #5E5A6E;     /* secondary text · 6.6:1 */
  --subtle:  #8C889B;     /* large metadata or decoration only */
  --line:    #E6E3EE;
  --line-2:  #D4D0DF;
  --paper:   #FBFAFD;     /* page background */
  --surface: #FFFFFF;     /* cards */
  --wash:    #F4F2F8;     /* alternating blocks */

  /* ── Verdict semantics (validator vocabulary) ── */
  --v-conformant:    #3F7A1E;  --v-conformant-bg:    #EAF5D6;
  --v-findings:      #8A5A00;  --v-findings-bg:      #FBF0D4;
  --v-nonconformant: #B3261E;  --v-nonconformant-bg: #FBE3E1;
  --v-incomplete:    #5E5A6E;  --v-incomplete-bg:    #EEEDF2;
  --v-notapplicable: #8C889B;

  /* ── Typography ── */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);  /* home page H1 */
  --fs-h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --fs-h3: 1.2rem;
  --fs-lead: 1.2rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;     /* mono eyebrows, uppercase */

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  /* ── Spacing (base 4) ── */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* ── Shape ── */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(24,20,42,.06), 0 1px 1px rgba(24,20,42,.04);
  --shadow-2: 0 8px 24px -8px rgba(24,20,42,.14), 0 2px 4px rgba(24,20,42,.05);

  --container: 1200px;
  --measure: 68ch;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Dark mode: the system setting decides unless the page sets data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ECE9F5; --ink-2: #CFCBDD; --muted: #A6A1B8; --subtle: #7C7790;
    --line: #2A2540; --line-2: #3A3453;
    --paper: #110E1D; --surface: #18142A; --wash: #1D1832;
    --lilac-600: #B3A1F2; --lilac-700: #C8B8F6;
    --lime-700: #D2ED82;
    --v-conformant: #B6DE78; --v-conformant-bg: #22300F;
    --v-findings: #F0C66A;   --v-findings-bg: #33270A;
    --v-nonconformant: #F29A92; --v-nonconformant-bg: #3A1614;
    --v-incomplete: #A6A1B8; --v-incomplete-bg: #25213A;
  }
}
:root[data-theme="dark"] {
  --ink: #ECE9F5; --ink-2: #CFCBDD; --muted: #A6A1B8; --subtle: #7C7790;
  --line: #2A2540; --line-2: #3A3453;
  --paper: #110E1D; --surface: #18142A; --wash: #1D1832;
  --lilac-600: #B3A1F2; --lilac-700: #C8B8F6;
  --lime-700: #D2ED82;
  --v-conformant: #B6DE78; --v-conformant-bg: #22300F;
  --v-findings: #F0C66A;   --v-findings-bg: #33270A;
  --v-nonconformant: #F29A92; --v-nonconformant-bg: #3A1614;
  --v-incomplete: #A6A1B8; --v-incomplete-bg: #25213A;
}
