/* Studios33 design tokens — single source of truth. See docs/DESIGN_SYSTEM.md */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600&display=swap');

:root {
  color-scheme: light;

  /* Colour · surfaces (warm paper, not pure white) */
  --paper: #f4f2ec;
  --paper-deep: #ebe7dd;
  --surface: #ffffff;
  --line: #d9d4c7;
  --line-strong: #b9b2a2;

  /* Colour · text (all ≥ 4.5:1 on --paper) */
  --ink: #0f1b2a;        /* 15.50:1 */
  --ink-2: #39424e;      /*  9.09:1 */
  --muted: #5b636d;      /*  5.44:1 */

  /* Colour · brand accent (vermilion) */
  --accent: #b23a1c;     /*  5.34:1 on paper · white on it 5.97:1 */
  --accent-strong: #8f2d14;

  /* Colour · semantic product & status */
  --holistica: #24406e;  --holistica-bg: #e3e8f1;  /* 8.40:1 */
  --yovote: #1d6a4e;     --yovote-bg: #e2eee7;     /* 5.46:1 */
  --live: #1d6a4e;       --live-bg: #e2eee7;
  --dev: #7a5200;        --dev-bg: #f3e7cc;        /* 5.64:1 */
  --lab: #39424e;        --lab-bg: #e6e3dc;
  --alert: #9b1c2c;      --alert-bg: #f5e1e3;

  /* Colour · inverse band */
  --band: #0f1b2a;
  --band-text: #c9ced6;  /* 10.97:1 */
  --band-accent: #e0623f;

  /* Typography */
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-h3: 1.5rem;
  --text-h2: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  --text-h1: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
  --text-figure: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  --tracking-label: 0.14em;

  /* Spacing · 4/8pt scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-section: clamp(64px, 5vw + 40px, 112px);
  --gutter: 32px;

  /* Sizing & shape */
  --container: 1160px;
  --measure: 62ch;
  --touch-target: 44px;
  --radius: 2px;
  --rule: 1px solid var(--line);

  /* Motion */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layers */
  --z-header: 100;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}
