/* a reading room. the page is one lit box, every section is film hung on it; the gaps between films are the light */
:root { --room: #0a0d12; --film: #020406; --lit: #e9f3fd; --bone: #dcebfb; --dim: #8fb0d2; --wax: #ffd84a; --mono: "Sometype Mono", ui-monospace, Menlo, monospace; --tall: "League Gothic", "Arial Narrow", sans-serif; --gap: 12px; }
* { box-sizing: border-box; }
html { background: var(--room); color: var(--bone); font: 400 16px/1.4 var(--mono); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
h1, h2, p, ol, form { margin: 0; padding: 0; font-weight: inherit; } ol { list-style: none; } a { color: inherit; } canvas { display: block; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { background: var(--wax); color: #000; } :focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; }
button, input { font: inherit; color: inherit; border-radius: 0; } button { cursor: pointer; background: none; border: 0; padding: 0; }
.q { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; } .q:hover { color: var(--wax); }
.key { min-height: 46px; padding: 0 22px; background: var(--bone); color: var(--film); font-weight: 600; } .key:hover { background: var(--wax); }

.rail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 26px; padding: 0 22px; min-height: 64px; background: linear-gradient(#161b23, #0a0d12); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; } .brand svg { width: 34px; height: 34px; } .brand b { font: 400 34px/1 var(--tall); letter-spacing: .01em; }
.rail form { display: flex; align-items: stretch; gap: 0; min-width: 0; } .rail input { flex: 0 1 400px; min-width: 0; height: 42px; border: 0; background: #000; box-shadow: inset 0 0 0 1px #3b4a5e; padding: 0 14px; font-size: 16px; text-overflow: ellipsis; } .rail input::placeholder { color: var(--dim); opacity: 1; } .rail form > button { height: 42px; padding: 0 20px; background: var(--lit); color: #05080c; font-weight: 600; } .rail form > button:hover { background: var(--wax); }
#picks { display: flex; gap: 16px; padding-left: 20px; align-items: center; overflow: hidden; white-space: nowrap; } #picks button { min-height: 40px; text-decoration: underline; text-underline-offset: 4px; } #picks button:hover, #picks button[aria-pressed="true"] { color: var(--wax); }
.rail nav { display: flex; gap: 20px; align-items: center; } .rail nav a, .rail nav button { min-height: 40px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; } .rail nav button:hover, .rail nav a:hover { color: var(--wax); }

.box { position: relative; background: repeating-linear-gradient(0deg, #f6fbff 0 180px, #dceafa 320px 420px, #f6fbff 600px); padding: var(--gap); display: grid; gap: var(--gap); animation: tube 1.5s steps(1) 1; }
@keyframes tube { 0% { filter: brightness(.06); } 9% { filter: brightness(1.05); } 13% { filter: brightness(.12); } 27% { filter: brightness(.9); } 31% { filter: brightness(.2); } 36% { filter: brightness(1.1); } 44% { filter: brightness(.7); } 50%, 100% { filter: none; } }
.film { position: relative; background: var(--film); border-radius: 9px; overflow: hidden; min-width: 0; box-shadow: 0 2px 9px #0f2a4a59; }
.view { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: var(--gap); height: calc(100svh - 64px - var(--gap)); min-height: 690px; }
.pan canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; } #pan:focus-visible { outline-offset: -5px; }
.over { position: absolute; left: 22px; right: 22px; bottom: 12px; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; pointer-events: none; } .over > * { pointer-events: auto; } #state { font-size: 14px; color: var(--dim); margin-right: auto; }
.tf, .modes { display: flex; } .tf button, .modes button { min-height: 38px; min-width: 46px; padding: 0 12px; font-size: 14px; color: var(--dim); box-shadow: inset 0 0 0 1px #33455c; margin-left: -1px; background: #02040699; } .tf button:hover, .modes button:hover { color: var(--bone); } .tf button[aria-pressed="true"], .modes button[aria-pressed="true"] { background: var(--bone); color: var(--film); }
.plate { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; } .lab { padding: 13px 20px 9px; font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #plate { width: 100%; height: 100%; min-height: 0; } .modes { padding: 8px 20px 12px; } .modes button { flex: 1; }
.report { padding: 14px 20px 18px; border-top: 1px solid #1f2d40; display: grid; gap: 7px; align-content: start; min-height: 250px; } .report h3 { margin: 0 0 4px; font: 400 clamp(27px, 2.5vw, 38px)/1.02 var(--tall); color: var(--bone); letter-spacing: .005em; } .report h3 em { font-style: normal; color: var(--wax); } .report div { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; } .report div > :first-child { color: var(--dim); } .report div > :last-child { text-align: right; white-space: nowrap; } .report a { text-underline-offset: 3px; } .report canvas { width: 100%; height: 46px; margin-top: 4px; } .report .none { color: var(--dim); font-size: 15px; }
.twins { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .92fr); gap: var(--gap); } .tw { display: block; text-align: left; width: 100%; } .tw canvas { width: 100%; height: clamp(380px, 40vw, 560px); } .tw .cap { position: absolute; left: 20px; right: 20px; bottom: 16px; font-size: 15px; line-height: 1.35; color: var(--bone); } .tw:hover .cap { color: var(--wax); }
.txt { padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; background: radial-gradient(circle at 40% 45%, #0d1a2b, #020406 78%); } h2:not(.vh) { font: 400 clamp(52px, 6.6vw, 118px)/.88 var(--tall); letter-spacing: -.005em; text-transform: uppercase; color: var(--bone); text-wrap: balance; } .txt p { font-size: 17px; color: var(--dim); max-width: 430px; } .txt .acts { display: flex; gap: 22px; align-items: center; color: var(--bone); }
.shuf { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 2fr); gap: var(--gap); } .sh canvas { width: 100%; height: 100%; min-height: clamp(380px, 38vw, 560px); }
.how .film { padding-bottom: 26px; } .how canvas { width: 100%; height: clamp(260px, 32vw, 470px); } .how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; font: 400 clamp(28px, 3vw, 46px)/1 var(--tall); color: var(--bone); }
.foot .film { padding: 0 clamp(20px, 3vw, 46px) max(30px, env(safe-area-inset-bottom)); } #sign { width: calc(100% + 2 * clamp(20px, 3vw, 46px)); margin: 0 calc(-1 * clamp(20px, 3vw, 46px)); height: clamp(170px, 30vw, 460px); } .fo { display: flex; flex-wrap: wrap; gap: 4px 28px; } .nt { color: var(--dim); font-size: 15px; padding-top: 4px; }

@media (max-width: 900px) {
  :root { --gap: 9px; } .rail { grid-template-columns: auto auto; justify-content: space-between; gap: 0 12px; padding: 6px 14px 8px; } .brand svg { width: 28px; height: 28px; } .brand b { font-size: 29px; } .rail nav { gap: 14px; font-size: 14px; grid-row: 1; grid-column: 2; white-space: nowrap; } .rail form { grid-column: 1 / -1; flex-wrap: wrap; } .rail input { flex: 1 1 0; } #picks { flex: 1 0 100%; padding: 0; gap: 18px; } #picks button { min-height: 34px; }
  .view { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; } .pan canvas { height: 318px; } .over { position: static; padding: 2px 12px 10px; } #state { flex: 1 0 100%; font-size: 13px; } .tf { margin-right: auto; } .tf button { min-width: 42px; padding: 0 9px; } .plate { grid-template-rows: auto 300px auto auto; } .report { min-height: 0; } .lab { padding: 10px 14px 6px; font-size: 13px; } .modes { padding: 8px 14px 10px; } .report { padding: 12px 14px 16px; }
  .twins { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .twins .txt { grid-column: 1 / -1; grid-row: 1; } .tw canvas { height: 380px; } .tw .cap { left: 12px; right: 12px; bottom: 12px; font-size: 13.5px; } .shuf { grid-template-columns: minmax(0, 1fr); } .sh canvas { height: 380px; min-height: 0; } .txt { padding: 28px 18px; }
  .how .film { display: grid; grid-template-columns: 50% 1fr; padding: 0; } .how canvas { height: 560px; } .how ol { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); text-align: left; } .how li { display: flex; align-items: center; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .box { animation: none; } * { transition: none !important; } }
