/* ============================================================================
   maineaa — static design-token scales (Phase 1, GP-native reshape)
   Maine AA Area 28 · GeneratePress child theme
   ----------------------------------------------------------------------------
   POST-RESHAPE ROLE (implan §5, §1.4): this file is the mode-independent SCALES
   floor only — spacing, radius, fluid type, the density multiplier, a shadow
   FALLBACK floor, and the font-scale + fixed font-family vars. It no longer carries any
   COLORS: the 8 palette tokens now live in GeneratePress's own global_colors
   (emitted natively as :root{--contrast…--accent-2…}), and the 6 guarded
   survivor helpers (brand-text, on-brand, brand-dark, on-accent, line,
   border-strong) plus the two non-color knobs (elevation→shadow, density) are
   emitted inline by MaineAA_Token_CSS via wp_add_inline_style on this handle
   (so those inline overrides print right after this file and win).

   Light-only (the reshape dropped dark mode). No presets, no [data-maineaa-preset].
   ============================================================================ */

/* ---------------------------------------------------------------- SCALES
   Mode-independent. Emitted once. The inline survivor sheet (added on this same
   handle) overrides --maineaa-density and --maineaa-shadow-* per the knobs. */
:root {
  color-scheme: light;
  --maineaa-font-scale: 1;

  /* density multiplier — driven by the `maineaa_density` knob (W3 augmentation);
     the inline sheet overrides this per-request. 1 = reference spacing. */
  --maineaa-density: 1;

  /* spacing — 4px base, rem; every rung scales by the density multiplier so the
     compact↔airy knob opens/tightens the whole scale in one place. */
  --maineaa-space-1: calc(.25rem  * var(--maineaa-density, 1));  /*  4px */
  --maineaa-space-2: calc(.5rem   * var(--maineaa-density, 1));  /*  8px */
  --maineaa-space-3: calc(.75rem  * var(--maineaa-density, 1));  /* 12px */
  --maineaa-space-4: calc(1rem    * var(--maineaa-density, 1));  /* 16px */
  --maineaa-space-5: calc(1.5rem  * var(--maineaa-density, 1));  /* 24px */
  --maineaa-space-6: calc(2rem    * var(--maineaa-density, 1));  /* 32px */
  --maineaa-space-7: calc(3rem    * var(--maineaa-density, 1));  /* 48px */
  --maineaa-space-8: calc(4rem    * var(--maineaa-density, 1));  /* 64px */

  /* corners multiplier — driven by the `maineaa_corners` knob (§Stream-1); the
     inline sheet overrides this per-request. 1 = reference roundness. Every non-pill
     rung scales by it so the sharp↔round knob reshapes the whole scale in one place. */
  --maineaa-corners: 1;

  /* radius */
  --maineaa-radius-sm: calc(8px  * var(--maineaa-corners, 1));
  --maineaa-radius: calc(16px * var(--maineaa-corners, 1)); /* P-2: card/accordion/doclist — Eric ~16px */
  --maineaa-radius-lg: calc(16px * var(--maineaa-corners, 1));
  --maineaa-radius-xl: calc(24px * var(--maineaa-corners, 1)); /* design-language: page-shell panel — Eric ~24px */
  --maineaa-radius-pill: 100px; /* a pill stays a pill — NOT scaled by corners */

  /* fluid type — modular ratio 1.2, body 1rem→1.125rem, fluid 320px→1280px */
  --maineaa-text-sm:   clamp(0.8333rem, 0.7986rem + 0.174vw, 0.9375rem); /* step -1 · caption */
  --maineaa-text-base: clamp(1rem,      0.9583rem + 0.208vw, 1.125rem);  /* step  0 · body   */
  --maineaa-text-md:   clamp(1.2rem,    1.15rem   + 0.25vw,  1.35rem);   /* step  1 */
  --maineaa-text-lg:   clamp(1.44rem,   1.38rem   + 0.3vw,   1.62rem);   /* step  2 */
  --maineaa-text-xl:   clamp(1.728rem,  1.656rem  + 0.36vw,  1.944rem);  /* step  3 */
  --maineaa-text-2xl:  clamp(2.0736rem, 1.9872rem + 0.432vw, 2.3328rem); /* step  4 */
  --maineaa-text-3xl:  clamp(2.4883rem, 2.3846rem + 0.518vw, 2.7994rem); /* step  5 · hero */

  /* shadow FALLBACK floor — reference tint rgb(34,53,59), at the default
     elevation. The inline survivor sheet overrides these per the elevation knob
     (0 = none/flat, up = lifted); this floor only shows if that inline sheet is
     ever stripped. --maineaa-shadow-lg is the reference card shadow. */
  --maineaa-shadow-sm: 0 1px 2px rgba(34,53,59,.05);
  --maineaa-shadow-md: 0 6px 16px rgba(34,53,59,.08);
  --maineaa-shadow-lg: 0 18px 45px rgba(34,53,59,.12);

  /* font pair — FIXED self-hosted Manrope (body) / Syne (headings), reshape §4.
     GP now owns body + heading font-family natively via its `typography` store
     (inc/gp-populate.php: body→Manrope, all-headings→Syne); these vars carry the
     SAME pair to the theme's OWN components (hero title, buttons, tabs, cards…)
     that GP's body/h1-h6 assignment doesn't reach. @font-face bytes in fonts.css.
     No [data-maineaa-font] switch — the pairing is fixed (the reshape dropped the
     bespoke font pickers). */
  --maineaa-font-body: "Manrope", system-ui, sans-serif;
  --maineaa-font-display: "Syne", system-ui, sans-serif;
}
