/* Land Lobster Studio — design tokens.
 * Brand colours come from the logo pack (Night, Shell red, Pale ink); the rest extend
 * them with the Lobby Bobby wiki palette. "new" marks colours picked for this site. */

@font-face {
  font-family: "Absans";
  src: url("fonts/Absans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* brand (logo pack) */
  --night: #1e2539;
  --shell: #c8354c;
  --pale-ink: #eceef4;
  /* wiki palette */
  --ink: #2b3550;
  --ink-card: #354166;
  --ink-accent: #414e78;
  --mist: #b3bcd4;
  --light-red: #ff8a9b;
  --gold: #e2a93f;
  --green: #7c9a5a;
  --fleece: #f2e8d9;
  --blanket: #fbf6ee;
  /* new for the site */
  --abyss: #0e1322;      /* OS top bar */
  --deep-night: #161c2e; /* the desktop */
  --muted-ink: #8a94b4;  /* muted text on Night (4.9:1) */

  /* roles */
  --page: var(--deep-night);
  --surface: var(--night);
  --raised: var(--ink);
  --border: var(--ink-accent);
  --text: var(--pale-ink);
  --muted: var(--muted-ink);
  --accent: var(--shell);
  --accent-text: var(--light-red);
  --treasure: var(--light-red);
  --door: var(--gold);

  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Absans", "IBM Plex Mono", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--page);
  color: var(--text);
  font: 14px/1.5 var(--mono);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--shell); outline-offset: 2px; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.muted { color: var(--muted); }
.red { color: var(--accent-text); }
.gold { color: var(--gold); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- download-in effect ---------- */
.dl-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--raised);
  overflow: hidden;
}
.dl-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.dl-tiny { image-rendering: pixelated; image-rendering: crisp-edges; }
.dl-full { opacity: 0; transition: opacity .35s ease; }
.dl-frame.done .dl-full { opacity: 1; }
.dl-bar { white-space: pre; margin: 6px 0 0; font: inherit; color: var(--muted); }
.dl-bar .hash { color: var(--text); }
.dl-frame.done + .dl-bar { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .dl-full { transition: none; }
}
