/* site.css — every page of veraldar.org. The worlds (themes) are copied from the 11-14 index, unchanged. */
@font-face{font-family:"Commit Mono";src:url(/fonts/commit-mono-400-regular.woff) format("woff");font-weight:400;font-style:normal;font-display:swap}

/* ── worlds: same topology, different finish ─────────────────────────── */
[data-theme=terminus]{--oz-bg:#100c14;--oz-surface:#161018;--oz-surface-hover:#1e1522;--oz-border:rgba(207,200,189,0.18);--oz-text:#cfc8bd;--oz-dim:#6a6274;--oz-success:#7ad8c8;--oz-active:#ffb24a;--oz-danger:#c84058;--oz-info:#a82840}
[data-theme=drift]{--oz-bg:#ece8f8;--oz-surface:#ffffff;--oz-surface-hover:#f3f0fc;--oz-border:rgba(28,24,56,0.18);--oz-text:#1c1838;--oz-dim:#6a6480;--oz-success:#2e7a78;--oz-active:#b9862e;--oz-danger:#a82840;--oz-info:#4aa8a0}
[data-theme]{color-scheme:dark}
[data-theme=drift]{color-scheme:light}
:root{--rule:solid;--tick:0}
[data-theme=terminus]{--tick:1}
[data-theme=drift]{--rule:dotted}
/* the five dialects below are verbatim from the dialects sheet; their short
   names feed the --oz-* tokens this page reads */
[data-theme=divergence]{color-scheme:dark;
  --bg:#071a33;--surface:#0b2242;--hover:#112c52;--border:rgba(120,190,255,.20);
  --text:#e2f0ff;--dim:#8aa6c8;--ok:#8ad67e;--act:#ecc05a;--danger:#f27f72;--info:#62c2f2;
  --glow:rgba(98,194,242,.08);--rl:dashed;--tick:0}
[data-theme=transcendence]{color-scheme:dark;
  --bg:#170c2a;--surface:#1f1236;--hover:#291844;--border:rgba(220,170,255,.18);
  --text:#f3e9ff;--dim:#a590c2;--ok:#92dcc4;--act:#f2b48e;--danger:#f07499;--info:#c4a0f4;
  --glow:rgba(240,171,252,.07);--rl:double;--tick:0}
[data-theme=control]{color-scheme:dark;
  --bg:#1a1709;--surface:#221e0f;--hover:#2c2715;--border:rgba(232,190,90,.20);
  --text:#f1e8cf;--dim:#a49a78;--ok:#6fbcb8;--act:#e8b04a;--danger:#e8705a;--info:#a0b0c4;
  --glow:rgba(232,176,74,.06);--rl:solid;--tick:1}
[data-theme=utopia]{color-scheme:light;
  --bg:#e9efd8;--surface:#f6f8ee;--hover:#eef3e0;--border:rgba(26,46,28,.18);
  --text:#1a2e1c;--dim:#55664f;--ok:#2c6a3a;--act:#8a5e10;--danger:#a63e2c;--info:#2c6a86;
  --glow:rgba(214,170,60,.14);--rl:solid;--tick:0}
[data-theme=stagnation]{color-scheme:dark;
  --bg:#1d2126;--surface:#24292f;--hover:#2c3239;--border:rgba(170,182,198,.16);
  --text:#d6dce3;--dim:#97a1ac;--ok:#8fb0a0;--act:#cfa968;--danger:#d8899a;--info:#93a9c0;
  --glow:rgba(148,163,184,.05);--rl:solid;--tick:0}
[data-theme=divergence],[data-theme=transcendence],[data-theme=control],[data-theme=utopia],[data-theme=stagnation]{--oz-bg:var(--bg);--oz-surface:var(--surface);--oz-surface-hover:var(--hover);--oz-border:var(--border);--oz-text:var(--text);--oz-dim:var(--dim);--oz-success:var(--ok);--oz-active:var(--act);--oz-danger:var(--danger);--oz-info:var(--info);--rule:var(--rl)}
/* a world flip is one attribute, zero morph */
html.swap *,html.swap *::before,html.swap *::after{transition:none!important}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--oz-bg);color:var(--oz-text);-webkit-text-size-adjust:100%}
body{font:14px/1.6 "Commit Mono",ui-monospace,SFMono-Regular,Menlo,monospace;max-width:720px;margin:0 auto;padding:0 20px env(safe-area-inset-bottom)}
button{font:inherit;color:inherit;cursor:pointer;background:none;border:0}
a{color:inherit;text-decoration-color:var(--oz-border);text-underline-offset:3px}
a:hover{text-decoration-color:var(--oz-text)}
::selection{background:var(--oz-active);color:var(--oz-bg)}
:focus-visible{outline:1px solid var(--oz-text);outline-offset:2px}
section{padding:48px 0;border-top:1px var(--rule) var(--oz-border)}
h2{font-size:12px;font-weight:400;letter-spacing:.22em;text-transform:lowercase;color:var(--oz-dim);margin-bottom:20px;display:flex;align-items:center;gap:12px}
h2::after{content:"";flex:1;height:1px;background:var(--oz-border)}
h2::before{content:"";content:none}

