/* xenarch.com: the ONE token sheet for every marketing page (landers, reading
   pages, legal, 404). Before 2026-11 each lander carried its own copy of the
   palette inline and the copies had drifted (light --muted was #666 on one page
   and #888 on three, light --success three different greens).

   PALETTE = Retasc's measured palette (retasc.com web/styles.css, the canon the
   Retasc Dash also mirrors), adopted for Xenarch on 2026-11-17 at the owner's
   request. What it changes against the old Xenarch set:
   - ELEVATION. LIVE retasc.com's cool ladder (RTSC-712; read it from the live
     CSS, never a local checkout): page #09090b, card #141417, surface #1d1d21.
     Small steps (1.08, 1.09); borders carry the separation (#36363c, 1.53:1).
   - LIGHT has no pure white: a cream ladder over #E9E6E0 whose separation is
     carried by borders, accents retuned into one OKLCh band (L .47-.52).
   - COLOUR. Achromatic plus status: green/amber/red/blue mean good, waiting,
     failed, info. Products are named in words, never marked by colour. The
     --hue-* tokens below are unused since 18.11 (the swatches and threads were
     removed as slop); a new use needs the owner's yes.
   Mirror: dashboard/app/globals.css carries the same values. Change one, change
   both. */

:root {
  --bg: #09090b;
  --card: #141417; --card-border: #36363c;
  --surface: #1d1d21; --surface-border: #4a4a50;
  --fg: #f0f0f0; --fg-strong: #fff;
  /* reading ink, then two quieter steps, all AA on the lightest ground (surface) */
  --ink: #dadada; --secondary: #b6b6b6; --muted: #a2a2a2;
  /* --dim is a resting outline or a decorative fill only (1.67:1 on the card);
     anything a reader must SEE (separators, hover borders, marker dots) takes
     --sep, which clears 3:1 on every ground in both palettes. */
  --dim: #3a3a40; --sep: #85858c;
  --icon: #f0f0f0;
  --success: #4ade80; --success-bg: rgba(74,222,128,0.08); --success-border: rgba(74,222,128,0.32);
  --warning: #facc15; --warning-bg: rgba(250,204,21,0.08); --warning-border: rgba(250,204,21,0.34);
  --error: #f87171; --error-bg: rgba(248,113,113,0.08); --error-border: rgba(248,113,113,0.34);
  --link-blue: #5a9fd4; --link-blue-bg: rgba(90,159,212,0.10); --link-blue-border: rgba(90,159,212,0.36);

  /* IDENTITY: the three products on the one rail. Retasc's runtime hues, same
     chroma band as the status set. Swatches, threads and tags only. */
  --hue-pay: #d98a5b;   --hue-pay-bg: rgba(217,138,91,0.10);  --hue-pay-border: rgba(217,138,91,0.36);
  --hue-gate: #4bb3a5;  --hue-gate-bg: rgba(75,179,165,0.10); --hue-gate-border: rgba(75,179,165,0.36);
  --hue-agent: #8b7fd4; --hue-agent-bg: rgba(139,127,212,0.12); --hue-agent-border: rgba(139,127,212,0.36);

  /* ELEVATION: retasc.com's live cool ladder (RTSC-712), not neutral grey.
     A panel on the page is --panel; anything recessed inside a panel or card
     (inline code, a window's chrome, a stat well) steps DOWN to --panel-inset. */
  --panel: #141417; --panel-sunk: #111114; --panel-inset: #0c0c0e; --panel-line: #36363c;
  --band: #121214; --panel-edge: #36363c; --well-line: #36363c;
  /* a filled control behind content (Action button, active segment) */
  --plate: #26262b;
  /* the unfilled part of a meter; must read against the card AND the fill */
  --track: #85858c;
  --cast: rgba(0,0,0,0.85);

  --radius-xs: 3px; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-card: 10px; --radius-pill: 100px;

  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Space Grotesk', sans-serif;
}

