/* ============================================================
   COLORS — Living Ecosystem color architecture
   Materially-alive palette: soil, chlorophyll, clay, sunlight,
   indigo, water, night sky, copper, bone, bioluminescence.
   ------------------------------------------------------------
   Layers:
   1. Shared ecosystem core tokens (--eco-*)
   2. Per-brand raw palettes (--rl-* / --np-* / --ai-*)
   3. Semantic aliases (--text-*, --surface-*, --border-*, --accent-*)
      resolved by brand scope classes on a container.
   ============================================================ */

:root {
  /* ---- 1. SHARED ECOSYSTEM CORE ---- */
  --eco-obsidian:        #0B0D0C; /* deep backgrounds, cinematic, text on bright */
  --eco-bone:            #F3EBDD; /* warm reading surfaces, cards, packaging */
  --eco-living-soil:     #4A2C1D; /* grounding, heritage, tactile identity */
  --eco-forest-depth:    #173F2A; /* agriculture, trust, ecological systems */
  --eco-harvest-gold:    #D3A83F; /* emphasis, achievement, sacred highlight — ACCENT ONLY */
  --eco-water-teal:      #0E6B6F; /* flow, media, healing, cross-brand bridge */
  --eco-cosmos-indigo:   #2E275B; /* ancestral depth, cinema, night, future */
  --eco-living-clay:     #A55432; /* human warmth, earth architecture, CTA */

  /* ---- 2a. ROOT LIFE (Earth · Cultivate) ---- */
  --rl-root-forest:      #173F2A;
  --rl-living-soil:      #4A2C1D;
  --rl-sun-harvest:      #D3A83F;
  --rl-young-leaf:       #6F8F45;
  --rl-clay-body:        #A55432;
  --rl-pollinator-sky:   #8DB7C3;
  --rl-mushroom-cream:   #F3EBDD;
  --rl-deep-compost:     #24251F;

  /* ---- 2b. NATIVE PRAXIS (Water/Ether · Transmit) ---- */
  --np-cinema-black:     #101014;
  --np-archive-bone:     #EEE4D2;
  --np-deep-indigo:      #292452;
  --np-oxidized-copper:  #B66B3E;
  --np-story-teal:       #0F565D;
  --np-night-violet:     #4A355F;
  --np-memory-ochre:     #C28A2E;
  --np-smoke:            #8E8A84;

  /* ---- 2c. AI LABS (Electric Ether · Amplify) ---- */
  --ai-sovereign-void:   #080B10;
  --ai-intelligence-teal:#157A7A;
  --ai-bioluminescent:   #63DDD5;
  --ai-quantum-indigo:   #393071;
  --ai-ancestral-gold:   #D3A83F;
  --ai-neural-violet:    #7357A6;
  --ai-seed-green:       #74A85B;
  --ai-interface-bone:   #EAE6D9;
  --ai-graphite:         #20262D;

  /* ---- Chakra / color-medicine sequence (use ONLY for energy/healing content) ---- */
  --chakra-root:    #9B3B2E;
  --chakra-sacral:  #C4692B;
  --chakra-solar:   #D3A83F;
  --chakra-heart:   #6F8F45;
  --chakra-throat:  #0E6B6F;
  --chakra-eye:     #2E275B;
  --chakra-crown:   #7357A6;

  /* ---- SEMANTIC / FEEDBACK (ecosystem-neutral) ---- */
  --feedback-positive: #6F8F45;
  --feedback-caution:  #D3A83F;
  --feedback-critical: #B4472E;
  --feedback-info:     #0E6B6F;

  /* ============================================================
     3. SEMANTIC ALIASES — default = SHARED ECOSYSTEM (warm/bone)
     Wrap any subtree in .brand-root / .brand-praxis / .brand-ai
     to re-resolve these to that brand's palette.
     ============================================================ */
  --bg-page:        var(--eco-bone);
  --bg-sunken:      #E9DFCC;
  --surface-card:   #FBF6EC;
  --surface-raised: #FFFFFF;
  --surface-inverse:var(--eco-obsidian);

  --text-strong:    var(--eco-obsidian);
  --text-body:      #2B2A26;
  --text-muted:     #6E675B;
  --text-inverse:   var(--eco-bone);
  --text-on-accent: var(--eco-bone);

  --border-subtle:  #DDD1BD;
  --border-strong:  #B9A98E;

  --accent:         var(--eco-forest-depth);
  --accent-hover:   #0F2E1E;
  --accent-soft:    #DDE6DC;
  --highlight:      var(--eco-harvest-gold);
  --link:           var(--eco-water-teal);
  --link-hover:     #0A4E51;
  --focus-ring:     var(--eco-harvest-gold);
}

/* ---------- BRAND SCOPE: ROOT LIFE (warm earth, light ground) ---------- */
.brand-root {
  --bg-page:        var(--rl-mushroom-cream);
  --bg-sunken:      #E9DFCC;
  --surface-card:   #FBF6EC;
  --surface-raised: #FFFFFF;
  --surface-inverse:var(--rl-deep-compost);

  --text-strong:    var(--rl-deep-compost);
  --text-body:      #2E2A22;
  --text-muted:     #6E675B;
  --text-inverse:   var(--rl-mushroom-cream);
  --text-on-accent: var(--rl-mushroom-cream);

  --border-subtle:  #DED2BC;
  --border-strong:  #B8A780;

  --accent:         var(--rl-root-forest);
  --accent-hover:   #0F2E1E;
  --accent-soft:    #E1E8DC;
  --highlight:      var(--rl-sun-harvest);
  --link:           var(--rl-root-forest);
  --link-hover:     #0F2E1E;
  --focus-ring:     var(--rl-sun-harvest);
}

/* ---------- BRAND SCOPE: NATIVE PRAXIS (cinematic dark) ---------- */
.brand-praxis {
  --bg-page:        var(--np-cinema-black);
  --bg-sunken:      #08080B;
  --surface-card:   #17171D;
  --surface-raised: #1E1E26;
  --surface-inverse:var(--np-archive-bone);

  --text-strong:    var(--np-archive-bone);
  --text-body:      #D8CFBE;
  --text-muted:     var(--np-smoke);
  --text-inverse:   var(--np-cinema-black);
  --text-on-accent: var(--np-archive-bone);

  --border-subtle:  #2A2A33;
  --border-strong:  #3D3D49;

  --accent:         var(--np-oxidized-copper);
  --accent-hover:   #A85D33;
  --accent-soft:    #2A2036;
  --highlight:      var(--np-memory-ochre);
  --link:           var(--np-memory-ochre);
  --link-hover:     #D89C3B;
  --focus-ring:     var(--np-memory-ochre);
}

/* ---------- BRAND SCOPE: AI LABS (cool void, warm anchors) ---------- */
.brand-ai {
  --bg-page:        var(--ai-sovereign-void);
  --bg-sunken:      #04060A;
  --surface-card:   #12161C;
  --surface-raised: var(--ai-graphite);
  --surface-inverse:var(--ai-interface-bone);

  --text-strong:    var(--ai-interface-bone);
  --text-body:      #C4CDD2;
  --text-muted:     #7C878F;
  --text-inverse:   var(--ai-sovereign-void);
  --text-on-accent: var(--ai-sovereign-void);

  --border-subtle:  #232A32;
  --border-strong:  #35404A;

  --accent:         var(--ai-intelligence-teal);
  --accent-hover:   #1B9494;
  --accent-soft:    #103038;
  --highlight:      var(--ai-bioluminescent);
  --link:           var(--ai-bioluminescent);
  --link-hover:     #8BEBE3;
  --focus-ring:     var(--ai-bioluminescent);
}
