/* Core Aspect sites tokens v2 — "the hexagon is the system" (approved by Stuart 19 Nov 2026).
   Load AFTER the emuu tokens.css (or alone): overrides the navy ground with neutral / aubergine,
   and sets each site's lead colour from one facet of the logo. Pick a site with <body class="site-X">.
   Theme: follows system; force with <html data-theme="light|dark">. Light-first sites set data-theme="light" by default. */

/* dark values also apply when data-theme="dark" is forced, so they beat emuu tokens.css :root[data-theme="dark"] */
:root, :root[data-theme="dark"] {
  /* logo facets (for marks, rules, markers — not for body text) */
  --hex-magenta: #E0338A; --hex-pink: #F872AB; --hex-purple: #8F39C1; --hex-blue: #3191D1;
  --hex-teal: #45BEBB; --hex-yellow: #E5B824; --hex-orange: #EA8C1B; --hex-red: #DE3F17; --hex-core: #3D2E59;
  --hex-rule: linear-gradient(90deg, #E0338A, #F872AB, #8F39C1, #3191D1, #45BEBB, #E5B824, #EA8C1B, #DE3F17);

  /* shared neutrals — DARK (aubergine, not navy) */
  --ground: #15111F; --surface: #1E1929; --raised: #29233A;
  --line: #3A3346; --line-strong: #6A6078;
  --ink: #F6F3F8; --muted: #B5ACC2;
  --dots: transparent; --scrim: #15111F;
  --pop: #FFE14A; --on-pop: #1A1424; --pop-edge: #FFE14A; --focus: #FFE14A;
  --info: #8CC0FF; --info-soft: #1B2840;
  --radius-card: 16px; --radius-tile: 16px; --radius-hero: 28px;
  --shadow-raised: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #FAF7F2; --surface: #FFFFFF; --raised: #FFFFFF;
    --line: #E6E1DA; --line-strong: #B9B0A6;
    --ink: #1A1424; --muted: #5C5466;
    --scrim: #FAF7F2; --on-pop: #1A1424; --focus: #3D2E59;
    --info: #1F5FBF; --info-soft: #E8F0FC;
    --shadow-raised: 0 1px 2px rgba(26,20,36,.06), 0 8px 24px rgba(26,20,36,.06);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #FAF7F2; --surface: #FFFFFF; --raised: #FFFFFF;
  --line: #E6E1DA; --line-strong: #B9B0A6;
  --ink: #1A1424; --muted: #5C5466;
  --scrim: #FAF7F2; --on-pop: #1A1424; --focus: #3D2E59;
  --info: #1F5FBF; --info-soft: #E8F0FC;
  --shadow-raised: 0 1px 2px rgba(26,20,36,.06), 0 8px 24px rgba(26,20,36,.06);
  color-scheme: light;
}

/* ---- per-site lead colours. --lead = buttons/fills, --on-lead = text on it,
        --lead-text = accent text on ground, --lead-soft = tinted band/surface. ---- */

/* parent: the whole hexagon; deep aubergine buttons */
body.site-parent { --lead: #C9B6F0; --on-lead: #1A1424; --lead-text: #C9B6F0; --lead-soft: #241C33; }
/* coreaspectai: magenta / berry */
body.site-ai { --lead: #A83266; --on-lead: #FFFFFF; --lead-text: #F48FBF; --lead-soft: #2A1424; }
/* callaspect: orange + hi-vis amber */
body.site-call { --lead: #C2410C; --on-lead: #FFFFFF; --lead-text: #F6A35C; --lead-soft: #2A1A10; --band: #F2A33A; --on-band: #1A1424; }
/* healthaspect: teal */
body.site-health { --lead: #0E6E6A; --on-lead: #FFFFFF; --lead-text: #5ED0C9; --lead-soft: #0F1C1F; }
/* emuu: graphite */
body.site-emuu { --lead: #F6F6F4; --on-lead: #1F2328; --lead-text: #F6F6F4; --lead-soft: #29233A; }

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) body.site-parent { --lead: #2A1E3F; --on-lead: #FFFFFF; --lead-text: #6B4FA0; --lead-soft: #F1ECF8; }
  :root:not([data-theme="dark"]) body.site-ai { --lead-text: #7A1E4A; --lead-soft: #FDF5F8; }
  :root:not([data-theme="dark"]) body.site-call { --ground: #FFF8EE; --lead-text: #7A2E00; --lead-soft: #FFEFD9; }
  :root:not([data-theme="dark"]) body.site-health { --ground: #F3FAF8; --lead-text: #0E6E6A; --lead-soft: #E1F3F0; }
  :root:not([data-theme="dark"]) body.site-emuu { --ground: #F6F6F4; --ink: #1F2328; --lead: #1F2328; --on-lead: #FFFFFF; --lead-text: #1F2328; --lead-soft: #ECECE8; }
}
:root[data-theme="light"] body.site-parent { --lead: #2A1E3F; --on-lead: #FFFFFF; --lead-text: #6B4FA0; --lead-soft: #F1ECF8; }
:root[data-theme="light"] body.site-ai { --lead-text: #7A1E4A; --lead-soft: #FDF5F8; }
:root[data-theme="light"] body.site-call { --ground: #FFF8EE; --lead-text: #7A2E00; --lead-soft: #FFEFD9; }
:root[data-theme="light"] body.site-health { --ground: #F3FAF8; --lead-text: #0E6E6A; --lead-soft: #E1F3F0; }
:root[data-theme="light"] body.site-emuu { --ground: #F6F6F4; --ink: #1F2328; --lead: #1F2328; --on-lead: #FFFFFF; --lead-text: #1F2328; --lead-soft: #ECECE8; }
