/* Vaytax shell: design tokens (week 49, bet 1; RJ approved 24.11).

   What this file does: it only DEFINES custom properties. It styles no element, so a page that adopts it
   looks exactly as before until its own rules start reading these names.

   Two name families:
     --ds-*  colour, type, spacing, radius, shadow (ds = design system; no other file in site/ uses the prefix)
     --mo-*  motion, by the names in Marketing's contract (drafts/2026-11-25-motion-tokens.md), values unchanged

   One token set (Marketing 25.11): the four first-screen candidates RJ picks between on Tue 01.12 share one palette
   and differ only in layout, so there are no colour directions. The palette is today's navy and gold. Gold has two
   jobs: --ds-accent (#8a6d3b) is the darker gold for TEXT on white, --ds-accent-fill (#b08d3e) is for FILLS with navy
   text on it (white on that gold is 3.1:1). Gold text is AA on white only (4.85:1; 4.44:1 on the cool background).
   Muted text #6f6a58 is AA on every surface (Marketing 25.11). Form fields use --ds-border-input and sit on white. Every allowed pair is on the preview and tested.

   Fonts: self-hosted, never Google's servers. The faces are declared in /fonts.css (font-display: swap,
   woff2, latin + latin-ext) since 16.10, when loading them from Google sent every visitor's IP to Google before
   any consent (LG Muenchen I, 20.01.2022); the CSP also allows font-src 'self' only. Three faces (Marketing
   25.11): Marcellus for headings (--ds-font-display), Roboto for text (--ds-font-text), Montserrat for small-caps
   labels only (--ds-font-ui). A new family means its woff2 files under /fonts/ and @font-face rules in
   /fonts.css first. */

:root {
  /* colour: surfaces */
  --ds-bg: #ffffff;
  --ds-bg-alt: #f3f5f9;          /* cool background */
  --ds-bg-card: #eaecf1;
  --ds-dark: #14203b;
  --ds-dark-2: #1a2b4a;
  --ds-dark-3: #243a63;
  /* colour: text (each pair with a surface is contrast-checked by tests/test_shell_tokens_motion.py) */
  --ds-ink: #14203b;             /* headings and strong text: navy */
  --ds-ink-soft: #4a5265;        /* body text */
  --ds-ink-mute: #6f6a58;        /* muted: AA on white, the cool background and cards */
  --ds-on-dark: #ffffff;
  --ds-on-dark-soft: #cbd5e1;     /* text 14px and up on navy: 10.9:1 on --ds-dark, 9.5:1 on --ds-dark-2 (28.11, was #aeb7c7) */
  --ds-on-dark-small: #e2e8f0;    /* text under 14px on navy: 13.1:1 on --ds-dark, 11.5:1 on --ds-dark-2 */
  /* colour: accent (gold) and states */
  --ds-accent: #8a6d3b;          /* gold for text on white */
  --ds-on-accent: #ffffff;
  --ds-accent-fill: #b08d3e;     /* gold for fills */
  --ds-on-accent-fill: #14203b;
  --ds-accent-2: #c9a65a;        /* light gold: on navy */
  --ds-accent-soft: #d4bfa3;
  --ds-accent-pale: #e2cfa8;
  --ds-success: #27ae60; /* today's green: fills and icons only, it is under 4.5:1 as text on white */
  --ds-alert: #b32020; /* the urgent-help link and its dot in the header (text on --ds-bg, contrast-checked) */
  --ds-border: #e3ded2;          /* lines, warm */
  --ds-border-soft: #dfe3ec;     /* lines, cool */
  --ds-border-input: #8590a3;    /* form fields: 3.2:1 on white (on the cool background 2.95:1, so fields sit on white) */
  --ds-info: #2c4a85;
  --ds-info-bg: #e9eef8;
  --ds-focus: #8a6d3b;

  /* type: families (see the header for the two-font rule) */
  --ds-font-display: 'Marcellus', Georgia, serif;
  --ds-font-text: 'Roboto', system-ui, sans-serif;
  --ds-font-ui: 'Montserrat', system-ui, sans-serif;   /* small-caps labels only */
  --ds-font-mono: 'Roboto Mono', Menlo, monospace;
  /* type: scale (base 16px; the top step is today's hero headline) */
  --ds-fs-xs: 12px;
  --ds-fs-sm: 14px;
  --ds-fs-base: 16px;
  --ds-fs-md: 18px;
  --ds-fs-lg: 22px;
  --ds-fs-xl: clamp(26px, 3vw, 32px);
  --ds-fs-2xl: clamp(32px, 4vw, 44px);
  --ds-fs-3xl: clamp(40px, 5.4vw, 70px);
  --ds-lh-tight: 1.08;
  --ds-lh-snug: 1.3;
  --ds-lh-body: 1.6;
  --ds-fw-text: 400;
  --ds-fw-ui: 600;
  --ds-track-ui: 1.4px;

  /* spacing (4px steps, then larger jumps) and layout */
  --ds-sp-1: 4px;
  --ds-sp-2: 8px;
  --ds-sp-3: 12px;
  --ds-sp-4: 16px;
  --ds-sp-5: 24px;
  --ds-sp-6: 32px;
  --ds-sp-7: 48px;
  --ds-sp-8: 64px;
  --ds-sp-9: 96px;
  --ds-container: 1200px;

  /* radius */
  --ds-r-s: 6px;
  --ds-r-m: 12px;
  --ds-r-l: 18px;
  --ds-r-pill: 999px;
  --ds-r-btn: 8px;               /* buttons: design standard 28.11, section 4 */

  /* shadow (navy-tinted, as today) */
  --ds-shadow-s: 0 1px 3px rgba(20, 32, 59, .08);
  --ds-shadow-m: 0 8px 24px rgba(20, 32, 59, .10);
  --ds-shadow-l: 0 40px 80px -36px rgba(20, 32, 59, .45);

  /* motion: Marketing's ten tokens, names and values as in their contract */
  --mo-dur-xs: 120ms;
  --mo-dur-s: 180ms;   /* hover lift and focus; colour, background and border colour on hover (paint only) */
  --mo-dur-m: 350ms;
  --mo-dur-l: 600ms;
  --mo-ease: cubic-bezier(.2, .8, .2, 1);
  --mo-ease-pop: cubic-bezier(.2, .9, .3, 1.3);
  --mo-rise: 12px;
  --mo-stagger: 60ms;
  --mo-lift: -2px;
  --mo-press: .98;
  /* motion: five more, accepted by Marketing 25.11 as named (figures from the October set). --mo-count is the
     count-up's length: it changes text and moves nothing, so the 600 ms cap on movement does not apply. */
  --mo-slide: 8px;
  --mo-step: 800ms;
  --mo-part: 500ms;
  --mo-beat: 1200ms;
  --mo-count: 1200ms;
}
