:root { color-scheme: dark; background: #09090d; color: #edeaf0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure, h1, p { margin: 0; }
main { position: relative; isolation: isolate; height: 100svh; overflow: hidden; }
figure {
  position: absolute; left: 50%; top: 49%; transform: translate(-50%, -50%);
  width: min(200vw, 155svh); aspect-ratio: 10 / 7; pointer-events: none;
}
figure > * { position: absolute; inset: 0; width: 100%; height: 100%; }
canvas { image-rendering: pixelated; }

/* Loading: the page stays black until the dot print is ready, then the print and caption fade in
   together. The SVG only appears if the print fails (.is-fallback) or JS is off (<noscript> in the page). */
figure img { visibility: hidden; }
.is-fallback figure img { visibility: visible; }
figure canvas, footer { opacity: 0; transition: opacity 700ms ease-out; }
.is-drawn figure canvas, :is(.is-drawn, .is-fallback) footer { opacity: 1; }
@media (prefers-reduced-motion: reduce) { figure canvas, footer { transition: none; } }
footer {
  position: absolute; inset: auto clamp(20px, 4vw, 64px) clamp(20px, 4vw, 46px);
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.plate { color: #aaa5b5; letter-spacing: 0.17em; text-transform: uppercase; }
.plate b { color: #92e0e6; font-weight: 400; }
h1 { margin-top: 4px; font: 550 clamp(30px, 3.6vw, 52px)/1.05 system-ui, sans-serif; letter-spacing: -0.055em; }
nav { display: flex; flex-wrap: wrap; gap: 8px; }
nav > * {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 8px 14px; border: 1px solid #3b3744; border-radius: 2px;
  background: #0c0b10; color: #ccc5d5; font: inherit; text-decoration: none; cursor: pointer;
}
nav > :hover { border-color: #8e78a4; color: #fff; }
:focus-visible { outline: 2px solid #8edce2; outline-offset: 4px; }
#notice { color: #c1b9c7; max-width: 30ch; }
@media (max-width: 500px) {
  footer { align-items: start; flex-direction: column; gap: 14px; }
  nav > * { min-height: 44px; }
}
