/* ============================================================
   CFO Interactive — Design Tokens
   Three voice registers share one base: warm paper, deep ink, gold leaf.
   Register accents shift only the primary hue.
   ============================================================ */

:root,
[data-theme='light'] {
  /* ─── Surfaces (warm paper) ─── */
  --color-bg: #f4ede0;
  --color-surface: #faf4e6;
  --color-surface-2: #fffaee;
  --color-surface-offset: #ebe2cf;
  --color-divider: #ddd2b8;
  --color-border: #c9bd9f;

  /* ─── Ink (warm near-black) ─── */
  --color-text: #1a1612;
  --color-text-muted: #6b6354;
  --color-text-faint: #a89e87;
  --color-text-inverse: #faf4e6;

  /* ─── Brand-spec teal (from handoff) ─── */
  /* --color-brand-teal: #01696f; */
  --color-brand-charcoal: #2a3036;
  --color-brand-frame: #ececec;       /* the spec frame border */
  --color-brand-frame-inner: #f6f6f2; /* the spec frame inner */
  
  --color-brand-teal: #01787f;   /* teal — I am the CFO, Babies */ 
  --color-babies: #d33683;   /* magenta — I am the CFO, Babies */
--color-cfo-blue: #1d3268; /* dark blue — cfointeractive.com buttons */

/* ─── Register accents ─── */
  /* CFO Interactive (default — dry / wise) — gold leaf */
  --color-primary: #a37a2a;
  --color-primary-hover: #8a6520;
  --color-primary-active: #6f5119;
  --color-primary-soft: #e9dcb8;

  /* Babies (loud / irreverent) — hot magenta (a clean, screaming pink) */
  --color-babies: #d33683;
  --color-babies-hover: #b32269;
  --color-babies-soft: #f8d5e6;

  /* Cogito (stoic / literary) — deep ink-violet */
  --color-cogito: #3d2e63;
  --color-cogito-hover: #2c2148;
  --color-cogito-soft: #d8cfe6;

  /* ─── Semantic ─── */
  --color-green: #4a7c2e;
  --color-yellow: #c89b1a;
  --color-orange: #c4621c;
  --color-red: #b53924;
  --color-gray: #a89e87;

  /* ─── Radii ─── */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  /* ─── Transitions ─── */
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ─── Type scale ─── */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl:   clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --text-2xl:  clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-3xl:  clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);

  /* ─── Spacing ─── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ─── Fonts ─── */
  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  /* Babies-only: condensed display for headlines */
  --font-babies-display: 'Archivo Black', 'IBM Plex Sans', sans-serif;

  /* ─── Shadows ─── */
  --shadow-sm: 0 1px 2px rgba(40, 30, 15, 0.06);
  --shadow-md: 0 4px 16px rgba(40, 30, 15, 0.08);
  --shadow-lg: 0 12px 40px rgba(40, 30, 15, 0.12);
}

[data-theme='dark'] {
  --color-bg: #15120e;
  --color-surface: #1c1813;
  --color-surface-2: #221c15;
  --color-surface-offset: #2a241c;
  --color-divider: #2e281f;
  --color-border: #423a2b;

  --color-text: #ede4d0;
  --color-text-muted: #8c8270;
  --color-text-faint: #564e3e;
  --color-text-inverse: #1c1813;

  --color-brand-teal: #3aa9b1;
  --color-brand-frame: #2a241c;
  --color-brand-frame-inner: #1c1813;

  --color-primary: #d4a84a;
  --color-primary-hover: #e0b35a;
  --color-primary-active: #b18a36;
  --color-primary-soft: #3a3220;

  --color-babies: #f06fa8;
  --color-babies-hover: #ff85b8;
  --color-babies-soft: #3a2630;

  --color-cogito: #9b86c4;
  --color-cogito-hover: #b09bd6;
  --color-cogito-soft: #2c2540;

  --color-green: #7ea84e;
  --color-yellow: #d6b04a;
  --color-orange: #d97a3a;
  --color-red: #d35a44;
  --color-gray: #6e6553;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ─── Per-page register override.
   Add data-register="babies" or "cogito" to <html> to remap --color-primary. */
[data-register='babies'] {
  --color-primary: var(--color-babies);
  --color-primary-hover: var(--color-babies-hover);
  --color-primary-soft: var(--color-babies-soft);
}
[data-register='cogito'] {
  --color-primary: var(--color-cogito);
  --color-primary-hover: var(--color-cogito-hover);
  --color-primary-soft: var(--color-cogito-soft);
}