/* Light. The media query fires only on a light OS; an explicit ?theme=2 on a
   dark OS lands in the second block. ONE palette written twice: change both.
   Scoped :not([data-theme="dark"]) so only an explicit "dark" opts out. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #E9E6E0; --card: #F8F6F2; --card-border: #b5aea4;
    --surface: #EFEBE4; --surface-border: #bdb6ad;
    --fg: #1a1a1a; --fg-strong: #000;
    --ink: #272727; --secondary: #4b4b4b; --muted: #5f5f5f;
    --dim: #c3bcb2; --sep: #78726a;
    --icon: #6b6b6b;
    --success: #0c6e32; --success-bg: rgba(12,110,50,0.10); --success-border: rgba(12,110,50,0.34);
    --warning: #835a0e; --warning-bg: rgba(217,159,6,0.12); --warning-border: rgba(163,111,4,0.40);
    --error: #a8372a; --error-bg: rgba(168,55,42,0.09); --error-border: rgba(168,55,42,0.34);
    --link-blue: #226295; --link-blue-bg: rgba(34,98,149,0.10); --link-blue-border: rgba(34,98,149,0.36);
    --hue-pay: #b5652f;   --hue-pay-bg: rgba(181,101,47,0.10);  --hue-pay-border: rgba(181,101,47,0.36);
    --hue-gate: #0f8579;  --hue-gate-bg: rgba(15,133,121,0.10); --hue-gate-border: rgba(15,133,121,0.36);
    --hue-agent: #6459ac; --hue-agent-bg: rgba(100,89,172,0.08); --hue-agent-border: rgba(100,89,172,0.36);
    --panel: #F8F6F2; --panel-sunk: #F4F1EC; --panel-inset: #EAE6DF; --panel-line: #b5aea4;
    --band: #E2DED7; --panel-edge: #b5aea4; --well-line: #b5aea4;
    --plate: #DDD6CE; --track: #C9C3BC;
    --cast: rgba(60,50,40,0.28);
  }
}
:root[data-theme="light"] {
  --bg: #E9E6E0; --card: #F8F6F2; --card-border: #b5aea4;
  --surface: #EFEBE4; --surface-border: #bdb6ad;
  --fg: #1a1a1a; --fg-strong: #000;
  --ink: #272727; --secondary: #4b4b4b; --muted: #5f5f5f;
  --dim: #c3bcb2; --sep: #78726a;
  --icon: #6b6b6b;
  --success: #0c6e32; --success-bg: rgba(12,110,50,0.10); --success-border: rgba(12,110,50,0.34);
  --warning: #835a0e; --warning-bg: rgba(217,159,6,0.12); --warning-border: rgba(163,111,4,0.40);
  --error: #a8372a; --error-bg: rgba(168,55,42,0.09); --error-border: rgba(168,55,42,0.34);
  --link-blue: #226295; --link-blue-bg: rgba(34,98,149,0.10); --link-blue-border: rgba(34,98,149,0.36);
  --hue-pay: #b5652f;   --hue-pay-bg: rgba(181,101,47,0.10);  --hue-pay-border: rgba(181,101,47,0.36);
  --hue-gate: #0f8579;  --hue-gate-bg: rgba(15,133,121,0.10); --hue-gate-border: rgba(15,133,121,0.36);
  --hue-agent: #6459ac; --hue-agent-bg: rgba(100,89,172,0.08); --hue-agent-border: rgba(100,89,172,0.36);
  --panel: #F8F6F2; --panel-sunk: #F4F1EC; --panel-inset: #EAE6DF; --panel-line: #b5aea4;
  --band: #E2DED7; --panel-edge: #b5aea4; --well-line: #b5aea4;
  --plate: #DDD6CE; --track: #C9C3BC;
  --cast: rgba(60,50,40,0.28);
}

/* MOTION (Retasc). Four curves named for what they DO, so a new animation picks
   its curve by describing itself rather than by taste.
     move   travelling on screen: eases at both ends
     enter  arriving from nowhere: no wind-up, long settle
     exit   leaving: accelerates away
     snap   an event landing: 78% of the distance in the first third
     float  a sine; CSS ease-in-out parks at both ends of every cycle */
:root {
  --ease-move: cubic-bezier(.4, 0, .2, 1);
  --ease-enter: cubic-bezier(0, 0, .2, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --ease-snap: cubic-bezier(.2, .75, .3, 1);
  --ease-float: cubic-bezier(.37, 0, .63, 1);
  --d-swap: 320ms; --d-move: 440ms; --d-enter: 340ms; --d-exit: 240ms;
}

/* A static multi-page site shows the browser's blank frame between documents;
   this cross-fades instead. Off for anyone who asked for less motion. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
