/**
 * Folio presentation token bridge — NOT a color SSOT.
 * Hex fallbacks = slate MVP; live values come from global theme
 * (content/site-theme.json → theme-materialize → --site-primitive-* / --color-*).
 */
:root,
html[data-theme="slate"] {
  --bg: var(--site-primitive-background, var(--color-bg, #0c1016));
  --bg-elevated: var(--site-primitive-surface, var(--color-surface, #121820));
  --bg-panel: var(--color-surface-2, var(--site-primitive-surface, #171e28));
  --border: var(--color-border-hover, #2a3544);
  --border-strong: color-mix(in srgb, var(--color-text-primary, #e8edf4) 22%, transparent);
  --text: var(--color-text-primary, #e8edf4);
  --text-muted: var(--color-text-secondary, #9aa6b5);
  --text-faint: var(--color-text-muted, #6b7788);
  --accent: var(--site-primitive-primary, var(--color-accent, #6b8cae));
  --accent-hover: var(--site-primitive-secondary, var(--color-accent-hover, #82a3c4));
  --accent-dim: var(--color-accent-muted, rgba(107, 140, 174, 0.2));
  --danger-line: #3d444c;

  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --space-1: 0.2rem;
  --space-2: 0.4rem;
  --space-3: 0.55rem;
  --space-4: 0.75rem;
  --space-5: 1rem;
  --space-6: 1.35rem;
  --space-7: 1.75rem;
  --space-8: 2.25rem;

  --rail: 3px;
  --max: 84rem;
  --header-h: 2.75rem;
  --project-focus-veil: rgba(4, 5, 7, 0.82);
  --ease: 180ms ease;
}

/* Local alt pack (MVP parity toggle) — promote to second theme pack later */
html[data-theme="signal"] {
  --bg: #100e0c;
  --bg-elevated: #181410;
  --bg-panel: #1e1914;
  --border: #3a322a;
  --border-strong: #4a4036;
  --text: #f0ebe4;
  --text-muted: #a89f94;
  --text-faint: #746b62;
  --accent: var(--site-primitive-attention, #c9874a);
  --accent-hover: #dba06a;
  --accent-dim: rgba(201, 135, 74, 0.2);
  --project-focus-veil: rgba(8, 6, 4, 0.84);
}

/* Defeat kit html/body font bleed — folio typography wins on this site */
html,
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-sans) !important;
}
