/* ============================================================
   Gnomon Tax — Desert Shadow 1.0
   Colour tokens. Supersedes the "Shadow" navy/sun palette.

   Twelve tokens. Four of them carry STATE and must not be used
   decoratively: Gnomon Teal, Solar, Adobe, Agave.

   CONTRAST RULE — read this before using an Ink token.
   The *Ink tokens are validated against Paper and Panel ONLY.
   On Agave or Desert Sand grounds, small text is Eclipse.
   (Agave Deep on Agave is 3.9:1 and fails.)
   ============================================================ */
:root {
  /* --- Grounds and ink --- */
  --eclipse:     #132B2F;  /* deepest ground + body ink. Replaces navy. */
  --paper:       #FCFAF4;  /* page and slide ground */
  --panel:       #EEF2EE;  /* tiles, bar tracks, table zebra */
  --desert-sand: #F2E7D5;  /* warm neutral field: callouts, plan bands */
  --soft-ink:    #536466;  /* labels, captions, axes — 5.6:1 on Paper */
  --rule:        #DDE3DE;  /* hairlines */

  /* --- The four state colours --- */
  --gnomon-teal: #0D5B5E;  /* CURRENT — what is true today. 7.4:1 on Paper. */
  --solar:       #F4B942;  /* OPPORTUNITY — threshold, window, decision. FILL ONLY. */
  --adobe:       #D96C4C;  /* CHANGE — correction in flight, exposure. */
  --agave:       #B7D3C4;  /* RESOLVED — banked, protected, closed. */

  /* --- Text-weight siblings of the state colours --- */
  --solar-ink: #8A6410;    /* 5.1:1 on Paper. Solar is never text on Paper. */
  --adobe-ink: #A94E37;    /* 5.3:1 on Paper */
  --agave-deep:#2F6B52;    /* 6.0:1 on Paper. NOT for use on Agave. */

  /* --- Tints for dark grounds --- */
  --solar-tint: #F3E3B8;
  --agave-tint: #B7D3C4;
  --paper-soft: #C7CFD6;

  /* ============================================================
     Semantic aliases — reference these, not the raw names.
     ============================================================ */
  --surface-page:         var(--paper);
  --surface-panel:        var(--panel);
  --surface-warm:         var(--desert-sand);
  --surface-inverse:      var(--eclipse);
  --surface-brand:        var(--gnomon-teal);

  --text-body:            var(--eclipse);
  --text-label:           var(--soft-ink);
  --text-inverse:         var(--paper);
  --text-inverse-soft:    var(--paper-soft);
  --text-on-warm:         var(--eclipse);   /* Sand + Agave grounds */

  /* Data states — the vocabulary clients learn */
  --state-current:        var(--gnomon-teal);
  --state-current-ink:    var(--gnomon-teal);
  --state-opportunity:    var(--solar);
  --state-opportunity-ink:var(--solar-ink);
  --state-change:         var(--adobe);
  --state-change-ink:     var(--adobe-ink);
  --state-resolved:       var(--agave);
  --state-resolved-ink:   var(--agave-deep);

  --border-heavy:         var(--eclipse);
  --border-hair:          var(--rule);

  --link:                 var(--solar-ink);
  --link-hover:           var(--eclipse);
  --focus-ring:           var(--solar);

  /* Interactive */
  --btn-primary-bg:       var(--eclipse);
  --btn-primary-hover:    #0C1F22;
  --btn-on-dark-bg:       var(--solar);
  --btn-on-dark-hover:    #E0A72F;

  /* Functional hatches — retained from Shadow */
  --hatch:      repeating-linear-gradient(135deg, var(--panel) 0 3px, var(--paper) 3px 6px);
  --hatch-solar:repeating-linear-gradient(135deg, var(--solar) 0 2px, var(--paper) 2px 6px);

  /* RETIRED — do not reintroduce:
     navy #1F2A33 · navy-deep #141C24 · slate-2 #3A4A5A · slate-tint #C7CFD6
     (survives only as --paper-soft) · ink-shadow #0B1014 · the light/shadow/edge
     motif trio · sun #D9A441 (became Solar) · gold-ink #9C7020 (became Solar Ink).
     Mist #EEF2EE from the handoff was NOT adopted as a second neutral — Panel
     already does that job and carries the same value. */
}
