/* ============================================================================
   QUIET CUSTODY — the design tokens.

   The Aurora rows are the suite's, taken verbatim so Sigil is visibly a Selarys
   app: they are the same values `Syndex/syndex-ui/css/base.css :root` carries and
   the same values the picked mockup declares
   (`.planning/client-intent/mockups/web-direction-2.html`, DR-SIGIL-090 §1).

   ⛔ ZERO third-party assets. No @font-face pointing anywhere, no CDN, no font
      fetch. The estate's chrome fetches Outfit/Inter from fonts.googleapis; an
      E2EE messenger does not make that call, so the faces are NAMED here and
      resolve locally-or-system until they are vendored. Vendoring them is a
      governed act, not a copy — see README.md, "The faces are not vendored yet".

   ⭐ THE STATUS VOCABULARY IS A TOKEN SET, and it is where the honesty rules
      become CSS. The five delivery states and the four read answers each own a
      DISTINCT token. They are declared here — in the shell — precisely so that
      W3/W4/W5 wire them rather than invent a sixth word or collapse two into one
      colour. Distinctness is a property this file can be read for.
   ============================================================================ */

:root {
  /* --- Aurora ground + elevation ------------------------------------------ */
  --void: #06070d;
  --deep: #0e1018;
  --surface: #161a24;
  --raise: #1c2130;

  /* --- Aurora accents ------------------------------------------------------ */
  --cyan: #00c8ff;
  --violet: #7850ff;
  --mint: #00ffb4;
  --warning: #ffaa30;
  --error: #ff4466;

  /* --- text + hairlines ---------------------------------------------------- */
  --text: #e0e8f0;
  --text-muted: #6a7a8a;
  --text-dim: #3a4a5a;
  --border: rgba(255, 255, 255, 0.06);
  --border-lit: rgba(120, 134, 160, 0.18);

  /* --- type ----------------------------------------------------------------
     'Inter' / 'Outfit' are NAMED first and fall through to the platform stack.
     Nothing is fetched: if the reader has the face, they get it; if not, the
     system face carries the same rhythm. No @font-face rule exists in this tree,
     and a build that adds one pointing at a URL breaks the zero-egress property
     the artifact is measured on (R6-G6). */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --chrome: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;

  --text-body: 15px;
  --text-lead: 14.5px;
  --text-note: 13px;
  --text-fine: 11.5px;

  /* --- rhythm --------------------------------------------------------------- */
  --gap: 12px;
  --gap-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --rail-width: 320px;
  --fold: 860px; /* the width at which two panes become one — mirrored in app.css */

  /* ==========================================================================
     ⭐ THE FIVE DELIVERY STATES (`SigilDeliveryStateKind`) — five tokens, five
     colours, no two alike. The ledger's own words live in js/state.js; these are
     the faces they wear. Collapsing two of these is the defect R6-G11 names.
     ========================================================================== */
  --state-pending: var(--text-dim);
  --state-submitted: var(--cyan);
  --state-accepted: var(--mint);
  --state-refused: var(--error);
  --state-faulted: var(--warning);
  /* ⭐ [2026-10-30, WAVE DR-131 web package B — the host-adoption contract] A COMMIT'S OWN TWO STATES (the
     merge-at-position act): taken by the node but not yet the room's, and overtaken by a competing change. Two
     more faces, each its own, neither the five's — so the set is seven, distinct. ⚠ A DESIGN CALL FOR THE LEAD:
     the Aurora palette's two unused values are taken (the muted text grey for the wait, the violet accent for
     the overtaken change); a new hex would be off-palette. [The overtaken change's face was re-ruled at
     ratification — see its own line below.] */
  --state-sequenced: var(--text-muted);
  /* ⭐ [AMENDED 2026-10-30 at ratification — register @298be40: Superseded moves OFF the violet accent, which this
     sheet already spends on "a taxonomy member this surface does not know" (`--tone-unknown`): an overtaken change
     is SETTLED AND INERT, not unknown. It joins the muted delivered-grey family instead — mixed from the palette's
     own two greys, so no new hex enters, and resolved apart from the wait's grey and the pending grey (check 6).
     ⚠ A DESIGN CALL, flagged: the exact mix (half and half) is this package's. Supersede-never-delete; it read:
       --state-superseded: var(--violet); */
  --state-superseded: color-mix(in srgb, var(--text-muted) 50%, var(--text-dim));

  /* ==========================================================================
     ⭐ THE FOUR READ ANSWERS (`SigilReadOutcomeKind`) — a fault never wears the
     empty state's face, and "not yet" is neither of them.
     ⚠ Note that a read Fault is RED while a delivery Faulted is AMBER. That is
     deliberate and it is the mockup's own distinction: a message whose outcome we
     could not learn is not the same event as a history we could not fetch, and
     the two must not read as one thing.
     ========================================================================== */
  --answer-served: var(--mint);
  --answer-empty: var(--cyan);
  --answer-notready: var(--text-muted);
  --answer-fault: var(--error);

  /* --- the subscription's four wave states (`SigilWaveState`) --------------- */
  --wave-opening: var(--text-dim);
  --wave-catchingup: var(--cyan);
  --wave-live: var(--mint);
  --wave-ended: var(--text-muted);

  /* --- tones the render helpers ask for by name ----------------------------- */
  --tone-quiet: var(--text-dim);
  --tone-progress: var(--cyan);
  --tone-good: var(--mint);
  --tone-refusal: var(--error);
  --tone-fault: var(--warning);
  --tone-unknown: var(--violet); /* a taxonomy member this surface does not know */
}
