/* vAll foundations (design/README.md). Shared by every suite. Load before a suite file.
 * Theme: <html data-suite="build" data-theme="light|dark|system">. Suite files define colours with
 * light-dark(), so the active colour-scheme picks the value. No data-theme = suite default. */

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="system"] { color-scheme: light dark; }

:root {
  /* Spacing, 4 px base. Name = px. */
  --sp-0: 0; --sp-2: 2px; --sp-4: 4px; --sp-6: 6px; --sp-8: 8px; --sp-12: 12px; --sp-16: 16px;
  --sp-20: 20px; --sp-24: 24px; --sp-32: 32px; --sp-40: 40px; --sp-48: 48px; --sp-64: 64px; --sp-80: 80px;

  /* Type scale. Name = px. 14 is body. */
  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
  --fs-24: 24px; --fs-30: 30px; --fs-36: 36px; --fs-48: 48px; --fs-60: 60px;
  --lh-body: 1.5; --lh-display: 1.15;

  /* Radius scale. Suites set --radius to their default step. */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 9999px;
  --radius: var(--r-md);

  /* Motion */
  --dur-fast: 120ms; --dur: 200ms; --dur-slow: 320ms;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Layering */
  --z-shell: 10; --z-dropdown: 20; --z-sticky: 30; --z-dialog: 40; --z-toast: 50; --z-command: 60;

  /* Focus ring: use as `outline: var(--focus-ring); outline-offset: 2px;` */
  --focus-ring: 2px solid var(--focus);

  /* Font stacks (suites override with their Google Fonts) */
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono-system: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Breakpoints (reference only; custom properties can't be used in media queries):
     sm 640, md 768, lg 1024, xl 1280, 2xl 1536 */
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
}
