@font-face { font-family: "Lora"; src: url("/assets/fonts/Lora-latin.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Galmuri11"; src: url("/assets/fonts/Galmuri11-latin.ttf") format("truetype"); font-display: swap; }

/* The page has a day, as the app does. Paper under the sun, indigo under the moon. */
:root, :root[data-phase="day"] {
  color-scheme: light;
  --bg: #fff8e8; --bg-2: #f6ecd4; --panel: #fffdf6;
  --ink: #3b2c4f; --ink-2: #5e4d78; --ink-3: #75648e;
  --edge: #3b2c4f; --lip: #b9a680; --shade: rgba(59, 44, 79, 0.2);
  --accent: #2f6fd0; --accent-ink: #ffffff; --accent-lip: #1d4a94;
  --wood: #b5763c; --wood-2: #8a5527; --wood-3: #d79a58;
  --ok: #17694a; --ok-bg: #d6f0dc; --hot: #a8401f; --hot-bg: #ffd9c7; --soft: #8a3a6b; --soft-bg: #f7d9ea;
  --gold: #ffb938;
}
:root[data-phase="dawn"] { --bg: #fff1e6; --bg-2: #fbe0d2; --accent: #c8436f; --accent-lip: #8a2649; --lip: #c9a08f; }
:root[data-phase="dusk"] { --bg: #fdeeda; --bg-2: #f8dcbd; --accent: #b3401c; --accent-lip: #7a2a0c; --lip: #c49a72; }
:root[data-phase="night"] {
  color-scheme: dark;
  --bg: #151129; --bg-2: #1b1634; --panel: #201a3e;
  --ink: #f4effe; --ink-2: #cdc4ee; --ink-3: #a79dd6;
  --edge: #0a0716; --lip: #0a0716; --shade: rgba(0, 0, 0, 0.35);
  --accent: #b69cff; --accent-ink: #1a1233; --accent-lip: #6f55c4;
  --wood: #5a3c5e; --wood-2: #3f2946; --wood-3: #7a5580;
  --ok: #8fe3b0; --ok-bg: #17302c; --hot: #ffb37a; --hot-bg: #3a2220; --soft: #ff9db8; --soft-bg: #33193a;
  --gold: #ffd98a;
}
:root {
  --f-title: "Lora", Georgia, serif;
  --f-px: "Galmuri11", "Cascadia Mono", monospace;
  --f-body: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
  --g: 3px;
  --lift: 0px;
  --gutter: max(24px, 6vw);
}
@property --bg { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --bg-2 { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --panel { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --edge { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --lip { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --accent-lip { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --wood { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --wood-2 { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --wood-3 { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --gold { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --ink-2 { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --ink-3 { syntax: "<color>"; inherits: true; initial-value: #808080; }
@property --accent-ink { syntax: "<color>"; inherits: true; initial-value: #808080; }
/* The palette changes in a few hard steps, like the sky's own bands. Ink flips in two so
   text never sits half way between dark and light. */
:root { transition: --bg 0.45s steps(4, jump-none), --bg-2 0.45s steps(4, jump-none), --panel 0.45s steps(4, jump-none), --edge 0.45s steps(4, jump-none), --lip 0.45s steps(4, jump-none), --accent 0.45s steps(4, jump-none), --accent-lip 0.45s steps(4, jump-none), --wood 0.45s steps(4, jump-none), --wood-2 0.45s steps(4, jump-none), --wood-3 0.45s steps(4, jump-none), --gold 0.45s steps(4, jump-none), --ink 0.45s steps(2, jump-none), --ink-2 0.45s steps(2, jump-none), --ink-3 0.45s steps(2, jump-none), --accent-ink 0.45s steps(2, jump-none); }

* { box-sizing: border-box; }
html { background: #151129; scrollbar-width: thin; scrollbar-color: var(--ink-3) #151129; }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--f-body); overflow-x: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
canvas, .pxl { image-rendering: pixelated; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
p { margin: 0; }
.px { font: 11px/1.45 var(--f-px); letter-spacing: 0.02em; }
.seen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The world: one sky fixed behind everything. Until the script draws it, a still of the
   same sky at dawn stands in. */
#sky { position: fixed; left: 0; top: 0; z-index: 0; width: 100vw; height: 100vh; translate: 0 calc(-1 * var(--lift)); background: url("/img/poster.png") 50% 100% / cover; }
@media (max-aspect-ratio: 1/1) { #sky { background-image: url("/img/poster-tall.png"); } }
.fore { position: fixed; left: 0; right: 0; bottom: 0; height: 16px; z-index: 5; pointer-events: none; translate: 0 calc(-1 * var(--lift));
  background: repeating-linear-gradient(90deg, var(--blade, #2a6a50) 0 4px, transparent 4px 12px) 0 100% / 100% 12px no-repeat, repeating-linear-gradient(90deg, transparent 0 8px, var(--blade, #2a6a50) 8px 12px, transparent 12px 28px) 0 100% / 100% 16px no-repeat, linear-gradient(var(--blade, #2a6a50), var(--blade, #2a6a50)) 0 100% / 100% 5px no-repeat; }
/* The name stands on its own paper plate, so no cloud can run into it. */
.sign { position: fixed; left: 24px; top: 16px; z-index: 30; margin: 0; padding: 12px 14px 13px; font: 600 21px/1 var(--f-title); color: var(--ink); text-decoration: none; background: var(--bg-2); box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--shade); transition: transform 0.2s steps(4, jump-none); }
/* When the footer lifts the last sign, the name plate and the time chip step out of its way. */
.lifted .sign { transform: translateY(-100px); }
.lifted .clock { visibility: hidden; }
.skip { position: fixed; left: 24px; top: 16px; z-index: 40; padding: 13px 16px; font-weight: 600; color: var(--ink); background: var(--panel); box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--shade); transform: translateY(-120px); }
.skip:focus { transform: none; }

/* Toby walks the meadow on wide screens. His art is 50 units, shown at the sky's own grain. */
.cat { position: fixed; left: 0; bottom: calc(-4 * var(--g)); width: calc(50 * var(--g)); height: calc(50 * var(--g)); margin-left: calc(-25 * var(--g)); z-index: 2; pointer-events: none; translate: var(--cx, 30vw) calc(-1 * var(--lift)); transition: translate 1.1s linear; display: none; }
.cat.left { scale: -1 1; }
.cat.walking { animation: walk 0.26s steps(1, end) infinite; }
/* Toby keeps a layer of his own, so the end of each walk does not repaint him into the page. */
.cat { will-change: translate; }
@keyframes walk { 0% { margin-bottom: 0; } 50% { margin-bottom: calc(2 * var(--g)); } }
@media (min-width: 900px) { .cat { display: block; } }
.perch { position: absolute; right: 16px; bottom: 100%; width: calc(50 * var(--g)); height: calc(50 * var(--g)); margin-bottom: calc(3px - 4 * var(--g)); pointer-events: none; }
@media (min-width: 900px) { .perch { display: none; } }

/* Each part of the day is a stretch of scroll. Its sign stands on the fixed meadow and
   comes up out of the grass when its hour arrives. */
.stop { height: 100vh; }
.stage { position: fixed; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--gutter); pointer-events: none; translate: 0 calc(-1 * var(--lift)); }
.stage[data-side="left"] { justify-content: flex-start; }
.stage[data-side="right"] { justify-content: flex-end; }
/* A sign on one side, and a picture standing on the other. */
.stage[data-side="split"] { justify-content: space-between; gap: 40px; }
.stage[data-side="split"] > .post { flex: none; }
.stage[data-side="split"] > .shot, .stage[data-side="split"] > .desk { flex: 0 1 var(--pw); min-width: 0; margin: 0; }
.post { position: relative; width: min(100%, var(--pw, 500px)); display: flex; flex-direction: column; align-items: center; pointer-events: auto; transform: translateY(calc(100% + 12px + 50 * var(--g))); transition: transform 0.7s var(--ease); }
.stop.on .post { transform: none; }
/* Each sign keeps a layer of its own, so the end of its slide does not paint it again into the page. */
.post { will-change: transform; }
/* Once after load every sign is drawn in place, unseen, so its first drawing is not paid
   mid-walk (landing.js, rehearse). It goes back with no slide. */
.rehearse .stop:not(.on) .post { opacity: 0; transition: none; pointer-events: none; }
.rehearse-up .stop:not(.on) .post { transform: none; }
.post.shot, .post.desk { --pw: 620px; transform: translateY(110vh); }
.post.shot { --pw: 760px; }
/* Pictures of the real app. Each waits, unloaded, until its stop is the next one along. */
.post.shot { display: none; }
.stop.near .post.shot { display: flex; }
.shot .board { display: flex; flex-direction: column; min-height: 0; }
.shot img { display: block; width: 100%; height: auto; min-height: 0; max-height: calc(100vh - 330px); object-fit: cover; object-position: 50% 0; background: var(--bg-2); box-shadow: 0 0 0 3px #0a0716; }
.shot figcaption, .desk figcaption { margin-top: 11px; padding: 10px 14px 11px; font-size: 16px; line-height: 1.4; color: var(--ink-2); background: var(--panel); box-shadow: 0 0 0 3px #0a0716; text-wrap: pretty; }
#dusk .shot { --pw: 700px; }
/* A capture is a button: it opens the same picture large, in a frame over the page. */
.zoom { position: relative; display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom:focus-visible { outline-offset: 2px; }
.zoom-tag { position: absolute; right: 9px; bottom: 9px; padding: 4px 8px 5px; font: 11px/1.45 var(--f-px); color: var(--ink); background: var(--panel); box-shadow: 0 0 0 3px #0a0716; }
.zoom:hover .zoom-tag { color: var(--accent-ink); background: var(--accent); }
.lightbox { padding: 0; border: 0; background: none; color: var(--ink); max-width: calc(100vw - 32px); max-height: none; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 7, 22, 0.8); }
.lightbox[open] { animation: lb-in 0.24s steps(4, jump-none); }
@keyframes lb-in { from { opacity: 0; transform: translateY(24px); } }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 3px 16px; }
.lb-bar p { padding: 6px 10px 7px; font: 11px/1.45 var(--f-px); color: #fff6e0; background: var(--wood-2); box-shadow: 0 0 0 3px #0a0716, inset 0 3px 0 var(--wood-3); }
.lb-view { max-width: 100%; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--bg-2); box-shadow: 0 0 0 3px #0a0716; }
.lb-view:focus-visible { outline-offset: 5px; }
.lb-view img { display: block; width: auto; max-width: none; height: min(var(--h, 760px), calc(100vh - 230px)); height: min(var(--h, 760px), calc(100dvh - 230px)); }
.lb-cap { width: 0; min-width: 100%; margin-top: 11px; padding: 10px 14px 11px; font-size: 16px; line-height: 1.4; color: var(--ink-2); background: var(--panel); box-shadow: 0 0 0 3px #0a0716; text-wrap: pretty; }
.board { position: relative; width: 100%; padding: 8px; background-color: var(--wood);
  background-image: repeating-linear-gradient(0deg, transparent 0 6px, rgba(10, 7, 22, 0.24) 6px 9px);
  box-shadow: -3px 0 0 #0a0716, 3px 0 0 #0a0716, 0 -3px 0 #0a0716, 0 3px 0 #0a0716, inset 0 3px 0 var(--wood-3), inset 0 -6px 0 var(--wood-2); }
.plate { position: relative; padding: 20px 22px 22px; background: var(--panel); color: var(--ink); box-shadow: 0 0 0 3px #0a0716; }
.legs { position: relative; width: 62%; height: 44px; }
.legs i { position: absolute; top: 0; bottom: 0; left: 0; width: 8px; background: var(--wood-2); box-shadow: -3px 0 0 #0a0716, 3px 0 0 #0a0716; }
.legs i + i { left: auto; right: 0; }
.plate h2, .plate h1 { margin: 0 0 10px; font: 600 30px/1.12 var(--f-title); letter-spacing: -0.015em; text-wrap: balance; }
/* Headings take focus only from script, so a screen reader reads the new state. No ring for that. */
.plate h2:focus-visible, .plate h1:focus-visible { outline: none; }
.plate p { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.plate p + p { margin-top: 10px; }
.plate strong { color: var(--ink); font-weight: 600; }
.plate .fine, #morning .plate .fine { margin-top: 12px; font: 16px/1.45 var(--f-body); color: var(--ink-2); }

/* A paper note pinned over the top edge of a sign. */
.note { position: relative; margin-top: 16px; padding: 12px 14px 13px; background: var(--bg-2); box-shadow: 0 0 0 3px var(--edge); display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; }
.note::before { content: ""; position: absolute; left: 50%; top: -8px; width: 9px; height: 9px; margin-left: -4px; background: var(--accent); box-shadow: 0 0 0 3px var(--edge); }
.note p { color: var(--ink); font-size: 16px; line-height: 1.4; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 0; background: var(--panel); color: var(--ink); font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  box-shadow: -3px 0 0 var(--edge), 3px 0 0 var(--edge), 0 -3px 0 var(--edge), 0 3px 0 var(--edge), 0 8px 0 var(--lip), -3px 5px 0 var(--lip), 3px 5px 0 var(--lip);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(5px); box-shadow: -3px 0 0 var(--edge), 3px 0 0 var(--edge), 0 -3px 0 var(--edge), 0 3px 0 var(--edge); }
.btn.go { background: var(--accent); color: var(--accent-ink); --lip: var(--accent-lip); min-height: 52px; padding: 0 22px; font-size: 16.5px; }
.btn.go:hover { filter: brightness(1.08); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: default; filter: saturate(0.5); transform: none; }
.link { border: 0; background: none; min-height: 44px; padding: 10px 2px; color: var(--ink-2); font-size: 16px; line-height: 1.3; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 8px; }
.link:hover { color: var(--ink); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; padding-bottom: 8px; }
/* The way on to the next hour, so the keyboard can walk the whole day. */
.acts.on { margin-top: 8px; padding-bottom: 0; }
/* A link inside a sentence keeps its line, and still gives a thumb 44px to land on. */
.link.in, .plate .fine a, .faq dd a { display: inline-block; min-height: 0; padding: 12px 0; margin: -12px 0; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 9px 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.plate .chips + p { margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px; font: 11px/1.45 var(--f-px); background: var(--bg-2); color: var(--ink-2); box-shadow: 0 0 0 2px var(--edge); }
.chip b { font-weight: 400; color: var(--ink); }
.chip.ok { color: var(--ok); background: var(--ok-bg); }
.chip.partial { color: var(--soft); background: var(--soft-bg); }

/* The day ruler: where you are, and the way to anywhere else. */
.ruler { position: fixed; top: 16px; right: 24px; width: 510px; z-index: 30; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: var(--bg-2); box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--shade); }
.ruler ol { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; }
.ruler a { display: block; height: 46px; padding-top: 22px; text-align: center; text-decoration: none; font: 11px/1.45 var(--f-px); color: var(--ink-2); position: relative; }
.ruler a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--c); box-shadow: inset -3px 0 0 var(--edge), 0 3px 0 var(--edge); }
.ruler li:last-child a::before { box-shadow: 0 3px 0 var(--edge); }
.ruler a:hover { color: var(--ink); background: var(--panel); }
.ruler a[aria-current="true"] { color: var(--ink); }
.ruler a[aria-current="true"]::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 18px; height: 3px; margin-left: -9px; background: var(--ink); }
.ruler a:focus-visible { outline-offset: -3px; z-index: 1; }
/* The needle is the slider's handle. Dragging it, or the ruler under it, scrubs the day. */
.needle { position: absolute; left: -3px; top: -7px; width: 6px; height: 26px; background: var(--gold); box-shadow: 0 0 0 3px var(--edge); z-index: 2; cursor: ew-resize; touch-action: none; }
.needle::before { content: ""; position: absolute; left: -19px; right: -19px; top: -9px; bottom: -9px; }
.needle:focus-visible { outline-offset: 6px; }
.ruler.scrubbing, .ruler.scrubbing a { cursor: ew-resize; }
.clock { pointer-events: none; position: absolute; left: 50%; top: 62px; transform: translateX(-50%); padding: 4px 7px 5px; white-space: nowrap; background: var(--panel); color: var(--ink); box-shadow: 0 0 0 3px var(--edge); font: 11px/1.45 var(--f-px); font-variant-numeric: tabular-nums; }

/* Morning: the name stands in the sky itself. */
.hero-title { position: fixed; left: 0; right: 0; top: 19vh; margin: 0; padding: 0 var(--gutter); text-align: center; font: 600 clamp(52px, 8vw, 96px)/1 var(--f-title); letter-spacing: -0.025em; color: #fff; z-index: 3; pointer-events: none;
  text-shadow: -3px 0 0 #0a0716, 3px 0 0 #0a0716, 0 -3px 0 #0a0716, 0 3px 0 #0a0716, -3px -3px 0 #0a0716, 3px -3px 0 #0a0716, -3px 3px 0 #0a0716, 3px 3px 0 #0a0716, 3px 9px 0 rgba(10, 7, 22, 0.45);
  transition: opacity 0.4s steps(4, jump-none), transform 0.6s var(--ease); }
:root:has(#morning.on) .sign { visibility: hidden; }
.stop:not(.on) .hero-title { opacity: 0; transform: translateY(-28px); }
#morning .post { --pw: 560px; }
#morning .plate p { font: 500 22px/1.35 var(--f-title); color: var(--ink); }
.arrow { width: 14px; height: 10px; flex: none; }

/* Afternoon: a drawn desktop. Its screen is a hole in a frame, so the live sky is the
   wallpaper. A window can be laid over it, to show the wallpaper resting underneath. */
.screen { position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: calc(100vh - 340px); overflow: hidden; border: 12px solid #2a2440; box-shadow: 0 0 0 3px #0a0716, inset 0 0 0 3px #0a0716, inset 0 9px 0 rgba(10, 7, 22, 0.16); }
.desk figcaption { margin-top: 3px; }
.stand { width: 190px; height: 44px; background: linear-gradient(#2a2440, #2a2440) 50% 0 / 44px 100% no-repeat; box-shadow: none; position: relative; }
.stand i { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #2a2440; box-shadow: 0 0 0 3px #0a0716; }
.stand::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 12px; width: 44px; margin-left: -22px; box-shadow: -3px 0 0 #0a0716, 3px 0 0 #0a0716; }
.icons { position: absolute; left: 14px; top: 16px; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.icons li { display: grid; justify-items: center; gap: 3px; width: 56px; }
.icons svg { width: 32px; height: 32px; }
.icons span { font: 11px/1.45 var(--f-px); color: #fff; padding: 0 4px 1px; background: #1e1740; }
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #1e1740; box-shadow: 0 -3px 0 #0a0716; }
.taskbar i { width: 16px; height: 16px; background: #6f55c4; }
.taskbar i.first { background: #ffd98a; margin-right: 6px; }
.taskbar i:nth-child(3) { background: #8cc8f5; } .taskbar i:nth-child(4) { background: #ff9db8; }
.taskbar span { margin-left: auto; font: 11px/1.45 var(--f-px); color: #f4effe; font-variant-numeric: tabular-nums; }
.cover { position: absolute; left: 24%; right: 5%; top: 9%; bottom: 52px; background: var(--panel); box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--shade); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.36s steps(8, jump-none), visibility 0s 0.36s; display: flex; flex-direction: column; }
.cover.on { clip-path: inset(-20px -20px -20px -20px); visibility: visible; transition: clip-path 0.36s steps(8, jump-none); }
.cover .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--bg-2); box-shadow: 0 3px 0 var(--edge); font: 11px/1.45 var(--f-px); color: var(--ink-2); }
.cover .bar i { width: 9px; height: 9px; background: var(--ink-3); margin-left: 3px; }
.cover .bar span { margin-right: auto; }
.cover .body { flex: 1; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-2); background: radial-gradient(var(--bg-2) 1.5px, transparent 1.5px) 0 0 / 12px 12px; }
.cover .body p { max-width: 30ch; font: 500 20px/1.35 var(--f-title); color: var(--ink); background: var(--panel); padding: 6px 10px; }

/* Night: two windows set in a wooden wall, each with a sky running in it. */
#night .post { --pw: 1108px; }
#night .plate { padding: 14px 20px 16px; }
#night .plate h2 { margin-bottom: 6px; }
.wins { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 16px; margin-top: 8px; }
.win { margin: 12px 12px 0; width: 512px; }
.pane { position: relative; overflow: hidden; width: 512px; height: 288px; background: #0d0b1e; }
.pane { box-shadow: 0 0 0 3px #0a0716, 0 0 0 9px var(--wood-3), 0 0 0 12px #0a0716; }
.pane canvas { position: absolute; left: 50%; }
/* Until a sky has drawn its first frame, a still of it stands in its pane. */
.stop.near .pane:has(.hollow) { background: #0d0b1e url("/img/sky-hollow.webp") 50% 50% / auto 432px no-repeat; image-rendering: pixelated; }
.stop.near .pane:has(.rooftop) { background: #0d0b1e url("/img/sky-rooftop.png") 50% 100% / auto 288px no-repeat; image-rendering: pixelated; }
.pane .hollow { top: 50%; translate: -50% -50%; }
.pane .rooftop { bottom: 0; translate: -50% 0; }
.win figcaption { margin: 12px -18px 0; padding: 6px 10px 7px; text-align: center; font: 11px/1.45 var(--f-px); color: #fff6e0; background: var(--wood-2); box-shadow: 0 0 0 3px #0a0716, inset 0 3px 0 var(--wood-3); }
@media (max-width: 1239px) { #night .post { --pw: 852px; } .win, .pane { width: 384px; } .pane { height: 216px; } .stop.near .pane:has(.hollow) { background-size: auto 216px; } }

/* The last stop: a lantern for early access. */
#lantern .post { --pw: 470px; }
.rest-lamp { position: absolute; right: 22px; bottom: 100%; margin-bottom: calc(3px - 7 * var(--g)); pointer-events: none; }
.rest-lamp.gone { visibility: hidden; }
.field { display: grid; gap: 5px; margin-top: 12px; }
.field > span { font-size: 16px; font-weight: 600; color: var(--ink); }
.field > span small { font-weight: 400; font-size: 16px; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 9px 11px; border: 0; background: var(--bg); color: var(--ink); box-shadow: 0 0 0 3px var(--edge), inset 0 3px 0 var(--shade); caret-color: var(--accent); resize: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 3px; }
.field [aria-invalid="true"] { box-shadow: 0 0 0 3px var(--hot), inset 0 3px 0 var(--shade); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.says { margin-top: 8px; padding: 8px 10px 9px; font-size: 16px; line-height: 1.4; color: var(--hot); background: var(--hot-bg); box-shadow: 0 0 0 3px var(--hot); }
.says.plain { margin-top: 6px; padding: 0; background: none; box-shadow: none; }
/* Cloudflare Turnstile mounts here. The managed widget is 300 by 65. */
.turnstile-slot { max-width: 100%; min-height: 65px; margin-top: 14px; }
.sky-lamp { position: fixed; left: 72vw; top: 19vh; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.5s steps(4, jump-none); }
.sky-lamp.up { opacity: 1; }
.sky-lamp.rising { transition: transform 5.5s cubic-bezier(0.16, 0.7, 0.3, 1), opacity 0s; }
.sky-lamp canvas { display: block; }
.sky-lamp.up:not(.rising) canvas { animation: bob 6s steps(4, end) infinite; }
.sky-lamp.rising canvas { animation: sway 1.6s steps(4, end) infinite; }
@keyframes bob { 50% { translate: 0 calc(2 * var(--g)); } }
@keyframes sway { 25% { translate: calc(-1 * var(--g)) 0; } 75% { translate: var(--g) 0; } }

/* Under the meadow, at the end of the night. */
.ground { position: relative; z-index: 6; color: #e6dffa; background: #1e1740; }
.ground .in { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 40px; padding: 30px var(--gutter) 34px; }
.ground p { font-size: 16px; text-shadow: 0 2px 0 #151129, 2px 0 0 #151129, -2px 0 0 #151129, 0 -2px 0 #151129; }
.ground .big { margin: 0; font: 500 22px/1.3 var(--f-title); color: #fff; flex-basis: 100%; text-shadow: 0 2px 0 #151129, 2px 0 0 #151129, -2px 0 0 #151129, 0 -2px 0 #151129; }
.ground h2.big { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; }
.ground a { color: #fff; }
.ground a:focus-visible { outline-color: #ffd98a; }
.ground ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 16px; text-shadow: 0 2px 0 #151129, 2px 0 0 #151129, -2px 0 0 #151129, 0 -2px 0 #151129; }
.ground li a { display: inline-block; padding: 12px 0; }
.faq { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px 48px; margin: 12px 0 26px; font-size: 16px; text-shadow: 0 2px 0 #151129, 2px 0 0 #151129, -2px 0 0 #151129, 0 -2px 0 #151129; }
.faq dt { font: 600 19px/1.3 var(--f-title); color: #ffd98a; margin-bottom: 4px; }
.faq dd { margin: 0; max-width: 46ch; }

/* The invite page is one sign at dawn, in ordinary page flow so a long sign can scroll. */
.door { position: relative; z-index: 3; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; justify-content: center; padding: 120px var(--gutter) 0; }
.door .post { --pw: 560px; transform: none; }
.door .post .legs { height: 52px; }
.door .plate h1 { font-size: 36px; margin-bottom: 8px; }
.door .btn.go { min-height: 64px; padding: 0 28px; font-size: 19px; width: 100%; }
.door .cat { --cx: 24vw; }
.spin { display: inline-grid; grid-template-columns: repeat(3, 9px); gap: 6px; margin-top: 18px; }
.spin i { height: 9px; background: var(--ink-3); animation: blink 0.9s steps(1, end) infinite; }
.spin i:nth-child(2) { animation-delay: 0.3s; } .spin i:nth-child(3) { animation-delay: 0.6s; }
@keyframes blink { 0%, 100% { background: var(--ink-3); } 33% { background: var(--accent); } }
details.more { margin-top: 22px; box-shadow: 0 -3px 0 var(--bg-2); }
details.more summary { display: flex; align-items: center; gap: 10px; padding: 14px 2px 6px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; color: var(--ink-2); }
details.more summary::-webkit-details-marker { display: none; }
details.more summary:hover { color: var(--ink); }
details.more summary svg { width: 10px; height: 14px; flex: none; transition: rotate 0.15s steps(2, jump-none); }
details.more[open] summary svg { rotate: 90deg; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 10px 0 0; font-size: 16px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; color: var(--ink); min-width: 0; font-variant-numeric: tabular-nums; }
.facts code { font: 13px/1.5 "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.steps { margin: 8px 0 0; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.steps li { padding-left: 4px; }
.steps li + li { margin-top: 4px; }
.plate .more h2 { margin: 20px 0 0; font: 600 18px/1.25 var(--f-title); color: var(--ink); }
.more h2 + p { margin-top: 6px; font-size: 16px; }
.plate .sample { display: inline-block; margin: 10px 0 0; padding: 3px 7px 4px; font: 11px/1.45 var(--f-px); color: #f4effe; background: #151129; }
.steps + p { margin-top: 12px; font-size: 16px; }

/* Pages that are one sign: the 404 stands at night, the privacy page is a long read. */
#sky.dark { background: #151129; }
.kicker { margin-bottom: 8px; color: var(--ink-2); }
.paper .post { --pw: 680px; }
.paper .plate { padding: 28px 30px 26px; }
.paper .plate h2 { margin: 28px 0 8px; font-size: 21px; }
.paper .plate ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); max-width: 62ch; }
.paper .plate li { padding-left: 4px; }
.paper .plate li + li { margin-top: 8px; }
.paper .plate ul + p { margin-top: 12px; }
.paper code { font: 13px/1.5 "Cascadia Mono", Consolas, monospace; color: var(--ink); }

@media (max-width: 899px) {
  :root { --gutter: 16px; }
  .sign { display: none; }
  .ruler { left: 16px; right: 16px; top: 12px; width: auto; }
  .ruler a { height: 44px; }
  .clock { top: 58px; }
  /* Over the footer the ruler stands on a band of night ground, so no line of text runs under it.
     The band waits just above the footer, clipped away, and sticks under the ruler once the
     footer's top passes it. */
  .ground { display: flow-root; overflow: clip; }
  .ground::before { content: ""; position: sticky; top: 0; z-index: 1; display: block; height: 104px; margin-top: -104px; background: #1e1740; box-shadow: 0 3px 0 #0a0716; pointer-events: none; }
  .hero-title { top: 17vh; }
  /* Every sign stands clear of the ruler and its time chip. A sign taller than the room
     left keeps its place and scrolls inside its own paper. */
  .stage { padding-top: 104px; }
  .post { max-height: 100%; }
  /* As the footer lifts the last sign, it goes under an edge below the ruler, not under the ruler. */
  .lifted .stop.on .stage { clip-path: inset(calc(var(--lift) + 66px) 0 0 0); }
  .board { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
  .legs, .wins { flex: none; }
  .plate { min-height: 0; padding: 16px 16px 18px; overflow-y: auto; scrollbar-width: thin; }
  #night .board { overflow-y: auto; scrollbar-width: thin; }
  #night .plate { flex: none; overflow: visible; }
  .plate h2, .plate h1 { font-size: 25px; }
  .legs { height: 26px; }
  #morning .plate p { font-size: 19px; }
  .note { grid-template-columns: 1fr; }
  /* On a phone the picture stands above its sign, and gives way when the sign is tall. */
  .stage[data-side="split"] { flex-direction: column; justify-content: flex-end; align-items: center; gap: 14px; }
  .stage[data-side="split"] > .post { flex: 0 1 auto; min-height: 0; }
  .stage[data-side="split"] > .shot, .stage[data-side="split"] > .desk { order: -1; flex: 0 1000 auto; min-height: 136px; width: 100%; }
  .shot .legs, .desk .stand, .stage[data-side="split"] .perch { display: none; }
  .shot .board { padding: 6px; }
  .shot figcaption, .desk figcaption { padding: 8px 10px 9px; }
  /* The drawn desktop at half its size: every part whole, each pixel a whole pixel. Its
     note stands beside it, so the screen can have the whole height. */
  .stage[data-side="split"] > .desk { flex: 0 1000 140px; min-height: 104px; flex-direction: row; justify-content: center; gap: 10px; }
  .screen { flex: none; width: auto; max-width: none; height: 100%; max-height: 36vw; border-width: 6px; }
  .desk figcaption { flex: 0 1 150px; margin-top: 0; }
  .cover .bar i { width: 6px; height: 6px; }
  .desk .wide { display: none; }
  .icons { left: 6px; top: 6px; bottom: 23px; gap: 6px 8px; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 16px); }
  .icons li { width: 16px; }
  .icons svg { width: 16px; height: 16px; }
  .icons span, .cover .body p { display: none; }
  .taskbar { height: 17px; gap: 4px; padding: 0 5px; }
  .taskbar i { width: 8px; height: 8px; }
  .taskbar i.first { margin-right: 3px; }
  .cover { left: 34px; right: 6px; top: 6px; bottom: 26px; }
  .cover .bar { padding: 2px 6px; }
  .cover .body { padding: 0; }
  .wins { grid-template-columns: auto; gap: 4px; }
  .win, .pane { width: min(318px, calc(100vw - 72px)); } .pane { height: 144px; }
  .stop.near .pane:has(.hollow) { background-size: auto 216px; }
  .stop.near .pane:has(.rooftop) { background-size: auto 144px; }
  .lightbox { max-width: calc(100vw - 16px); }
  .lb-cap { padding: 8px 10px 9px; }
  .win { margin-top: 10px; }
  .win figcaption { margin-top: 10px; padding: 3px 10px 4px; }
  .field { margin-top: 9px; }
  .acts { margin-top: 16px; }
  .sky-lamp { left: 68vw; top: 15vh; }
  .door { padding-top: 150px; }
  .door .plate h1 { font-size: 29px; }
  .paper .plate { padding: 20px 18px 20px; }
  .door .btn.go { white-space: normal; text-align: center; line-height: 1.2; padding: 10px 16px; }
  .ground .in { padding-block: 22px 26px; }
}
/* A short phone has room for the sign and not for the picture beside it. */
@media (max-width: 899px) and (max-height: 560px) {
  .stop .stage[data-side="split"] > .shot, .stage[data-side="split"] > .desk, #morning .perch { display: none; }
  .hero-title { top: 100px; font-size: 44px; }
}
@media (max-height: 700px) and (min-width: 900px) { .legs { height: 22px; } .hero-title { top: 15vh; font-size: 64px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  :root { transition-duration: 0.18s !important; }
  html { scroll-behavior: auto; }
}
