/*
 * Caldura v4 — Caldura AI · variant-amber
 *
 * Apply: <body class="caldura-ai variant-amber">
 *
 * The chosen AI expression as of 2026-05-17 (see ADR-0006). Replaces
 * variant-lab as the production direction; variant-lab is preserved as
 * history, not deleted.
 *
 * Strategic position: material / institutional / "real-world depth" — the
 * BTC + gold register the brand actually wants. Single-accent confident
 * identity in the family of mature hedge-fund / VC-celeb brand systems
 * (Bridgewater navy, Sequoia oxblood, Founders Fund gray, a16z orange),
 * none of which run two-tone or muted-secondary palettes.
 *
 * Direction (see README.md for full positioning):
 *   • Default mode: dark (warm-black ground — kinship with builder/lab)
 *   • Motion:       nuanced (carried from lab) — entrance + slow breath, no
 *                   radiating rings; breath tempo 5s
 *   • Mark:         Bloom / Caldera — static outer horizon + breathing ember
 *   • Accent:       warm amber #E8A24C — single confident accent at ~9:1
 *                   (AAA) on warm-black. No --accent-text split needed; the
 *                   muted-coral AA gymnastics collapses away.
 *   • Type weights: light (display 400, headline 400) — kept from lab; amber
 *                   color carries the visual weight that thin strokes need
 *   • Density:      editorial (single-column, generous whitespace)
 *   • Section motif: thin baseline (lab pattern)
 *   • Voice:        declaratives — institutional confidence, not founder energy
 *
 * Status: chosen. Pending site migration (caldura-group/sites) and asset
 * library re-export at the amber hue.
 */

.caldura-ai.variant-amber {
  /* Mode — dark default (kinship with builder/lab) */
  --bg-base:           var(--bg-base-dark);
  --bg-surface:        var(--bg-surface-dark);
  --bg-surface-hover:  var(--bg-surface-hover-dark);
  --text-primary:      var(--text-primary-dark);
  --text-secondary:    var(--text-secondary-dark);
  --text-tertiary:     var(--text-tertiary-dark);
  --border:            var(--border-dark);
  --border-hover:      var(--border-hover-dark);

  /* Entity accent — warm amber.
     Unlike lab's muted coral (~4.0:1 fail), amber clears AA at ~9:1 on
     warm-black, so it works as text directly. No --accent-text split
     required — page styles using var(--accent-text, var(--accent)) get the
     single accent value via fallback. Lab's split-token complexity collapses.

     Governance vs. parent gold #D4920A: amber is hex-neighbor but
     deliberately brighter and more luminous (peachy / molten, not bronze).
     Parent gold stays on cross-Caldura wayfinders (SisterLink, footer
     ↗ caldura.com); amber lives on AI surfaces only. Same gold-warm spine
     signals kinship — the point of a variant system — without merging. */
  --accent:        232 162 76;     /* #E8A24C warm amber */
  --accent-light:  242 192 120;    /* #F2C078 lifted amber */
  --subtle:        46 32 16;       /* #2E2010 deeper amber slate */

  /* Focus — uses the accent itself; high contrast on warm-black (~9:1).
     The outline-offset:2px in tokens-foundation.css still lifts the ring off
     bright CTA fills, where amber-on-amber would otherwise read flat. */
  --focus-ring:    232 162 76;

  /* Motion — carried from lab (nuanced dynamic) */
  --motion-mode:        1;
  --motion-play-state:  running;
  --motion-breath:      5s;        /* slower than foundation's 3s default */

  /* Type weights — kept light from lab; amber luminance carries thin strokes */
  --weight-display:          400;
  --weight-h1:               400;
  --weight-body:             400;
  --weight-wordmark:         500;     /* lockup "Caldura" — shared connected-brand wordmark weight */
  --weight-suffix:           400;     /* lockup " AI" — entity suffix stays lighter than Caldura */
  --letter-spacing-display:  0.01em;

  /* Density */
  --density: editorial;

  /* No paper texture (matches builder/lab dark register) */
  --paper-texture-opacity: 0;

  /* CTA — amber fill with warm-black knockout. ~8.9:1 (AAA) on the warm-
     black surrounding ground. The amber-on-amber legibility problem (which
     forced lab's deep-coral + cream compromise) doesn't exist here because
     amber is bright enough to carry warm-black text directly. */
  --cta-bg:   232 162 76;          /* #E8A24C amber */
  --cta-text: 26 18 16;            /* #1A1210 warm-black */

  /* Deck Tier-2 tokens — dark defaults (matches :root and lab) */
  --deck-display-text:    rgb(255 255 255);
  --deck-subtitle-muted:  rgb(255 255 255 / 0.65);
  --deck-chrome-text:     rgb(255 255 255 / 0.50);
  --deck-kpi-hero:        rgb(var(--accent));         /* pure amber — no white-mix needed */
  --deck-highlight-bg:    color-mix(in srgb, rgb(var(--accent)) 20%, transparent);
  --deck-section-band:    color-mix(in srgb, rgb(var(--accent)) 15%, rgb(var(--bg-base)));
}

/* Manual light override (for users who toggle to light) — amber must darken
   substantially to clear AA on cream. Dark-mode amber at full saturation sits
   at only ~2:1 on the cream ground; light mode uses a much deeper, browner
   amber that reads as the same color family at darker register. */
.caldura-ai.variant-amber[data-color-scheme="light"] {
  --bg-base:           var(--bg-base-light);
  --bg-surface:        var(--bg-surface-light);
  --bg-surface-hover:  var(--bg-surface-hover-light);
  --text-primary:      var(--text-primary-light);
  --text-secondary:    var(--text-secondary-light);
  --text-tertiary:     var(--text-tertiary-light);
  --border:            var(--border-light);
  --border-hover:      var(--border-hover-light);

  --accent:            140 90 15;       /* #8C5A0F deep amber · ~4.6:1 on cream (AA) */
  --accent-light:      184 120 46;      /* #B8782E lifted */
  --subtle:            232 220 192;     /* #E8DCC0 amber cream */
  --focus-ring:        107 67 8;        /* #6B4308 darker amber for cream ground */

  /* CTA in light mode — very deep amber fill with cream knockout */
  --cta-bg:   107 67 8;       /* #6B4308 */
  --cta-text: 245 240 235;    /* #F5F0EB cream */

  /* Deck Tier-2 tokens for light cream ground */
  --deck-display-text:    rgb(26 18 16);
  --deck-subtitle-muted:  rgb(0 0 0 / 0.6);
  --deck-chrome-text:     rgb(0 0 0 / 0.65);
  --deck-kpi-hero:        rgb(var(--accent));
  --deck-highlight-bg:    color-mix(in srgb, rgb(var(--accent)) 22%, transparent);
  --deck-section-band:    color-mix(in srgb, rgb(var(--accent)) 12%, rgb(var(--bg-base)));
}
