/* ==========================================================================
   Land of Geb · OS brand layer (draft, 5 Dec 2026)
   Puts landofgeb.net on the Bixxville OS look (terminal.html):
     dark studio teal ground #0b1a20, cream ink #EEF1EC, mist accent #A8D2CB,
     the OS neon gradient yellow #F3E516 → coral #E86553 → teal #2A878F,
     Anton for display, IBM Plex Mono for labels (the OS fonts).
   Dark is the default, like the OS. Light is the OS light theme (bone #EEF1EC).
   Loaded last on every page. Remove the <link> to undo it all.
   ========================================================================== */

/* ── dark: the default (no choice, or the visitor chose dark) ── */
:root:not([data-theme="light"]){
  --t-bg:#0b1a20; --t-surface:#0f2027; --t-surface-strong:#14252c;
  --t-ink:#EEF1EC; --t-text:#c4d3d2; --t-muted:#8fa6ac; --t-faint:#2a3d44;
  --t-line:#1d3a45; --t-line-strong:#2a3d44;
  --t-bar:rgba(8,20,26,.92); --t-shadow:0 10px 30px rgba(0,0,0,.45);
  --t-band:#09161b; --t-band-ink:#EEF1EC; --t-band-text:#c4d3d2; --t-band-muted:#8fa6ac; --t-band-line:#1d3a45;
  --t-green:#A8D2CB; --t-bx-orange:#E86553; --t-gold:#F3E516; --t-on-green:#0b1a20;
  --t-frame:radial-gradient(70% 18% at 82% 0%,rgba(168,210,203,.10),transparent 72%),linear-gradient(180deg,#0f2027 0%,#0b1a20 60%,#09161b 100%);
  --t-silver:linear-gradient(180deg,#A8D2CB,#A8D2CB);
  --t-panel:rgba(168,210,203,.05);
  --rf-glass:rgba(8,20,26,.82);
  --rf-soft:0 1px 0 rgba(255,255,255,.04) inset,0 10px 30px rgba(0,0,0,.4);
  color-scheme:dark;
}
/* ── light: the OS light theme ── */
:root[data-theme="light"]{
  --t-bg:#EEF1EC; --t-surface:#F6F8F4; --t-surface-strong:#FBFCFA;
  --t-ink:#0b1a20; --t-text:#2a3d44; --t-muted:#4a5f66; --t-faint:#B9CBCB;
  --t-line:#D3DEDD; --t-line-strong:#B9CBCB;
  --t-bar:rgba(238,241,236,.94); --t-shadow:0 10px 30px rgba(11,26,32,.07);
  --t-band:#0b1a20; --t-band-ink:#EEF1EC; --t-band-text:#c4d3d2; --t-band-muted:#8fa6ac; --t-band-line:#1d3a45;
  --t-green:#1E6F77; --t-bx-orange:#C4402E; --t-gold:#7D6B00; --t-on-green:#FFFFFF;
  --t-frame:radial-gradient(70% 18% at 82% 0%,rgba(42,135,143,.10),transparent 72%),linear-gradient(180deg,#F6F8F4 0%,#EEF1EC 60%,#E6EBE5 100%);
  --t-silver:linear-gradient(180deg,#0b1a20,#0b1a20);
  --t-panel:rgba(11,26,32,.04);
  --rf-glass:rgba(238,241,236,.86);
  color-scheme:light;
}
/* the brand trio, both themes: the OS neon */
:root{
  --t-yellow:#F3E516; --t-orange:#E86553; --t-pink:#2A878F;
  --t-neon:linear-gradient(90deg,#F3E516 0%,#E86553 50%,#2A878F 100%);
  --t-neon-v:linear-gradient(180deg,#F3E516 0%,#E86553 50%,#2A878F 100%);
  --t-on-neon:#0b1a20;
  --t-tier-ope:#E86553;
}

/* ── solid buttons: mist with dark ink in dark (the OS accent button), deep teal-black in light ── */
:root:not([data-theme="light"]) .btn.solid,
:root:not([data-theme="light"]) .c-btn.solid{background:#A8D2CB !important;background-image:none !important;color:#0b1a20 !important;border-color:#A8D2CB !important}
:root[data-theme="light"] .btn.solid,
:root[data-theme="light"] .c-btn.solid{background:#0b1a20 !important;background-image:none !important;color:#EEF1EC !important;border-color:#0b1a20 !important}
.btn:hover,.c-btn:hover{box-shadow:0 8px 22px rgba(42,135,143,.22) !important}
.btn.ghost:hover{box-shadow:none !important}

/* ── focus and selection in the OS accent ── */
:focus-visible{outline-color:#A8D2CB}
:root[data-theme="light"] :focus-visible{outline-color:#1E6F77}
::selection{background:rgba(168,210,203,.35);color:inherit}

/* ── theme button: sun shows in dark (tap for light), moon in light ── */
:root:not([data-theme="light"]) .t-theme .t-sun{display:block !important}
:root:not([data-theme="light"]) .t-theme .t-moon{display:none !important}
:root[data-theme="light"] .t-theme .t-sun{display:none !important}
:root[data-theme="light"] .t-theme .t-moon{display:block !important}

/* ── OS hairline glow under the top bar ── */
.bar{border-bottom:1px solid var(--t-line) !important}
.bar::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--t-neon);opacity:.55;pointer-events:none}
