/* ── Dust — particles to page ─────────────────────────────────────────── */
/* Self-hosted: a variable woff2 covers both weights, and the copy no longer
   depends on fonts.googleapis.com being reachable to become readable. */
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400 500;font-display:swap;src:url(./vendor/jetbrains-mono-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--paper:#08080a;--ink:#f0eee9;--mute:#8b8983;--col:640px;--font:"JetBrains Mono",ui-monospace,Menlo,monospace}
@media (prefers-color-scheme:light){:root{--paper:#f7f6f3;--ink:#141416;--mute:#8a887f}}
*,*::before,*::after{box-sizing:border-box}
html{scrollbar-gutter:stable}
html,body{margin:0;padding:0}
body{background:var(--paper);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.72;letter-spacing:-0.01em;-webkit-font-smoothing:antialiased}
::selection{background:var(--ink);color:var(--paper)}
a{color:inherit;text-decoration:none}
:focus-visible{outline:1px solid var(--ink);outline-offset:4px}

/* ── Content-first ────────────────────────────────────────────────────
 * The copy is visible in the default state, so a failure anywhere in the
 * dust pipeline costs the effect and nothing else. dust-mode is opt-in: an
 * inline probe adds it before first paint only once it knows WebGL exists
 * and motion is welcome, and dust.js drops it again if anything later
 * fails. Everything below is the hidden state — it only applies under it.
 * ─────────────────────────────────────────────────────────────────────── */
.gl,.comet{display:none}
html.dust-mode .gl{display:block;position:fixed;inset:0;z-index:1}
html.dust-mode .comet{display:block}
.gl canvas{display:block;width:100%;height:100%}

/* ── Gate: only a hint. The name itself is dust. ─────────────────────── */
.gate{display:none;position:fixed;left:0;right:0;bottom:11vh;z-index:4;justify-items:center;gap:0;background:none;border:0;font:inherit;color:var(--mute);cursor:pointer;-webkit-user-select:none;user-select:none;opacity:0}
html.dust-mode .gate{display:grid}
html.dust-mode body.is-closed{overflow:hidden;height:100%}
.gate-hint{font-size:11px;letter-spacing:0.3em;text-transform:uppercase}
.gate-sub{font-size:10px;letter-spacing:0.16em;color:var(--mute);opacity:.55}

/* ── Comet streak ───────────────────────────────────────────────────── */
.comet{position:fixed;top:0;left:0;z-index:2;height:1px;pointer-events:none;opacity:0;transform-origin:0 50%;background:linear-gradient(90deg,transparent 0%,color-mix(in oklab,var(--ink) 18%,transparent) 45%,var(--ink) 96%,var(--ink) 100%)}
.comet::after{content:"";position:absolute;right:-1px;top:-1px;width:3px;height:3px;border-radius:50%;background:var(--ink)}


/* ── Page: label gutter, no rules, whitespace only ──────────────────── */
.page{position:relative;z-index:3;max-width:var(--col);margin:0 auto;padding:14vh 32px 12vh}
html.dust-mode .page{opacity:0;pointer-events:none}
html.dust-mode .page[data-open]{opacity:1;pointer-events:auto}

.head{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:0 0 8vh}
h1{font-size:15px;font-weight:400;margin:0;letter-spacing:0.06em;white-space:nowrap}
.dim{color:var(--mute);font-size:11px;letter-spacing:0.14em;text-transform:uppercase;white-space:nowrap}

.r{margin:0 0 3.6vh}
.r p{margin:0;text-align:justify;text-justify:inter-word;hyphens:none;overflow-wrap:break-word}
.mark{border-bottom:1px solid var(--mute);transition:border-color 180ms ease,color 180ms ease}
.mark:hover{border-color:var(--ink)}
.key{white-space:nowrap}
.ic{display:inline-block;width:0.86em;height:0.86em;margin-right:5px;vertical-align:-0.08em;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:butt;stroke-linejoin:miter;shape-rendering:crispEdges;opacity:.55;transition:opacity 180ms ease}
.key:hover .ic{opacity:1}

.foot{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin-top:5vh;font-size:11px;letter-spacing:0.18em;text-transform:uppercase;color:var(--mute)}
/* Nothing to collapse back into unless the gate is running the show. */
.collapse{display:none;background:none;border:0;padding:0;font:inherit;letter-spacing:inherit;text-transform:inherit;color:var(--mute);cursor:pointer;width:fit-content;transition:color 160ms ease}
html.dust-mode .collapse{display:block}
html.dust-mode h1,html.dust-mode .dim,html.dust-mode .r,html.dust-mode .foot{opacity:0}
.collapse:hover{color:var(--ink)}

@media (max-width:680px){
  .page{padding:12vh 22px 10vh}
  .head{flex-direction:column;gap:4px;margin-bottom:6vh}
}

/* No static-reveal class any more — the readable page IS the default state. */
