/* thirdflower — the Wall. A single dark world: a concrete wall at night. */
@font-face { font-family: "Sedgwick Ave Display"; font-display: block; src: url("/assets/fonts/sedgwick-ave-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Reenie Beanie"; font-display: swap; src: url("/assets/fonts/reenie-beanie-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Allerta Stencil"; font-display: swap; src: url("/assets/fonts/allerta-stencil-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #151417; --ink: #efeae2; --dim: #8d8780; --line: #45403c;
  --neon: #ff2bd6; --cyan: #25f4ee; --uv: #c9a6ff;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 12px/1.4 var(--mono); overflow: hidden; }
body.no-js { overflow: auto; }

canvas#wall { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
canvas#wall:active { cursor: grabbing; }

.ui { position: fixed; z-index: 3; display: flex; gap: 10px; align-items: center; left: 16px; right: 16px; }
.ui.top { top: calc(14px + env(safe-area-inset-top, 0px)); pointer-events: none; }
.ui.bottom { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); justify-content: space-between; }
.tagline, .hint { color: var(--dim); letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; }
.hint { letter-spacing: .06em; text-transform: none; }

button { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(24, 22, 26, .75); border: 1px solid var(--line); padding: 11px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
button:hover { border-color: var(--neon); }
button[aria-pressed="true"] { color: #1a0633; background: var(--uv); border-color: var(--uv); box-shadow: 0 0 22px rgba(201, 166, 255, .55); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* The accessible index: hidden until it is focused, and always shown without JavaScript. */
.skip { position: absolute; left: -9999px; z-index: 6; }
.skip:focus { left: 16px; top: 12px; background: var(--bg); color: var(--ink); padding: 8px 12px; border: 1px solid var(--line); }
.index { position: fixed; z-index: 5; left: 16px; right: 16px; top: calc(48px + env(safe-area-inset-top, 0px)); max-width: 420px;
  background: rgba(15, 14, 17, .94); border: 1px solid var(--line); padding: 18px 20px; clip-path: inset(50%); height: 1px; overflow: hidden; }
.index:focus, .index:focus-within, body.no-js .index { clip-path: none; height: auto; }
body.no-js .index { position: static; margin: 64px 16px; }
.index h1 { margin: 0 0 4px; font: 400 28px/1.1 "Sedgwick Ave Display", cursive; color: var(--neon); }
.index p { margin: 0 0 14px; color: var(--dim); }
.index ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13px; }
.index a { color: var(--ink); }
.index span { color: var(--dim); }
body.no-js canvas#wall, body.no-js .ui { display: none; }
