/* Copied read-only from hero-dark-reveal-v1/site/src/styles/tokens.css (sha256 3459dd616ac58cbd…) for the isolated prototype. Do not edit here; the site's file is the source. */
/* Misclo design tokens: Sculpted Graphite (light-native), "Lit from within".
   Source: Opus v2 kit (research/facts.md §5) and 04-CODEX-HOMEPAGE-PROMPT.md §5.
   Rule of thumb: neutrals carry the page; cobalt/coral appear only with their companion;
   brass is reserved for earned recognition (an earned rank or a recognized skill), never decoration. */

:root {
  color-scheme: light;

  /* ---- Neutrals ---- */
  --graphite-deep: #14171b;
  --graphite: #1d2128;
  --graphite-light: #2c3139;
  --slate: #5a606b; /* secondary text on light only (5.79:1 on stage) */
  --plaster: #eceae4;
  --stage: #f6f5f0; /* the busts' own background */
  --ivory: #fbfaf7;
  --line: #dcd8d0; /* decorative rules only: 1.36:1, never the only boundary of a control */
  --line-strong: #787d86; /* UI boundaries: 3.96 ivory, 3.79 stage, 3.44 plaster, 3.15 dusk */
  --ink-on-dark-muted: #b4b8bf; /* 9.03:1 on graphite-deep, 8.11:1 on graphite */
  --line-on-dark: #3a404a;
  --eye: #fff5e5; /* reserved for the brand mark */

  /* ---- Companion accents (only with their companion) ---- */
  --cobalt-text: #1c48b9; /* 7.52:1 on ivory */
  --cobalt: #3e6bef; /* graphic only, never body text on ivory */
  --cobalt-soft: #e2e8fa;
  --cobalt-on-dark: #8ea6ff;
  --coral-text: #a8363f; /* 6.16:1 on ivory */
  --coral: #ed7073; /* graphic only; never white/ivory text on it */
  --coral-soft: #fbe5e3;
  --coral-on-dark: #ff9a97;

  /* ---- Brass: earned recognition only. Defined, never rendered here. ---- */
  --brass: #e5b767;
  --brass-light: #fbe7be;
  --brass-shade: #b58439;
  --brass-text: #7a541c;

  /* ---- Accent slot: neutral until a companion is chosen (html[data-companion]) ---- */
  --accent-text: var(--graphite);
  --accent-graphic: var(--graphite);
  --accent-soft: var(--plaster);
  --accent-on-dark: var(--ivory);

  /* ---- The week's light arc (S3 chapters). Neutral tints of plaster, not new hues.
     Slate stays >= 4.8:1 and graphite >= 12:1 on every one of them. ---- */
  --light-dawn: #e7e8e6; /* Monday 06:40: cool first light */
  --light-noon: #f8f7f2; /* Tuesday 12:30: even midday */
  --light-morning: #efefec; /* Thursday 06:45: morning, halfway from dawn to noon (logged-out refinement, 25 Oct 2026) */
  --light-dusk: #e6e0d6; /* Wednesday 18:30: warm dusk */
  --light-lamp: #f0e6d5; /* Sunday 19:30: evening lamp */

  /* ---- Eye light (the glow is warm white, never a new hue) ---- */
  --glow-core: rgb(255 238 212 / 0.95);
  --glow-mid: rgb(255 214 160 / 0.42);
  --glow-edge: rgb(255 214 160 / 0);

  /* ---- Radii ---- */
  --r-xs: 8px;
  --r-control: 14px; /* buttons, inputs */
  --r-surface: 24px; /* cards, media frames, previews */
  --r-hero: 32px; /* the large founding frame */
  --r-pill: 999px; /* chips */

  /* ---- Elevation ("sculpt") ---- */
  --sculpt: inset 0 1px 0 #ffffffd0, 0 1px 1px #1d21280d, 0 18px 40px -22px #1d212840;
  --sculpt-raised: inset 0 1px 0 #ffffffd0, 0 1px 2px #1d212814, 0 28px 56px -26px #1d212859;
  --sculpt-dark: inset 0 1px 0 #ffffff1c, 0 20px 44px -24px #000000a0;

  /* ---- Space (4-based scale: 4 8 12 16 24 32 48 64 96 128) ---- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* fluid 320 -> 1440 */
  --fs-display-1: clamp(2.125rem, 1.446rem + 3.393vw, 4.5rem); /* 34 -> 72, hero H1 */
  --fs-display-2: clamp(1.75rem, 1.393rem + 1.786vw, 3rem); /* 28 -> 48, section H2 */
  --fs-title: clamp(1.375rem, 1.196rem + 0.893vw, 2rem); /* 22 -> 32, H3 / chapter titles */
  --fs-price-xl: clamp(2.25rem, 1.75rem + 2.5vw, 4rem); /* 36 -> 64, S5 price lines */
  --fs-lead: clamp(1.0625rem, 1.009rem + 0.268vw, 1.25rem); /* 17 -> 20 */
  --fs-stamp: clamp(0.875rem, 0.839rem + 0.179vw, 1rem); /* 14 -> 16, "Monday 06:40" */
  --fs-body: 1rem; /* 16 */
  --fs-small: 0.875rem; /* 14 */
  --fs-micro: 0.8125rem; /* 13 (12 is the absolute floor) */

  --lh-display-1: 1.02;
  --lh-display-2: 1.08;
  --lh-title: 1.15;
  --lh-lead: 1.45;
  --lh-body: 1.55;
  --lh-small: 1.45;
  --lh-micro: 1.4;

  --track-display-1: -0.045em;
  --track-display-2: -0.035em;
  --track-title: -0.02em;
  --track-price: -0.04em;

  --measure: 62ch; /* long-form text column */
  --measure-tight: 46ch;

  /* ---- Motion ---- */
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;
  --dur-settle: 700ms;
  --dur-reveal: 800ms;
  --dur-lights: 1600ms; /* hero "lights on": veil fade */
  --delay-lights: 300ms;
  --dur-breathe: 5600ms; /* eye-glow breathing (opacity only) */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---- Layout ---- */
  --page-max: 1200px;
  --page-wide: 1344px;
  --margin: 16px; /* side margin */
  --gutter: 16px; /* grid gutter */
  --header-h: 56px;
  --sticky-h: 0px; /* set by StickyCta when shown */
  --section-pad: 48px;
  --section-pad-sm: 40px;
  --stack-gap: 16px;

  /* ---- Layers ---- */
  --z-header: 50;
  --z-sticky: 45;
  --z-popover: 60;
  --z-skip: 1000;
}

