/* ==========================================================================
   Shared base tokens — every concept site and the Hub import this file.
   Per-project colour themes override the --color-* variables only.
   ========================================================================== */

:root {
  /* Spacing — 4px base, fluid at large sizes */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-section: clamp(4rem, 10vw, 10rem);

  /* Fluid type scale (1.25 at mobile → 1.333 at desktop) */
  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 1vw, 2.25rem);
  --fs-2xl: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  --fs-3xl: clamp(2.75rem, 2rem + 4vw, 6rem);
  --fs-hero: clamp(3.5rem, 2rem + 9vw, 14rem);

  --lh-tight: 0.95;
  --lh-snug: 1.15;
  --lh-body: 1.6;
  --tracking-hero: -0.045em;
  --tracking-caps: 0.12em;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-slow: 700ms;
  --dur-reveal: 1100ms;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
