/* ==========================================================================
   Naomi's Heart Mission x Digital Friday Studios: design tokens
   CREAM · RED · INK · GOLD
   NHM brings the heart red and the warm cream ground.
   DFS brings the ink-green darks, the gold, the mono labels and the ease.
   Chartreuse appears only where something is live.
   Single source of truth. Documented with swatches in BRAND.md.
   Components use the semantic tokens (bottom half), never raw hex.
   ========================================================================== */

:root {
  /* ---- Brand reds (sampled from the NHM logo) ---- */
  --red-800: #7a0f18;
  --red-700: #9a141f; /* logo shadow red */
  --red-600: #b3151f; /* primary brand red, AA on cream and white */
  --red-500: #e41b25; /* logo highlight red: decoration only, not small text */
  --red-100: #f6d5d3;
  --red-50: #fbecea;

  /* ---- Gold (the DFS gold: the one accent for calls to action) ---- */
  --gold-700: #735600; /* gold text on light backgrounds */
  --gold-600: #8f6d12; /* button edge, 3:1+ against cream */
  --gold-500: #caa033; /* CTA hover */
  --gold-400: #e2b54a; /* CTA background, accents on ink */
  --gold-200: #f4dca0; /* pale highlight */
  --gold-100: #f7ecd0;
  --gold-ink: #1a1404; /* text on gold */

  /* ---- Ink (the DFS ink-green, used for text and for dark bands) ---- */
  --ink-950: #0a0e0b; /* dark band ground */
  --ink-surface: #11180f; /* cards on dark bands */
  --ink-900: #121812; /* headings */
  --ink-700: #2e382f; /* body text */
  --ink-500: #586459; /* muted text, AA on cream, sand and white */
  --ink-400: #7d887d; /* form field borders (3:1+) */
  --on-ink: #ecefe9; /* text on dark bands */
  --on-ink-muted: #97a294;
  --line-on-ink: rgb(236 239 233 / 0.14);

  /* ---- Warm ground (NHM cream) ---- */
  --sand-300: #e5d9c8; /* hairlines */
  --sand-200: #f4eadb; /* alternate section */
  --sand-100: #fbf6ee; /* page background */
  --white: #ffffff;

  /* ---- Alive: live and upcoming states only, and only on ink ---- */
  --chartreuse: #b6e63c;

  /* ---- Status ---- */
  --green-700: #1f6b45;
  --green-50: #e8f3ec;
  --violet-700: #5b3e8a; /* placeholder badges only: deliberately off-brand */
  --violet-50: #f3eefa;
  --blue-700: #1b4f8f; /* focus ring only */

  /* ---- Semantic colors (use these in components) ---- */
  --color-bg: var(--sand-100);
  --color-bg-alt: var(--sand-200);
  --color-surface: var(--white);
  --color-text: var(--ink-700);
  --color-heading: var(--ink-900);
  --color-muted: var(--ink-500);
  --color-border: var(--sand-300);
  --color-border-strong: var(--ink-400);
  --color-brand: var(--red-600);
  --color-brand-strong: var(--red-700);
  --color-brand-tint: var(--red-50);
  --color-on-brand: var(--white);
  --color-cta: var(--gold-400);
  --color-cta-hover: var(--gold-500);
  --color-cta-edge: var(--gold-600);
  --color-on-cta: var(--gold-ink);
  --color-link: var(--red-600);
  --color-link-hover: var(--red-800);
  --color-success: var(--green-700);
  --color-success-bg: var(--green-50);
  --color-error: var(--red-700);
  --color-error-bg: var(--red-50);
  --color-focus: var(--blue-700);

  /* ---- Typography ---- */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --text-sm: 1rem; /* 16px: smallest running text */
  --text-label: 0.8125rem; /* 13px: mono uppercase labels only */
  --text-base: 1.125rem; /* 18px body */
  --text-lg: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-body: 1.65;
  --measure: 65ch;

  /* ---- Spacing (4px base) ---- */
  --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;
  --section-y: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  --container: 72rem;

  /* ---- Radius ---- */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;

  /* ---- Shadow (ink tinted, soft and long) ---- */
  --shadow-sm: 0 1px 2px rgb(18 24 18 / 0.06);
  --shadow-md: 0 10px 28px -12px rgb(18 24 18 / 0.22);
  --shadow-lg: 0 28px 60px -24px rgb(18 24 18 / 0.35);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* the DFS house ease: fast start, soft settle */
  --duration-fast: 150ms;
  --duration: 240ms;

  /* ---- Layout ---- */
  --header-h: 4.5rem;
  --tap: 2.75rem; /* 44px minimum touch target */
}