@keyframes blink{50%{opacity:0}}
@keyframes breathe{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes ring{0%{transform:scale(.92);opacity:.8}100%{transform:scale(1.28);opacity:0}}
@keyframes glide{0%{transform:translateX(-100%)}100%{transform:translateX(260%)}}
@keyframes vin{from{opacity:0}to{opacity:1}}

/* ── header ── */
header{position:relative;display:flex;justify-content:space-between;align-items:center;height:56px;font-size:12px}
.mark{font-weight:600;letter-spacing:.02em}
/* two small doors, each a popup: the root (what an install puts on your
   computer — explained before any command) and the theme menu */
.hdr{display:flex;gap:6px}
.hb{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:0 10px;border:1px solid var(--oz-border);font-size:11px;color:var(--oz-dim)}
.hb:hover,.hb[aria-expanded=true]{color:var(--oz-text);border-color:var(--oz-text)}
.hb[aria-expanded=true]{background:var(--oz-surface-hover)}
.sw{display:inline-flex;gap:3px}
.sw i{width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 1px var(--oz-border)}
.pop{position:absolute;right:0;top:48px;z-index:50;max-width:100%;border:1px solid var(--oz-border);background:var(--oz-bg);box-shadow:0 14px 40px rgba(0,0,0,.4);animation:vin .14s ease-out}
.pop[hidden]{display:none}
.pop:focus{outline:none}
.pop-h{padding:12px 12px 8px;font-size:10px;letter-spacing:.28em;color:var(--oz-dim)}
#theme-pop{min-width:15em;padding-bottom:4px}

/* world-tree lead — everything else lives on its own page */
.wtline{margin:0 0 4px;font-size:12px}
.wtline a{display:inline-block;padding:5px 10px;border:1px solid var(--oz-border);background:var(--oz-surface);text-decoration:none}
.wtline a:hover{border-color:var(--oz-text)}
.wtline b{color:var(--oz-danger);font-weight:400}
.wtline .arr{color:var(--oz-dim);margin-left:8px}

.hero{padding:24px 0 40px}
.word{font-size:clamp(40px,13vw,72px);font-weight:600;letter-spacing:-.02em;line-height:1;margin-bottom:6px}
.cur{display:inline-block;width:.55em;height:.82em;background:currentColor;vertical-align:-.06em;margin-left:.06em;animation:blink 1.06s steps(1) infinite}
.gloss{color:var(--oz-dim);font-size:12px;margin-bottom:28px}
.gloss b{color:var(--oz-text);font-weight:400}

/* ── the tree — one drawing, governed motion ─────────────────────────────
   law: the tree is still unless something is true.
     wake   one pulse climbs the trunk, once — first sight, a world change
     heard  while held: pulses leave the trunk and walk outward, one after another
     rest   nothing moves. no ambient loop, no idle shimmer.
   every signal is normalised (pathLength=1), so short and long traces take
   the same time; every pass eases in and out. */
.ygg svg{display:block;width:100%;height:auto}
.ygg .base{fill:var(--oz-text);opacity:.88;transition:opacity .4s ease-in-out,fill .4s ease-in-out}
.ygg .sig{fill:none;stroke:var(--oz-dim);stroke-width:4;stroke-linecap:round;stroke-dasharray:.14 2;stroke-dashoffset:.14;opacity:0;transition:stroke .4s ease-in-out}
@keyframes pass{0%{stroke-dashoffset:.14;opacity:0;animation-timing-function:cubic-bezier(.45,0,.25,1)}12%{opacity:1}82%{opacity:1}100%{stroke-dashoffset:-1;opacity:0}}
.ygg.wake .sig.t{stroke:var(--oz-text);opacity:1;animation:pass 2.4s both}
.tree{position:relative;margin:0 -20px;border-top:1px solid var(--oz-border);border-bottom:1px solid var(--oz-border);background:var(--oz-surface);touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer}
.tree svg{aspect-ratio:1408/768;transition:filter .4s ease-in-out}
.tree.heard svg{filter:drop-shadow(0 0 14px color-mix(in srgb,var(--oz-active) 40%,transparent))}
.tree.heard .base{fill:var(--oz-active);opacity:1}
.tree.heard .sig{stroke:var(--oz-bg);animation:pass 2.2s infinite;animation-delay:calc(var(--i) * .28s)}
.cap{position:absolute;left:12px;bottom:10px;font-size:11px;padding:2px 6px;background:var(--oz-surface);border:1px solid var(--oz-border);transition:color .4s ease-in-out}
.cap i{display:inline-block;width:7px;height:7px;margin-right:6px;background:var(--oz-dim);vertical-align:0;transition:background .4s ease-in-out}
.tree.heard .cap{color:var(--oz-active)}
.tree.heard .cap i{background:var(--oz-active)}

.state{margin-top:28px;font-size:16px;line-height:1.45}
.state + p{margin-top:12px;color:var(--oz-dim)}
footer{border-top:1px var(--rule) var(--oz-border);padding:32px 0 48px;font-size:12px;color:var(--oz-dim);display:grid;gap:10px}
footer .lic{color:var(--oz-text)}
footer .row{display:flex;flex-wrap:wrap;gap:16px}

/* ── v0.9.1 pages ───────────────────────────────────────────────────────── */
.hb{text-decoration:none}
.say{font-size:clamp(20px,5.6vw,26px);line-height:1.3;margin:28px 0 14px;letter-spacing:-.01em}
.say + p{color:var(--oz-dim);margin-bottom:10px}
.lead p{margin-top:10px;color:var(--oz-dim)}
.lead b{color:var(--oz-text);font-weight:400}
.go{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.btn{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--oz-text);text-decoration:none;font-size:13px}
.btn.p{background:var(--oz-text);color:var(--oz-bg)}
.btn:hover{background:var(--oz-surface-hover)}
.btn.p:hover{background:var(--oz-text);opacity:.9}
.cap a{text-decoration:none}
.list{list-style:none;display:grid;gap:0;border-top:1px var(--rule) var(--oz-border)}
.list li{padding:12px 0;border-bottom:1px var(--rule) var(--oz-border);display:grid;grid-template-columns:7.5em 1fr;gap:4px 14px;align-items:baseline}
.list b{font-weight:400}
.list span{color:var(--oz-dim)}
.list a{text-decoration:none;display:contents}
.list a:hover b{text-decoration:underline;text-underline-offset:3px}
.tag{display:inline-block;font-size:10px;letter-spacing:.14em;padding:0 6px;border:1px solid var(--oz-active);color:var(--oz-active);vertical-align:2px;margin-left:6px}
.tag.ok{border-color:var(--oz-success);color:var(--oz-success)}
.films{display:grid;gap:14px}
.film{border:1px solid var(--oz-border);background:var(--oz-surface)}
.film video{display:block;width:100%;height:auto;aspect-ratio:9/16;max-height:78vh;object-fit:contain;background:#080810}
.film figcaption{padding:10px 12px;font-size:12px}
.film figcaption span{color:var(--oz-dim)}
.old{margin-top:18px;font-size:12px;color:var(--oz-dim)}
/* wider screens: two across, then three across in a row wider than the text column, so the captions stay readable */
@media (min-width:720px){.films{grid-template-columns:repeat(2,1fr)}.film video{max-height:none}}
@media (min-width:1000px){.films{grid-template-columns:repeat(3,1fr);width:min(1080px,94vw);margin-left:50%;transform:translateX(-50%)}}

/* an inner page */
.crumb{font-size:12px;color:var(--oz-dim);margin:8px 0 0}
.crumb a{color:var(--oz-dim)}
h1.t{font-size:22px;font-weight:600;line-height:1.25;margin:20px 0 8px;letter-spacing:-.01em}
h1.t + p{color:var(--oz-dim);margin-bottom:8px}
.in section{padding:28px 0}
.in h3{font-size:15px;font-weight:600;margin:0 0 10px}
.in p{margin:0 0 10px}
.in p.d,.in .d{color:var(--oz-dim)}
.in ul,.in ol{margin:0 0 12px 1.4em}
.in li{margin:4px 0}
.in li::marker{color:var(--oz-dim)}
code{font:inherit;color:var(--oz-success)}
.cmd{position:relative;margin:10px 0 14px;border:1px solid var(--oz-border);background:var(--oz-surface)}
.cmd .w{display:block;font-size:10px;letter-spacing:.2em;color:var(--oz-dim);padding:8px 12px 0}
.cmd pre{margin:0;padding:8px 12px 12px;font:inherit;font-size:12.5px;line-height:1.6;color:var(--oz-success);white-space:pre-wrap;word-break:break-all}
.cmd button{position:absolute;top:0;right:0;min-height:32px;padding:0 12px;border-left:1px solid var(--oz-border);border-bottom:1px solid var(--oz-border);font-size:11px;color:var(--oz-dim)}
.cmd button:hover{color:var(--oz-text)}
.see{border-left:2px solid var(--oz-active);padding:2px 0 2px 12px;margin:10px 0 14px}
.see b{font-weight:400;color:var(--oz-active)}
.limit{border-left:2px solid var(--oz-border);padding:2px 0 2px 12px;margin:10px 0;color:var(--oz-dim)}
table.steps{width:100%;border-collapse:collapse;font-size:13px;margin:8px 0 14px}
.steps th,.steps td{border-bottom:1px var(--rule) var(--oz-border);padding:10px 8px 10px 0;text-align:left;vertical-align:top}
.steps th{font-weight:400;color:var(--oz-dim);font-size:11px;letter-spacing:.14em}
.steps td:first-child{color:var(--oz-active);white-space:nowrap}
.steps td:last-child{color:var(--oz-dim)}
.next{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px;padding-top:16px;border-top:1px var(--rule) var(--oz-border);font-size:13px}
.next a{text-decoration:none}
.next a:hover{text-decoration:underline}
.os{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.os a{display:block;padding:12px;border:1px solid var(--oz-border);background:var(--oz-surface);text-decoration:none;text-align:center;font-size:13px}
.os a:hover,.os a[aria-current]{border-color:var(--oz-text)}
.os small{display:block;color:var(--oz-dim);font-size:11px;margin-top:2px}

@media (min-width:720px){.tree{margin:0;border:1px solid var(--oz-border)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.thm summary{list-style:none}
.thm summary::-webkit-details-marker{display:none}
.thm[open] summary{color:var(--oz-text);border-color:var(--oz-text);background:var(--oz-surface-hover)}

pre.tree-txt{font:inherit;font-size:12.5px;line-height:1.7;padding:14px;border:1px solid var(--oz-border);background:var(--oz-surface);overflow-x:auto;white-space:pre}
pre.tree-txt i{font-style:normal;color:var(--oz-dim)}
.in > p{margin:0 0 10px}
@media (max-width:560px){
  .steps thead{display:none}
  .steps tr{display:grid;grid-template-columns:1.8em 1fr;border-bottom:1px var(--rule) var(--oz-border)}
  .steps td{border:0;padding:10px 0 2px}
  .steps td:last-child{grid-column:2;padding:0 0 10px}
  .steps td:last-child::before{content:"→ "}
}
.cmd > pre:first-child{padding-top:38px}  /* no label row: room for the copy button */
.tree-map{display:grid;grid-template-columns:max-content 1fr;gap:6px 14px;padding:14px;border:1px solid var(--oz-border);background:var(--oz-surface);font-size:12.5px;line-height:1.55}
.tree-map .k{white-space:pre}
.tree-map .g{color:var(--oz-dim)}
.in > p.limit{margin:10px 0 12px}
.film.main{max-width:430px;margin:0 auto 34px}
.up{font-size:12px;letter-spacing:.2em;color:var(--oz-dim);margin:0 0 14px}
