/* Hallmark · tokens · source: deep-tms DESIGN.md (locked system) · genre: modern-minimal
 * Colours are DESIGN.md hex values converted to OKLCH; the landing adds two section surfaces
 * (navy, sky ink) that already live in the sales deck and promo film.
 */
:root {
  /* paper + ink (DESIGN.md §2) */
  --color-paper:        oklch(98.5% 0.001 106.4);   /* #FAFAF9 page */
  --color-paper-2:      oklch(97.6% 0.003 106.4);   /* #F7F7F5 alternation */
  --color-surface:      oklch(100% 0 0);            /* #FFFFFF cards, video frames */
  --color-ink:          oklch(21.8% 0 0);           /* #1A1A1A */
  --color-ink-2:        oklch(46.4% 0 0);           /* #595959 secondary */
  --color-muted:        oklch(52.1% 0 0);           /* #696969 metadata */
  --color-rule:         oklch(92.1% 0.003 106.5);   /* #E5E5E3 whisper border */

  /* the one accent */
  --color-accent:       oklch(57.3% 0.214 258.2);   /* #0070F3 */
  --color-accent-press: oklch(50.3% 0.197 259.2);   /* #005BD1 */
  --color-on-accent:    oklch(100% 0 0);

  /* section surfaces — white alternates with the system colours */
  --color-navy:         oklch(23.1% 0.048 251.7);   /* #0A1E33 */
  --color-navy-2:       oklch(26.9% 0.059 253.1);   /* #0F2742 */
  --color-on-navy:      oklch(96.5% 0.006 250);
  --color-on-navy-2:    oklch(78% 0.03 250);
  --color-sky:          oklch(80.7% 0.101 250.4);   /* accent on dark surfaces */
  --color-rule-dark:    oklch(36% 0.045 252);

  /* status (fills only) */
  --color-ok:           oklch(62.2% 0.166 146.2);
  --color-alert:        oklch(59.2% 0.202 21.2);
  --color-alert-on-dark: oklch(74.5% 0.135 20);    /* #FB8B8B — DESIGN.md driver dark error-ink */

  --color-focus:        oklch(57.3% 0.214 258.2);
  --color-focus-dark:   oklch(80.7% 0.101 250.4);

  /* type — Geist carries Latin, Noto Sans Thai carries Thai (DESIGN.md §3), Geist Mono for figures */
  --font-body:    "Geist", "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Geist", "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs:   0.875rem;   /* 14 — floor (ADR 0246) */
  --text-sm:   0.9375rem;  /* 15 */
  --text-base: 1.0625rem;  /* 17 */
  --text-lg:   1.25rem;
  --text-xl:   clamp(1.25rem, 1rem + 0.9vw, 1.5rem);
  --text-2xl:  clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --text-3xl:  clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  --text-display: clamp(2.75rem, 1.4rem + 5.4vw, 5.75rem);
  --text-mega:  clamp(3.25rem, 1rem + 9vw, 9rem);

  /* 4-pt scale */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 34rem;

  --radius-sm: 8px;      /* buttons, inputs (DESIGN.md dual radius) */
  --radius-md: 14px;     /* media frames */
  --radius-lg: 22px;
  --radius-pill: 999px;  /* chips, status */

  --rule-hair: 1px;
  --shadow-lift: 0 30px 60px -20px oklch(23% 0.05 252 / 0.45);
  --shadow-frame: 0 1px 3px oklch(0% 0 0 / 0.05), 0 18px 48px -12px oklch(23% 0.05 252 / 0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  --z-base: 0;
  --z-raised: 10;
  --z-nav: 40;
}
