/* ==========================================================================
   MIRROR STUDIO — SLATE v35 DESIGN TOKEN BRIDGE
   Connected to public/slate/slate.css (zero hardcoded surfaces or timings).
   Switching Slate's data-colors, data-mode, data-shape, or data-finish on
   <html> updates every surface, ink, accent, shadow, radius, and transition.
   ========================================================================== */

:root {
  /* 1. Surfaces (mapped directly to Slate v35 stepped surface tokens) */
  --surface-rail: var(--surface);
  --surface-canvas: var(--scene);
  --surface-panel: var(--surface);
  --surface-card: var(--surface-2);
  --surface-control: var(--surface-3);
  --surface-control-hover: color-mix(in oklab, var(--surface-3) 82%, var(--ink));
  --surface-elevated: var(--surface);

  /* 2. Borders */
  --border-hairline: var(--line);
  --border-control: var(--line-2);
  --border-focus: var(--accent);

  /* 3. Ink / Typography Colors */
  --ink-primary: var(--ink);
  --ink-body: var(--ink);
  --ink-secondary: var(--muted);
  --ink-muted: var(--faint);

  /* 4. Semantic & Signature Accents */
  --accent-blue: var(--accent);
  --accent-blue-hover: color-mix(in oklab, var(--accent) 82%, var(--on-accent));
  --accent-blue-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --accent-on: var(--on-accent);
  --accent-link: var(--accent-text);
  --accent-green: var(--good);
  --accent-green-soft: color-mix(in oklab, var(--good-fill) 18%, transparent);
  --accent-amber: var(--warn);
  --accent-amber-soft: color-mix(in oklab, var(--warn-fill) 20%, transparent);
  --accent-red: var(--bad);

  /* 5. Session Mascot Palette (mapped to Slate's 6 theme hues) */
  --mascot-orange: var(--hue-2);
  --mascot-gold: var(--hue-4);
  --mascot-sky: var(--hue-1);
  --mascot-purple: var(--hue-6);
  --mascot-coral: var(--hue-5);
  --mascot-pink: var(--hue-3);

  /* 6. Typography (Slate font system) */
  --font-sans: var(--font-body);
  --font-display: var(--font-head);
  --font-mono: var(--font-code);

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-prose: var(--t-base);
  --text-md: 1.125rem;
  --text-lg: 1.3125rem;
  --text-xl: var(--t-2xl);

  --weight-regular: var(--w-regular);
  --weight-medium: 500;
  --weight-semibold: var(--w-semi);

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;

  /* 7. Spacing Scale (Slate steps) */
  --space-1: var(--s1);
  --space-2: var(--s2);
  --space-3: var(--s3);
  --space-4: var(--s4);
  --space-5: var(--s5);
  --space-6: var(--s6);
  --space-8: var(--s7);

  /* 8. Radii (respond live to Slate data-shape: round | soft | square) */
  --radius-sm: var(--r-sm);
  --radius-md: var(--r-md);
  --radius-lg: var(--r-lg);
  --radius-pill: var(--r-ctl);

  /* 9. Layout Dimensions */
  --rail-width: 268px;
  --tool-width: 468px;
  --header-height: 58px;

  /* 10. Elevation & Motion (strictly Slate timing tokens) */
  --shadow-modal: var(--pop-shadow);
  --shadow-media: var(--card-shadow);
  --ease-fast: var(--fast) var(--ease);
  --ease-smooth: var(--slow) var(--ease);
}
