/* ============================================================
   HaloLogic.ai — "Modern Halo" design tokens
   Canonical source: docs/brand/BRAND.md (decision D-005)
   Ratios are computed, not eyeballed. See BRAND.md §1.1.
   ============================================================ */
:root {
  /* --- Core palette --- */
  --charcoal:      #101F26; /* primary dark / logo field / TEXT ON LIGHT (16.9:1 on white) */
  --gold:          #E8C870; /* accent / CTA fill. NEVER text on light (~1.5:1). Text only on dark. */
  --cream:         #F3EEE4; /* light background surface */
  --sage:          #8FA99A; /* secondary accent — fill/detail, not text on light */
  --copper:        #B86F3E; /* warm highlight — large text/accent only */
  --white:         #FFFFFF; /* neutral card surface */

  /* --- Derived / utility --- */
  --charcoal-deep: #0A151A; /* layered shadow beneath charcoal surfaces */
  --gold-hover:    #EFD388; /* hover/emphasis on gold */
  --muted-ink:     #3A474E; /* secondary text on light — derived charcoal, ~8.3:1 on cream (AA) */
  --muted-on-dark: #D3DBDE; /* secondary text on charcoal, ~11:1 */
  --sage-tint:     #EAF0EC; /* faint sage surface behind charcoal text (light surfaces only) */
  --field-border:  #5A6B73; /* form field border on light, >3:1 for UI */
  --hairline:      #E0DACB; /* quiet dividers on cream/white */
  --error:         #B42318; /* error text/border, ~5.9:1 on white — FAILS on charcoal (2.6:1), use --error-on-dark there */
  --error-on-dark: #FDB022; /* error text on charcoal, 9.16:1 computed (a11y gate NEW-19) */

  /* --- Type --- */
  /* "* Fallback" faces are metric-adjusted Arial (fonts.css) so the
     webfont swap doesn't shift layout. */
  --ff-head: 'Poppins', 'Poppins Fallback', system-ui, -apple-system, sans-serif;
  --ff-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;

  /* --- Scale / geometry --- */
  --maxw: 72rem;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -24px rgba(16, 31, 38, .45);

  /* --- Spacing (4px base) --- */
  --sp-xs: .25rem; --sp-s: .5rem; --sp-m: 1rem; --sp-l: 1.5rem; --sp-xl: 3rem; --sp-xxl: 6rem;
}
