/*
 * Sprint 2 design tokens — shared by assets/css/components/*.css.
 *
 * Loaded only on pages that render a component (inc/components.php),
 * never on the homepage. New names only (`--nv-` prefix): the :root
 * variables of index.css (--font-family, --font-size, --main-color)
 * are not redefined here.
 *
 * Breakpoints of index.css (custom properties cannot be used in @media):
 *   48em      768 px   tablet
 *   64.0625em 1025 px  desktop
 *   89.375em  1430 px  container max (1400 + 2 × 15 gutters)
 *
 * Fluid sizes are linear from the 375 px Figma phone frame to 1430 px
 * (89.375rem, the 1520 px desktop frame minus its 60 px margins), clamped
 * at both ends (index.css anchors its own clamps at 320 px instead).
 *
 * Figma measures text from the cap height to the baseline, CSS from the
 * line box: the gap between them is (line-height / 2 - 0.36) em for
 * Instrument Sans (ascent 0.97, descent 0.25, cap height 0.72), i.e.
 * 0.14em at line-height 1, 0.24em at 1.2, 0.25em at normal, 0.34em at 1.4,
 * 0.44em at 1.6. Components trim it with negative margins / smaller paddings.
 */

:root {
  --nv-green: #a8d95f;
  --nv-navy: #132132;
  --nv-blue: #215b87;
  --nv-blue-light: #1a79bf;
  --nv-sky: #ccf2fd;
  --nv-mist: #f7fafc;
  --nv-ice: #e8f2f9;
  --nv-steel: #ccdbe8;
  --nv-cloud: #ecf2f7;
  --nv-haze: #dce5ee;
  --nv-text: #2a3441;
  --nv-white: #fff;

  --nv-radius-s: 0.625rem;
  --nv-radius-m: 1.25rem;
  --nv-radius-pill: 2.5rem;

  /* Vertical section padding: 50 px mobile → 100 px desktop. */
  --nv-section-y: clamp(3.125rem, 2.0142rem + 4.7393vw, 6.25rem);
  /* Gap between text blocks: 40 px mobile → 50 px desktop. */
  --nv-flow-gap: clamp(2.5rem, 2.2778rem + 0.9479vw, 3.125rem);
  /* Section head type: eyebrow 14 → 20 px, h2 40 → 90 px, lead 20 → 23 px. */
  --nv-fs-eyebrow: clamp(0.875rem, 0.7417rem + 0.5687vw, 1.25rem);
  --nv-fs-h2: clamp(2.5rem, 1.3892rem + 4.7393vw, 5.625rem);
  --nv-fs-lead: clamp(1.25rem, 1.1833rem + 0.2844vw, 1.4375rem);
}
