/* ============================================================================
   00-tokens.css — canonical AIC design tokens, v0.1.0
   Source of truth: wave1/DESIGN-TOKENS-FROZEN.md (frozen 2026-07-13).
   RULES:
   - This is the ONLY file that defines --aic-* values. Every other module
     consumes var(--aic-*), never raw hex.
   - Scoped to .aic-page (not :root) so an inactive flag = zero site effect,
     and we never fight Formidable's 164 --frm-* root vars.
   - Legacy aliases keep old names alive; the VALUE decides the reconciliation.
     Reconciliation choices (DESIGN-TOKENS-FROZEN §E): red -> #e8232a, navy -> #063896.
     Reversal = edit two lines here, nothing else.
   ========================================================================== */

.aic-page {
	/* -- colour: brand ---------------------------------------------------- */
	--aic-navy:        #063896;
	--aic-navy-dark:   #283268;
	--aic-navy-light:  rgba(6, 56, 150, 0.08);
	--aic-red:         #e8232a;   /* canonical conversion red */
	--aic-red-hover:   #e92f25;
	--aic-red-accent:  #ea1303;
	--aic-red-light:   rgba(232, 35, 42, 0.08);
	--aic-gold:        #ff8800;
	--aic-gold-hover:  #e67a00;
	--aic-sky:         #2199e8;   /* legacy Foundation link blue, still live site-wide */
	--aic-link:        #1e90ff;
	--aic-link-hover:  var(--aic-red-hover);

	/* legacy aliases — value-reconciled, names preserved for compat shims */
	--aic-red-legacy:  var(--aic-red);      /* was #ef1402 / #f40100 */
	--aic-navy-legacy: var(--aic-navy);     /* was #0644a7 / #072d6a */
	--aic-accent:      #dd2222;             /* motion-accent family (custom.min.css), kept distinct */
	--aic-accent-deep: #b81818;
	--aic-accent-glow: rgba(221, 34, 34, 0.45);

	/* -- colour: surfaces & text ------------------------------------------ */
	--aic-ink:         #0a0a0a;
	--aic-text:        #323232;
	--aic-text-muted:  #4a4a4a;
	--aic-text-light:  #6b6b6b;
	--aic-bg:          #ffffff;
	--aic-bg-subtle:   #f5f5f5;
	--aic-bg-navy:     #102a43;   /* hero overlay ink-navy (campaign system) */
	--aic-border:      #e5e5e5;
	--aic-on-dark:     #ffffff;
	--aic-on-dark-soft: rgba(255, 255, 255, 0.85);

	/* -- type -------------------------------------------------------------- */
	--aic-font:        "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--aic-font-body:   "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; /* live body stack; move to Poppins only after Wave 3 CLS check */
	--aic-font-mono:   "Roboto Mono", "SF Mono", Menlo, monospace;
	--aic-fs-hero:     clamp(2.5rem, 6vw, 3.75rem);  /* live hero ~58.5px capped */
	--aic-fs-h1:       clamp(2rem, 4.5vw, 2.75rem);
	--aic-fs-h2:       clamp(1.5rem, 3vw, 2rem);
	--aic-fs-h3:       1.25rem;
	--aic-fs-body:     1.125rem;   /* live 18px */
	--aic-lh-body:     1.5;        /* live 27px/18px */
	--aic-lh-tight:    1.1;
	--aic-measure:     70ch;       /* readable article measure */

	/* -- space & rhythm ----------------------------------------------------- */
	--aic-space-1: 0.25rem;
	--aic-space-2: 0.5rem;
	--aic-space-3: 1rem;
	--aic-space-4: 1.5rem;
	--aic-space-5: 2.5rem;
	--aic-space-6: 4rem;
	--aic-section-pad: clamp(2.5rem, 6vw, 4.5rem);
	--aic-wrap-max:    1120px;     /* campaign container width */
	--aic-wrap-pad:    1.5rem;

	/* -- shape, elevation, focus, motion ------------------------------------ */
	--aic-radius:      6px;
	--aic-radius-btn:  4px;
	--aic-radius-card: 12px;
	--aic-shadow:      0 2px 12px rgba(0, 0, 0, 0.08);
	--aic-shadow-lift: 0 10px 30px -8px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
	--aic-focus-ring:  0 0 0 3px rgba(30, 144, 255, 0.55);
	--aic-dur:         320ms;
	--aic-dur-fast:    180ms;
	--aic-dur-slow:    520ms;
	--aic-easing:      cubic-bezier(0.2, 0.7, 0.2, 1);
	--aic-easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* -- header offset (anchor scroll) -------------------------------------- */
	--aic-header-h:    88px;
	--aic-anchor-offset: calc(var(--aic-header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
	.aic-page {
		--aic-dur: 0ms;
		--aic-dur-fast: 0ms;
		--aic-dur-slow: 0ms;
	}
}