/* Registered so the glow can transition when a companion is chosen (Companion.astro). */
@property --glow {
  syntax: '<number>';
  inherits: true;
  initial-value: 0.9;
}
@property --halo {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}
/* The hero "lights on" clock: 0.94 (dark) -> 0 (lit). One animated value drives the bust veils and the
   plates' headroom together (components.css, [data-lights]), so the two layers never drift apart. */
@property --lights {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

@media (max-width: 359.98px) {
  :root {
    --gutter: 12px;
  }
}
@media (min-width: 768px) {
  :root {
    --margin: 32px;
    --gutter: 24px;
    --section-pad: 96px;
    --section-pad-sm: 64px;
  }
}
@media (min-width: 1024px) {
  :root {
    --header-h: 64px;
    --section-pad: 128px;
    --section-pad-sm: 80px;
  }
}
@media (min-width: 1280px) {
  :root {
    --margin: 48px;
  }
}

/* ---- Companion accent switch (set on <html> before first paint from localStorage misclo.companion) ----
   Consumer surfaces only (the home page and the checkout): a visitor's companion color never leaks into the
   partner pages, /about/ or the legal pages, which keep the neutral graphite accent. */
:root[data-companion='male'] :is(body.page-home, body.page-checkout) {
  --accent-text: var(--cobalt-text);
  --accent-graphic: var(--cobalt);
  --accent-soft: var(--cobalt-soft);
  --accent-on-dark: var(--cobalt-on-dark);
  --accent-ink: var(--accent-text); /* re-resolved here: :root computed it from the neutral accent */
}
:root[data-companion='female'] :is(body.page-home, body.page-checkout) {
  --accent-text: var(--coral-text);
  --accent-graphic: var(--coral);
  --accent-soft: var(--coral-soft);
  --accent-on-dark: var(--coral-on-dark);
  --accent-ink: var(--accent-text);
}

/* ---- Surfaces: every section picks one. Components read --text, --text-muted, --rule, --focus. ---- */
:root,
.surface-stage {
  --surface: var(--stage);
  --surface-raised: var(--ivory);
  --text: var(--graphite);
  --text-muted: var(--slate);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --focus: var(--graphite);
  --btn-bg: var(--graphite);
  --btn-fg: var(--ivory);
  --btn-bg-hover: var(--graphite-light);
  --chip-border: var(--slate);
  --link: var(--graphite);
  --accent-ink: var(--accent-text);
}
.surface-ivory {
  --surface: var(--ivory);
  --surface-raised: #fff;
}
.surface-plaster {
  --surface: var(--plaster);
  --surface-raised: var(--ivory);
}
.surface-graphite,
.surface-deep {
  --surface: var(--graphite);
  --surface-raised: var(--graphite-light);
  --text: var(--ivory);
  --text-muted: var(--ink-on-dark-muted);
  --rule: var(--line-on-dark);
  --rule-strong: #6b717b; /* 3.29:1 on graphite, 3.66:1 on graphite-deep */
  --focus: var(--ivory);
  --btn-bg: var(--ivory);
  --btn-fg: var(--graphite);
  --btn-bg-hover: var(--stage);
  --chip-border: var(--ink-on-dark-muted);
  --link: var(--ivory);
  --accent-ink: var(--accent-on-dark);
}
.surface-deep {
  --surface: var(--graphite-deep);
  --surface-raised: var(--graphite);
}
/* Light-arc surfaces for the week chapters (static fallback; Week.astro may animate between them). */
.surface-dawn {
  --surface: var(--light-dawn);
  --surface-raised: var(--ivory);
}
.surface-noon {
  --surface: var(--light-noon);
  --surface-raised: #fff;
}
.surface-dusk {
  --surface: var(--light-dusk);
  --surface-raised: var(--ivory);
}
.surface-lamp {
  --surface: var(--light-lamp);
  --surface-raised: var(--ivory);
}
