/* =============================================================================
   elizamarin.com design system · component-tokens.css
   LAYER 3 · COMPONENT TOKENS

   One namespace per component. Every colour and radius here points at a
   role from Layer 2 (--paper, --ink, --lila-vivid ...) or at the shared
   --focus-ring-color. Never at a primitive, never at a literal: that is
   what lets the night theme reach every component without touching this
   file.

   components.css takes every colour and radius from THIS file. The shared
   scales (space, font, line height, letter spacing, border width, shadow,
   ease and duration, size, opacity, folder geometry) it may use directly.
   ============================================================================= */

:root {

  /* ── Page ────────────────────────────────────────────────────────────── */

  --page-bg:          var(--bg);
  --page-text:        var(--ink);
  --page-text-muted:  var(--slate);
  --page-selection:   var(--lila);
  --page-link:        var(--ink);
  --page-link-rule:   var(--rule);

  /* ── Heading (two declared families) ──────────────────────────────────── */

  --heading-text:         var(--ink);       /* every h1, home included (it drifted to graphite) */
  --heading-muted-text:   var(--slate);     /* the line under a heading */

  /* ── Folder tab (the navigation rail) ─────────────────────────────────── */

  --tab-bg:              var(--panel);
  --tab-bg-hover:        var(--panel2);
  --tab-bg-back:         var(--mist);       /* folders further back mix toward this */
  --tab-bg-open:         var(--paper);      /* the folder you are in */
  --tab-text:            var(--graphite);
  --tab-text-hover:      var(--ink);
  --tab-text-open:       var(--ink);
  --tab-number:          var(--slate);
  --tab-border-color:    var(--rule);
  --tab-mark:            var(--lila-vivid); /* the bar under the open folder's label */
  --tab-radius:          var(--radius-md);
  --tab-focus-ring-color: var(--focus-ring-color);

  /* ── Folder menu (what is filed inside a folder) ──────────────────────── */

  --menu-bg:             var(--paper);
  --menu-border-color:   var(--rule);
  --menu-radius:         var(--radius-md);  /* the top-left corner stays square: it hangs off the tab */
  --menu-row-radius:     var(--radius-sm);
  --menu-row-text:       var(--graphite);
  --menu-row-title:      var(--ink);
  --menu-row-bg-hover:   var(--panel2);
  --menu-row-number:     var(--slate);
  --menu-live-dot:       var(--lila-vivid);
  --menu-focus-ring-color: var(--focus-ring-color);

  /* ── Button (a pill; three variants) ──────────────────────────────────── */

  --button-radius:        var(--radius-full);

  /* Lila: the one invitation on a screen ("contact"). Drawn, not filled. */
  --button-lila-bg:           transparent;
  --button-lila-bg-hover:     var(--lila-soft);
  --button-lila-text:         var(--lila-deep);
  --button-lila-border-color: var(--lila-mid);

  /* Quiet: "read", "open", the go-pill at the end of a card. */
  --button-quiet-bg:           transparent;
  --button-quiet-bg-hover:     var(--ink);
  --button-quiet-text:         var(--ink);
  --button-quiet-text-hover:   var(--paper);
  --button-quiet-border-color: var(--rule);
  --button-quiet-border-color-hover: var(--ink);

  /* Solid: a command inside a tool (the accessibility panel's actions). */
  --button-solid-bg:           var(--panel);
  --button-solid-bg-hover:     var(--ink);
  --button-solid-text:         var(--ink);
  --button-solid-text-hover:   var(--paper);
  --button-solid-border-color: var(--rule);

  --button-focus-ring-color:   var(--focus-ring-color);

  /* ── Segmented control (density, text size) ───────────────────────────── */

  --segmented-bg:              var(--panel2);
  --segmented-border-color:    var(--rule);
  --segmented-radius:          var(--radius-full);
  --segmented-label-text:      var(--slate);
  --segmented-option-text:     var(--slate);
  --segmented-option-radius:   var(--radius-full);
  --segmented-option-bg-hover: var(--panel);
  --segmented-selected-bg:     var(--ink);
  --segmented-selected-text:   var(--paper);
  --segmented-focus-ring-color: var(--focus-ring-color);

  /* ── Switch (the accessibility panel's toggles) ───────────────────────── */

  --switch-track:          var(--mist);
  --switch-track-on:       var(--lila-deep);
  --switch-thumb:          var(--paper);
  --switch-radius:         var(--radius-full);
  --switch-focus-ring-color: var(--focus-ring-color);

  /* ── Label (eyebrow, kicker, meta key: the mono layer) ────────────────── */

  --label-text:           var(--slate);   /* meta keys, group labels */
  --label-eyebrow-text:   var(--lila-deep); /* over a hero */
  --label-kicker-text:    var(--lila-deep); /* over a card or a section; was vivid, see audit */

  /* ── Breadcrumb ───────────────────────────────────────────────────────── */

  --crumb-text:        var(--slate);
  --crumb-current:     var(--ink);
  --crumb-separator:   var(--slate);
  --crumb-focus-ring-color: var(--focus-ring-color);

  /* ── Section rail (srail: the menu of a long page) ────────────────────── */

  --rail-title:           var(--ink);
  --rail-subtitle:        var(--slate);
  --rail-link-text:       var(--graphite);
  --rail-link-number:     var(--slate);
  --rail-link-bg-hover:   var(--lila-soft);
  --rail-current-bg:      var(--rail-grad);
  --rail-current-text:    var(--rail-grad-text);
  --rail-current-number:  var(--lila-deep);
  --rail-link-radius:     var(--radius-sm);
  --rail-chip-bg:         var(--paper);      /* under 1000px the links become chips */
  --rail-chip-border-color: var(--rule);
  --rail-bar-bg:          var(--bg);
  --rail-bar-border-color: var(--rule);
  --rail-focus-ring-color: var(--focus-ring-color);

  /* ── Choice card (pick: choosing a case study) ────────────────────────── */

  --pick-bg:                  var(--paper);
  --pick-text:                var(--ink);
  --pick-body-text:           var(--slate);
  --pick-border-color:        var(--rule);
  --pick-border-color-hover:  var(--lila-vivid);
  --pick-radius:              var(--radius-xl);
  --pick-radio-ring:          var(--steel);
  --pick-radio-ring-hover:    var(--lila-vivid);
  --pick-tag-text:            var(--lila-deep);
  --pick-peek-text:           var(--lila-deep);
  --pick-go-bg-hover:         var(--lila);
  --pick-focus-ring-color:    var(--focus-ring-color);

  /* ── Read-next card (the op-ed each discipline page hands you) ────────── */

  --next-bg:                  var(--panel2);
  --next-bg-hover:            var(--lila-soft);
  --next-border-color:        var(--rule);
  --next-border-color-hover:  var(--lila-vivid);
  --next-top-rule:            var(--lila);
  --next-kicker-text:         var(--lila-deep);
  --next-title-text:          var(--ink);
  --next-body-text:           var(--slate);
  --next-radius:              var(--radius-lg);
  --next-focus-ring-color:    var(--focus-ring-color);

  /* ── Chip (facts about a thing; not clickable) ────────────────────────── */

  --chip-bg:            var(--panel2);
  --chip-text:          var(--graphite);
  --chip-border-color:  var(--rule2);
  --chip-radius:        var(--radius-full);

  /* ── Field band (the bright band that carries the story) ──────────────── */

  --field-band-bg:          var(--field);
  --field-band-base:        var(--field-base);   /* contrast reference, never painted */
  --field-band-text:        var(--field-text);
  --field-band-muted:       var(--field-muted);
  --field-band-number:      var(--field-accent);
  --field-band-border-color: var(--field-rule);

  /* ── Meta strip (role, timeline, team under a hero) ───────────────────── */

  --meta-border-color:  var(--rule);
  --meta-key-text:      var(--slate);
  --meta-value-text:    var(--ink);

  /* ── Term (a toggletip on a word inside a sentence) ───────────────────── */

  --term-text-hover:    var(--lila-vivid);
  --term-underline:     var(--lila-vivid);
  --term-tip-bg:        var(--ink);
  --term-tip-text:      var(--paper);
  --term-tip-radius:    var(--radius-md);

  /* ── Pull quote ───────────────────────────────────────────────────────── */

  --pull-text:          var(--ink);
  --pull-accent:        var(--accent-grad);   /* the one word that carries the claim */
  --pull-accent-fallback: var(--lila-vivid);   /* forced colours, no background-clip */

  /* ── Act heading (a numbered part of a case study) ────────────────────── */

  --act-rule:           var(--rule);
  --act-number:         var(--lila-vivid);
  --act-label-text:     var(--ink);
  --act-title-text:     var(--ink);

  /* ── Callout (state: done, attention, problem) ────────────────────────── */

  --callout-radius:     var(--radius-md);
  --callout-ok-bg:      var(--ok-soft);    --callout-ok-text:   var(--ok);
  --callout-warn-bg:    var(--warn-soft);  --callout-warn-text: var(--warn);
  --callout-bad-bg:     var(--bad-soft);   --callout-bad-text:  var(--bad);
  --callout-note-bg:    var(--panel2);     --callout-note-text: var(--graphite);
  --callout-body-text:  var(--ink);

  /* ── Trust word (letters that rise and take the gradient) ─────────────── */

  --trust-fill-display: var(--trust-grad);
  --trust-fill-small:   var(--trust-grad-small);
  --trust-fallback:     var(--lila-vivid);

  /* ── Skip link ────────────────────────────────────────────────────────── */

  --skip-bg:            var(--ink);
  --skip-text:          var(--paper);
  --skip-radius:        var(--radius-sm);
  --skip-focus-ring-color: var(--focus-ring-color);
}
