/*
 * Boise Civic Trust — foundation tokens.
 *
 * Raw brand values only. Components must not consume these directly;
 * they consume the semantic layer (tokens.semantic.css). See
 * docs/BRAND_GUIDELINES.md §9, §10, §26, §27, §46.
 */

:root {
  /* ---- Core palette ---- */
  --bct-deep-green: #1c2b24;
  --bct-warm-ivory: #e6e0d5;
  --bct-civic-gold: #b89a5a;
  --bct-graphite: #4a4c47;

  /* Derived tints and shades of the core palette. These are the only
     approved derivations; do not invent new hues in feature CSS. */
  --bct-ivory-raised: #eee9df;
  --bct-ivory-sunken: #d8d0c2;
  --bct-ivory-deep: #cfc6b5;
  --bct-green-raised: #24352d;
  --bct-green-sunken: #16221c;
  /* Deepened from #8e733e so gold text meets WCAG 4.5:1 on Warm
     Ivory and on the attention-chip tint (measured 5.75 and 5.04). */
  --bct-gold-deep: #66512d;
  --bct-gold-faint: rgba(184, 154, 90, 0.16);

  /* Functional colors: muted, subordinate to the core palette. */
  --bct-danger: #7a382f;
  --bct-success: #355f49;
  --bct-info: #4a625d;

  /* ---- Typography ----
     Approved brand webfonts are not yet committed to the repository.
     Per BRAND_GUIDELINES §10.3 these are the conservative fallback
     stacks for live text; the wordmark itself is artwork and is never
     set in live type. */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-ui: 'Public Sans', Arial, Helvetica, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', Courier, monospace;

  /* Fluid Utopia-style scale. Each step interpolates from a 320px
     floor to a 1440px ceiling; rem is mixed into every preferred
     value so text still scales at 200% zoom (WCAG 1.4.4), and no
     step's min→max ratio exceeds ~2.25. Body copy deliberately
     reaches 1.1875rem at desktop — reading sizes are institutional
     scale here, not dashboard scale (BRAND_GUIDELINES §10.4). */
  --text-xs: clamp(0.75rem, 0.7321rem + 0.0893vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.7768rem + 0.1786vw, 0.9375rem);
  --text-md: clamp(1rem, 0.9464rem + 0.2679vw, 1.1875rem);
  --text-lg: clamp(1.125rem, 1.0357rem + 0.4464vw, 1.4375rem);
  --text-xl: clamp(1.375rem, 1.1964rem + 0.8929vw, 2rem);
  --text-2xl: clamp(1.625rem, 1.3036rem + 1.6071vw, 2.75rem);
  --text-3xl: clamp(2.25rem, 1.75rem + 2.5vw, 4.5rem);

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.08em;
  --tracking-institutional: 0.16em;

  --leading-tight: 1.15;
  --leading-normal: 1.5;
  --leading-loose: 1.7;

  /* ---- Spacing ---- */
  --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;

  /* ---- Radius: restrained. Pills only for compact chips/filters. ---- */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* ---- Motion: orientation, not decoration. ---- */
  --motion-fast: 140ms;
  --motion-medium: 260ms;
  --motion-slow: 480ms;
  --motion-flyto: 900ms;
  --ease-standard: cubic-bezier(0.35, 0, 0.25, 1);
  --ease-entrance: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* ---- Z layers ---- */
  --z-map: 0;
  --z-map-overlay: 10;
  --z-panel: 20;
  --z-drawer: 30;
  --z-header: 40;
  --z-modal: 50;
  --z-toast: 60;
}
