/*
  Ringside Lineup site: design tokens.

  Two layers:
  1. Scales (this file): space, type sizes, radii, widths, motion. Shared by every theme.
  2. Themes (themes.css): colors, fonts, corner style and depth. Each theme sets the same
     semantic names, so a new look is one new block in themes.css and nothing else.

  Components (components.css) use ONLY the semantic names (--color-*, --font-*, --radius-*,
  --shadow-*, --space-*, --text-*). Never a raw hex value or pixel size in a component.
*/
:root {
  /* Space (4px steps) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Type sizes (fluid between phone and desktop) */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  /* Widths */
  --width-page: 72rem;
  --width-text: 40rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur: 220ms;

  /* Corner scale. Themes pick from it with --radius-card / --radius-button. */
  --r-0: 0;
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 22px;
  --r-pill: 999px;
}

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