/* Allison Rossi concepts: the canonical token contract (_system\CONCEPT.md, Build rules).
   Names are fixed; values may be retuned per concept in that concept's own stylesheet.
   Every concept loads this file first. Rem-based and zoom-aware: fluid steps use rem + vw.
   Ports to theme.json presets at implementation (spacing, fontSizes, palette). */

:root {
  /* Space scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --space-l: clamp(2rem, 1.6rem + 1.4vw, 3rem);
  --space-xl: clamp(3rem, 2.3rem + 2.4vw, 4.75rem);
  --space-2xl: clamp(4rem, 3rem + 3.6vw, 6.75rem);
  --space-3xl: clamp(5.5rem, 4rem + 5vw, 9rem);
  --space-4xl: clamp(7rem, 5rem + 7vw, 12rem);

  /* Section padding aliases */
  --section-space-none: 0;
  --section-space-tight: var(--space-xl);
  --section-space-half: var(--space-2xl);
  --section-space-default: var(--space-3xl);
  --section-space-extra: var(--space-4xl);

  /* Type scale (h1 maps to --text-3xl, h2 to --text-2xl, h3 to --text-xl) */
  --text-xs: 0.8125rem;
  --text-s: 0.9375rem;
  --text-m: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --text-l: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1vw, 2.25rem);
  --text-2xl: clamp(2.2rem, 1.6rem + 2.2vw, 3.75rem);
  --text-3xl: clamp(2.8rem, 1.8rem + 3.8vw, 5.75rem);
  --text-4xl: clamp(3.6rem, 2rem + 6.4vw, 9rem);

  /* Layout */
  --container-max: 90rem;      /* 1440px content width */
  --container-pad: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --measure: 68ch;

  /* Breakpoints, as tokens. CSS can't read custom properties inside @media,
     so media queries use these literal values: 48rem (768), 64rem (1024), 90rem (1440), 120rem (1920). */
  --bp-tablet: 48rem;
  --bp-laptop: 64rem;
  --bp-desktop: 90rem;
  --bp-wide: 120rem;

  /* Brand palette, from Allison's board. Concepts pick their grounds and one accent from these. */
  --brand-navy: #00053f;
  --brand-pink: #ff0054;
  --brand-lime: #ceff1a;
  --brand-teal: #1f6f78;
  --brand-purple: #4f1964;
  --brand-mint: #45bfa9;
  --brand-lilac: #e0d4ee;
  --brand-black: #000000;
  --brand-white: #ffffff;
}
