/* Tokens. Source of truth is DESIGN.md; change it there first. */
:root {
  --ground: #0e1a25;      /* the Sound at night; what every painting starts from and returns to */
  --ink: #f4ecdc;         /* bone white of the letters */
  --ink-soft: #a9b7c2;
  --accent: #f0a030;      /* lamp amber: focus ring and favicon only */
  --pad: clamp(20px, 5vw, 64px);
  --fast: 120ms; --base: 240ms; --slow: 480ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
@font-face {
  font-family: Archivo;
  src: url(fonts/archivo-latin-variable.woff2) format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--ink); font-family: Archivo, system-ui, sans-serif; }

.plate { position: relative; width: 100%; height: 100vh; height: 100dvh; min-height: 520px; overflow: hidden; background: var(--ground); }
.plate-still, .plate-paint, .plate-fly { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-still, .plate-paint { object-fit: cover; object-position: var(--focus, 50%) 50%; }
.plate-fly { pointer-events: none; }
/* With JS running, the canvas covers the still until the painting has been laid in. */
.js .plate-paint { background: var(--ground); }
/* Legibility shading under the wordmark. A flat band would cut the painting in two. house-ignore: functional scrim, not decoration */
.plate-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none;
  background: linear-gradient(to top, rgb(10 16 22 / var(--scrim, 0.7)), rgb(10 16 22 / 0)); }

.ui { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--pad); display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-end; justify-content: space-between; transition: opacity var(--base) var(--ease); }
.plate[data-side="right"] .ui { flex-direction: row-reverse; }
.ui.is-moving { opacity: 0; }
.id { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(44px, 7vw, 100px); }

/* The wordmark. The letters never move; only the dot does. */
.mark { margin: 0; display: flex; align-items: center; font-size: 1em; font-weight: 600; font-stretch: 125%; line-height: 1; letter-spacing: 0.09em; }
.dot { width: 0.28em; height: 0.28em; margin: 0 0.1em 0 0.02em; flex: none; }
.dot circle { transition: fill var(--slow) var(--ease); }
.port { margin: 0.16em 0 0; padding-left: 0.3em; font-size: max(0.135em, 10px); font-weight: 600; font-stretch: 100%; letter-spacing: 0.3em; text-transform: uppercase; }

.links { display: flex; flex-wrap: wrap; gap: 4px 32px; margin-top: 14px; font-size: 15px; }
.links a { display: inline-block; padding: 12px 0; color: var(--ink); font-weight: 600; letter-spacing: 0.06em; text-underline-offset: 6px; }
.links a:hover { color: #fff; }

/* Plate picker: one small dot per painting, in that painting's key pigment. */
.plates { display: flex; gap: 0; }
.plates button { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.plates button span { width: 12px; height: 12px; border-radius: 50%; background: var(--key); outline: 1px solid transparent; outline-offset: 4px;
  transition: outline-color var(--fast) var(--ease); }
.plates button:hover span, .plates button[aria-current="true"] span { outline-color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .ui, .dot circle, .plates button span { transition: none; } }
