@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap');

:root {
  --ink: #26242b;
  --soft: #6d6a75;
  --gold: #c98a12;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.pixel { font-family: 'Silkscreen', ui-monospace, monospace; }

/* ---------- landing scene ---------- */
body.landing { overflow: hidden; }

#stage {
  position: fixed;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

#scene {
  position: absolute;
  left: 0;
  top: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

.title {
  position: fixed;
  left: 20px;
  top: 16px;
  margin: 0;
  z-index: 2;
  pointer-events: none;
}
.title h1 {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: clamp(16px, 2.4vw, 28px);
  margin: 0;
  letter-spacing: 1px;
}
.title p {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: clamp(9px, 1.1vw, 12px);
  color: var(--soft);
  margin: 6px 0 0;
}

.spot {
  position: absolute;
  z-index: 3;
  display: block;
  text-decoration: none;
  color: var(--ink);
  outline: none;
}
.spot span {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: clamp(9px, 1.1vw, 13px);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 3px 7px;
  opacity: 0;
  transition: opacity .12s;
}
.spot:hover span, .spot:focus-visible span { opacity: 1; }
/* the bike sits low on the page, so its label goes above it */
#spot-moto span, #spot-freddy span, #spot-bus span { top: auto; bottom: 100%; }
@media (hover: none) {
  .spot span { opacity: 1; border-width: 1px; padding: 2px 5px; }
  /* labels are always shown on touch screens, so stagger the two neighbours */
  #spot-business span { top: auto; bottom: 100%; }
}

/* ---------- inner pages ---------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  line-height: 1.6;
}
.page h1 {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: clamp(22px, 5vw, 36px);
  margin: 28px 0 8px;
}
.page h2 {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: 16px;
  margin: 36px 0 8px;
}
.page a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.page a:hover { color: var(--gold); }
.back {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: 12px;
}
.todo {
  border: 2px dashed #c9c7cf;
  padding: 12px 16px;
  color: var(--soft);
}
