/* =========================================================================
   Fix My Hair design tokens (2026-11-24): the ONE source of truth.
   -------------------------------------------------------------------------
   Values come from the new homepage design (assets/home/home.css, the
   scroll-film site). Every older token name points here:
     fmh-dark.css  html:root   --canvas --fmh-* --black --grey* ...
     fmh-nav.css   .fnav       --fn-*
     home.css      .hm         --hm-*
   so changing a value here repaints every page. Edit values HERE only; new
   CSS uses these names directly. Stamped on every page by
   tools/apply-theme.mjs (fmh-ds block). ASCII only (gate D1).
   html:root (not :root) so it outranks the pages' own inline :root blocks.
   ========================================================================= */
html:root{
  /* colour */
  --c-bg:#0a0a0a;          /* page */
  --c-surface:#151515;     /* cards, panels */
  --c-surface-2:#1c1b19;   /* raised card, inputs */
  --c-surface-hover:#1d1b17; /* card under the pointer */
  --c-edge-accent:rgba(255,237,0,.22); /* thin gold card edge on hover */
  --c-line:#262522;        /* hairlines, borders */
  --c-line-strong:#3a3833; /* hover / focus borders */
  --c-text:#f0ede8;        /* body + headings */
  --c-muted:#c9c3b9;       /* secondary text */
  --c-dim:#8f8a82;         /* captions, meta */
  --c-accent:#ffed00;      /* brand gold: CTAs, highlights */
  --c-accent-hover:#fff35c;
  --c-accent-soft:rgba(255,237,0,.14);
  --c-on-accent:#0a0a0a;   /* text on gold */
  --c-tan:#a88a73;
  --c-bronze:#b48d72;
  --c-tan-ink:#bba692;      /* menu links on the homepage bar */
  --c-accent-shade:#6d5f00; /* the gold logo's block shadow */

  /* type */
  --font-body:'DM Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --font-display:'Bricolage Grotesque',var(--font-body);
  --font-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --fs-xs:.75rem;
  --fs-sm:.875rem;
  --fs-base:1rem;
  --fs-lg:clamp(1.125rem,1rem + .4vw,1.25rem);
  --fs-xl:clamp(1.5rem,1.2rem + 1.2vw,2rem);
  --fs-2xl:clamp(2rem,1.4rem + 2.6vw,3.25rem);
  --fs-display:clamp(2.75rem,1.6rem + 5vw,5.5rem);

  /* space (4px base) */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--sp-7:48px;--sp-8:64px;--sp-9:96px;
  --gutter:clamp(16px,4vw,76px); /* page side gutter */

  /* shape */
  --r-sm:14px;--r-md:16px;--r-lg:22px;--r-pill:999px;

  /* motion */
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-spring:cubic-bezier(.34,1.56,.64,1);
  --dur-fast:400ms;
  --dur-base:600ms;
  --dur-slow:900ms;

  color-scheme:dark;
}

/* ---- aliases: older token names used by the skin, the pages' inline CSS and the quiz.
   Point at the tokens above; never give them their own values. (moved from fmh-dark.css) */
html:root{
  /* homepage tokens */
  --canvas:var(--c-bg);
  --panel:var(--c-surface);
  --panel-2:var(--c-surface-2);
  --accent:var(--c-accent);
  --accent-hover:var(--c-accent-hover);
  --accent-muted:var(--c-accent-soft);
  --text-primary:var(--c-text);
  --text-secondary:var(--c-muted);
  --text-faint:var(--c-dim);
  --on-accent:var(--c-on-accent);
  --line:var(--c-line);
  --line-strong:var(--c-line-strong);
  --display:var(--font-display);
  --mono:var(--font-mono);

  /* skin tokens */
  --fmh-page:var(--c-bg);
  --fmh-panel:var(--c-surface);
  --fmh-card:var(--c-surface);
  --fmh-card-2:var(--c-surface-2);
  --fmh-hair:var(--c-line);
  --fmh-hair-strong:var(--c-line-strong);
  --fmh-ink:var(--c-text);
  --fmh-muted:var(--c-muted);
  --fmh-faint:var(--c-dim);
  --fmh-y:var(--c-accent);
  --fmh-y-ink:var(--c-accent);
  --fmh-on-y:var(--c-on-accent);
  --fmh-black:var(--c-bg);
  --fmh-clay:0 14px 34px -16px rgba(255,237,0,.12),inset 0 1px 0 rgba(255,237,0,.08);
  --fmh-clay-sm:0 6px 16px -8px rgba(255,237,0,.14),inset 0 1px 0 rgba(255,255,255,.06);
  --fmh-clay-dark:0 14px 34px -16px rgba(255,237,0,.18),inset 0 1px 0 rgba(255,237,0,.1);
  --fmh-glow:0 10px 30px -14px rgba(255,237,0,.55);
  --fmh-shadow:var(--fmh-clay);

  /* legacy page tokens (the pages' own :root blocks and the skin remap) */
  --black:var(--c-bg);
  --black2:var(--c-surface);
  --black3:var(--c-surface-2);
  --black4:var(--c-surface-2);
  --off:var(--c-text);
  --grey1:var(--c-text);
  --grey2:var(--c-muted);
  --grey3:var(--c-dim);
  --bg-light:var(--c-bg);
  --text-dark:var(--c-text);
  --text-mid:var(--c-muted);
  --text-cap:var(--c-dim);
  --gold-on-light:var(--c-accent);
  --gold-dk:var(--c-on-accent); /* the pages use it as the ink on gold fills (badges, active pills, tags) */
}
