/* The chamber at night, and the print of it by day. Anybody is Eurostile's grandchild with a real width
   axis, so a name can be crushed; B612 was drawn for an Airbus cockpit, so a readout stays legible. */
:root {
  color-scheme: light dark;
  --bg: #050608; --bg-2: #0a0d12; --panel: #0d1117; --ink: #eaeef5; --ink-2: #bcc4d2; --dim: #848d9d;
  --line: rgba(190, 205, 235, 0.16); --line-2: rgba(190, 205, 235, 0.34);
  --beam: #6aa0ff; --hot: #ffd21e; --hot-ink: #1a0011; --mag: #ff3d9a; --stage: #0a0d12; --hot-text: #ffd21e;
  --chamber-ink: 0;
  --display: "Anybody", "Arial Narrow", Arial, sans-serif;
  --text: "B612", "Helvetica Neue", Arial, sans-serif;
  --mono: "B612 Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 14px;

  --d-accent: var(--beam); --d-bg: var(--bg); --d-bg-2: var(--bg-2); --d-focus: var(--beam);
  --d-font-display: var(--display); --d-font-text: var(--text); --d-gutter: var(--gutter);
  --d-ink: var(--ink); --d-ink-2: var(--ink-2); --d-line: var(--line); --d-line-strong: var(--line-2); --d-muted: var(--dim);
  --d-night-ink: #eaeef5; --d-night-line: rgba(190, 205, 235, 0.3); --d-night-muted: #a7b0c0; --d-night-on: #6aa0ff; --d-night-on-ink: #050608;
  --d-read-measure: 66ch; --d-shadow: none; --d-sky-1: var(--bg-2); --d-sky-2: var(--bg); --d-surface: var(--panel);
  --d-space-1: 4px; --d-space-2: 8px; --d-space-4: 16px; --d-space-5: 24px; --d-space-7: 48px; --d-step--1: 0.875rem; --d-step-4: 2.2rem;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f1e8; --bg-2: #ebe7da; --panel: #fbf9f2; --ink: #14151a; --ink-2: #393c46; --dim: #62656f;
    --line: rgba(20, 22, 30, 0.16); --line-2: rgba(20, 22, 30, 0.36);
    --beam: #0b3fd6; --mag: #b3006a; --stage: #e8e4d6; --chamber-ink: 1; --hot-text: #a3005f;
  }
}
:root[data-theme="light"] {
  --bg: #f4f1e8; --bg-2: #ebe7da; --panel: #fbf9f2; --ink: #14151a; --ink-2: #393c46; --dim: #62656f;
  --line: rgba(20, 22, 30, 0.16); --line-2: rgba(20, 22, 30, 0.36);
  --beam: #0b3fd6; --mag: #b3006a; --stage: #e8e4d6; --chamber-ink: 1; --hot-text: #a3005f;
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }


@font-face { font-family: "Anybody"; src: url("/fonts/anybody.woff2") format("woff2-variations"), url("/fonts/anybody.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: "B612"; src: url("/fonts/b612.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url("/fonts/b612-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("/fonts/b612-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("/fonts/b612-mono-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font: 400 1rem/1.6 var(--text); background: var(--bg); color: var(--ink); overflow-x: clip; min-height: 100svh; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--beam); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; background: var(--hot); color: var(--hot-ink); padding: 8px 14px; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The ring: it runs around the edge of every page, and the beam on it is how far you've read. */
.ring { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.ring rect { fill: none; }
.ring .line { stroke: var(--line); stroke-width: 1; }
.ring .bunch { stroke: var(--beam); stroke-width: 2; stroke-linecap: round; }
.has-chamber .ring { display: none; }

.site-head { position: relative; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 18px var(--gutter) 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 0.86rem/1 var(--display); font-stretch: 150%; letter-spacing: 0.06em; text-transform: uppercase; margin-right: auto; white-space: nowrap; }
.brand svg { width: 20px; height: 20px; }
.tool-b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.tool-b svg { width: 20px; height: 20px; }
.tool-b:hover { background: var(--line); }
.go-play { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 17px; font: 700 0.78rem/1 var(--text); text-decoration: none; margin-left: 2px; white-space: nowrap; }
.go-play:hover { background: var(--ink); color: var(--bg); }
.site-menu { position: relative; }
.site-menu summary { list-style: none; cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu-panel { position: absolute; right: 0; top: 46px; min-width: 210px; padding: 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; display: grid; gap: 2px; z-index: 40; }
.site-menu-panel a { padding: 9px 12px; border-radius: 8px; text-decoration: none; font: 700 1rem/1.2 var(--text); }
.site-menu-panel a:hover { background: var(--line); }
.nav-wide { display: none; gap: 2px; margin-right: 8px; }
.nav-wide a { padding: 8px 11px; text-decoration: none; font: 700 0.84rem/1 var(--text); border-radius: 8px; }
.nav-wide a:hover { background: var(--line); }
@media (min-width: 900px) { .nav-wide { display: flex; } }
@media (max-width: 370px) { .brand { font-size: 0.74rem; } .tool-b { width: 36px; } }

.site-foot { position: relative; z-index: 2; margin-top: 72px; padding: 32px var(--gutter) 30px; border-top: 1px solid var(--line); }
.foot-inner { max-width: 1180px; margin: 0 auto; }
.lap { font: 700 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin: 0 0 22px; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin-bottom: 26px; }
.foot-nav a { padding: 6px 0; text-decoration: none; font-size: 0.94rem; }
.foot-nav a:hover { text-decoration: underline; }
@media (min-width: 760px) { .foot-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-credit { --credit-ink: var(--ink); --credit-muted: var(--ink-2); --credit-line: var(--line-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.site-credit-made { margin: 0; font-weight: 700; font-size: 0.95rem; }
.site-credit-made a { text-decoration: underline; text-decoration-color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.site-credit-social { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-credit-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); }
.site-credit-social a:hover { background: var(--line); color: var(--ink); }
.site-credit-social svg { width: 19px; height: 19px; }
.site-credit-sponsor { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 20px; text-decoration: none; font: 700 0.84rem/1 var(--text); }
.site-credit-sponsor:hover { background: var(--ink); color: var(--bg); }
.site-credit-sponsor svg { width: 16px; height: 16px; color: var(--mag); }
@media (min-width: 720px) { .site-credit-sponsor { margin-left: auto; } }
.fine { margin: 18px 0 0; font-size: 0.8rem; color: var(--dim); }
#theme-button { position: relative; }
.theme-tip { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--bg); font: 700 0.72rem/1 var(--text); white-space: nowrap; pointer-events: none; }
