/* Cosmic Static: the entrance board of a radio observatory.
   Signal-blue enamel carries the page; white sign lettering; black structure; safety yellow only for
   the live station, the chosen path and keyboard focus; red only for the radio-quiet plaque. */

/* Overpass (SIL Open Font License 1.1, see /fonts/OFL-Overpass.txt): variable weight 100-900. */
@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/overpass-latin.woff2") format("woff2");
  unicode-range: U+0000-017F, U+02BB-02BC, U+02C6-02C7, U+02D8-02DD, U+0300-0308, U+030A-030C, U+0326-0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 100.86%;
  ascent-override: 87.55%;
  descent-override: 37.98%;
  line-gap-override: 0%;
}

:root {
  --blue: #1d4aa0;          /* signal-blue enamel */
  --blue-plate: #2251ab;    /* a mounted plate catches a little more light than the board */
  --blue-deep: #143a82;     /* a sign under the pointer */
  --blue-ink: #0d2a62;      /* shade on enamel */
  --yellow: #f4c400;        /* live station, chosen path, focus */
  --white: #fbfaf5;         /* enamel white */
  --white-hover: #e2e9f7;   /* a white plate under the pointer */
  --black: #101418;         /* structure */
  --red: #d42a1e;           /* radio-quiet plaque */
  --mist: #cbd8f2;          /* secondary lettering on blue (5.7:1) */
  --rule: rgba(251, 250, 245, 0.92);

  --font: "Overpass", "Overpass Fallback", sans-serif;

  --frame: 12px;            /* black structure around the board */
  --board-r: 30px;
  --rule-inset: 14px;
  --pad-x: 44px;            /* board padding, inside the white rule */
  --pad-y: clamp(24px, 3.8vh, 34px);
  --col-gap: 30px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Enamel is flat: a mounting hole is a solid disc in a thin ring, no dome, no highlight
     (drawn as SVG: on blue and red, on the black picture plate, on white plates). */
  --hole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='3' fill='%23101418'/%3E%3Ccircle cx='7' cy='7' r='5.6' fill='none' stroke='%23fbfaf5' stroke-opacity='.92' stroke-width='1.4'/%3E%3C/svg%3E");
  --hole-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='3' fill='%2339424f'/%3E%3Ccircle cx='7' cy='7' r='5.6' fill='none' stroke='%23fbfaf5' stroke-opacity='.6' stroke-width='1.4'/%3E%3C/svg%3E");
  --hole-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='3' fill='%230d2a62'/%3E%3Ccircle cx='7' cy='7' r='5.6' fill='none' stroke='%231d4aa0' stroke-opacity='.6' stroke-width='1.4'/%3E%3C/svg%3E");
  /* A plate sits on the board with one low, soft shadow. */
  --sit: 0 2px 6px rgba(5, 12, 30, 0.3);

  color-scheme: dark;
  scrollbar-color: var(--mist) var(--black);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--black);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--white); color: var(--blue); }

h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; }

a { color: inherit; }
a:focus, summary:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }
a:focus-visible,
summary:focus-visible,
.panel-title[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 24px; top: 24px; z-index: 10;
  padding: 12px 18px; border-radius: 8px;
  background: var(--yellow); color: var(--black); font-weight: 800; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; outline-color: var(--white); }

/* ---- the board ---------------------------------------------------------------------------- */

.frame {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--frame);
  display: flex;
}

.board {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(214px, 252px) minmax(0, 1fr) minmax(400px, 468px);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "band  band  band"
    "signs plan  panel"
    "foot  plan  panel";
  padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) + 4px);
  border-radius: var(--board-r);
  background:
    var(--hole) left 25px top 25px / 14px 14px no-repeat,
    var(--hole) right 25px top 25px / 14px 14px no-repeat,
    var(--hole) left 25px bottom 25px / 14px 14px no-repeat,
    var(--hole) right 25px bottom 25px / 14px 14px no-repeat,
    var(--blue);
}

/* The enamel sign's white border line. */
.board::before {
  content: "";
  position: absolute;
  inset: var(--rule-inset);
  border: 3px solid var(--rule);
  border-radius: calc(var(--board-r) - var(--rule-inset) + 2px);
  pointer-events: none;
}

/* ---- top band: the wordmark over the yellow edge -------------------------------------------- */

.band {
  grid-area: band;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 8px 0 clamp(16px, 2.7vh, 24px);
  margin-bottom: clamp(18px, 3.1vh, 28px);
}
.band::after {
  content: "";
  position: absolute;
  left: calc(var(--rule-inset) + 3px - var(--pad-x));
  right: calc(var(--rule-inset) + 3px - var(--pad-x));
  bottom: 0;
  height: 7px;
  background: var(--yellow);
}

.wordmark {
  font-size: clamp(2.6rem, min(6.1vw, 9.6vh), 5.75rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 0.12em;
}
.wordmark a { text-decoration: none; }

.strap {
  margin-left: auto;
  padding-bottom: 0.1em;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-wrap: balance;
}

/* ---- direction signs ---------------------------------------------------------------------- */

.signs { grid-area: signs; padding-right: var(--col-gap); }
.signs ul { display: grid; gap: clamp(8px, 1.34vh, 12px); }

.sign {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: clamp(50px, 6.9vh, 62px);
  padding: 0 18px 0 26px;
  border-radius: 11px;
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-decoration: none;
  background: var(--hole) left 5px center / 11px 11px no-repeat, var(--blue-plate);
  box-shadow: var(--sit);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.sign::before {
  content: "";
  position: absolute;
  inset: 5px 5px 5px 18px;
  border: 2px solid currentColor;
  border-radius: 7px;
  opacity: 0.9;
  pointer-events: none;
}
.sign-text { position: relative; padding: 4px 0 2px 8px; }
.sign-arrow {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 220ms var(--ease-out);
}

/* The chosen path lights the sign. */
.sign[aria-current="true"],
html:not(.js) body:not(:has(.panel:target)) .sign[data-panel="gemstroids"],
html:not(.js) body:has(#contact:target) .sign[data-panel="contact"],
html:not(.js) body:has(#name:target) .sign[data-panel="name"] {
  color: var(--black);
  background-color: var(--yellow);
}

/* Under the pointer a sign darkens and its arrow points on; nothing lifts off the board. */
@media (hover: hover) {
  .sign:hover { background-color: var(--blue-deep); }
  .sign[aria-current="true"]:hover { background-color: var(--yellow); }
  .sign:hover .sign-arrow { transform: translateX(4px); }
}
.sign:active { background-color: var(--blue-ink); }

/* ---- the site plan ------------------------------------------------------------------------ */

.site-plan {
  grid-area: plan;
  position: relative;
  min-width: 0;
  min-height: clamp(340px, 57.8vh, 520px);
}
.site-plan::before,
.panels::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 1px;
  background: var(--rule);
}

.plan {
  width: 100%;
  height: auto;
  overflow: visible;
}
/* The plan takes whatever height the signs and the panel give the board, and never sets it. */
.plan--board {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--col-gap);
  width: calc(100% - 2 * var(--col-gap));
  height: 100%;
}
.plan--run { display: none; }

.plan .rail-ties,
.plan .spur-ties {
  fill: none;
  stroke: var(--white);
  stroke-opacity: 0.42;
  stroke-width: 17;
  stroke-dasharray: 2.4 8;
}
.plan .spur-ties { stroke-width: 15; }
.plan .rail-line,
.plan .spur-line {
  fill: none;
  stroke: var(--white);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.plan .cable {
  fill: none;
  stroke: var(--white);
  stroke-opacity: 0.7;
  stroke-width: 2;
  stroke-dasharray: 0.1 6;
  stroke-linecap: round;
}
.plan .turntable { fill: var(--blue); stroke: var(--white); stroke-width: 2.5; }
.plan .turntable-hub { fill: var(--white); }
.hatch { stroke: var(--white); stroke-opacity: 0.5; stroke-width: 1.4; }
.plan .building-wall { fill: none; stroke: var(--white); stroke-width: 2.5; }
.plan .north { fill: var(--white); }
.plan .gate-leaf { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linecap: round; }
.plan .gate-swing { fill: none; stroke: var(--white); stroke-opacity: 0.6; stroke-width: 1.4; stroke-dasharray: 3 4; }
.plan .fence { fill: none; stroke: var(--white); stroke-opacity: 0.5; stroke-width: 1.6; stroke-dasharray: 16 5 2.5 5; }
.plan .gatepost { fill: var(--white); }

.pad .pad-ring { fill: none; stroke: var(--white); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-opacity: 0.75; }
.pad .pad-disc { fill: var(--blue); stroke: var(--white); stroke-width: 2.6; }
.pad .dish { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.pad .dish path,
.pad .dish circle { vector-effect: non-scaling-stroke; }
.pad .pad-num { fill: var(--white); }

/* Pad 01: the live station. */
.pad--live .pad-ring { stroke: var(--yellow); stroke-width: 3; stroke-dasharray: none; stroke-opacity: 1; }
.pad--live .pad-disc { fill: var(--yellow); stroke: var(--yellow); }
.pad--live .dish { fill: var(--black); stroke: none; }
.plan-label { fill: var(--white); font-family: var(--font); font-weight: 900; letter-spacing: 0.01em; }
.plan-sub { fill: var(--mist); font-family: var(--font); font-weight: 700; }

.pad-link { cursor: pointer; }
/* Keyboard focus is a white ring, apart from the live pad's own yellow. */
.pad-link .pad-focus { fill: none; stroke: var(--white); stroke-width: 3; opacity: 0; }
.pad-link:focus-visible { outline: none; }
.pad-link:focus-visible .pad-focus { opacity: 1; }
.pad-link .pad-ring { transform-box: fill-box; transform-origin: center; transition: transform 240ms var(--ease-out); }
@media (hover: hover) {
  .pad-link:hover .pad-ring { transform: scale(1.12); }
  .pad-link:hover .plan-label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}

/* ---- the information panel ---------------------------------------------------------------- */

.panels {
  grid-area: panel;
  position: relative;
  display: grid;
  align-content: start;
  padding-left: var(--col-gap);
  min-width: 0;
}
.panels:focus { outline: none; }

.panel { min-width: 0; }
.panel + .panel { margin-top: 48px; }

/* One cell, one panel at a time: the board never reflows when a sign is chosen. */
html.js .panels > .panel { grid-area: 1 / 1; margin-top: 0; }
html.js .panel:not(.is-on) { visibility: hidden; }
@media (scripting: enabled) {
  html:not(.js) .panels > .panel { grid-area: 1 / 1; margin-top: 0; }
  html:not(.js) .panel { visibility: hidden; }
  html:not(.js) .panel:target,
  html:not(.js) .panels:not(:has(.panel:target)) > #gemstroids { visibility: visible; }
}

.panel.is-entering { animation: panel-in 380ms var(--ease-out); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); clip-path: inset(0 0 22% 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 20px;
  margin-bottom: clamp(8px, 1.34vh, 12px);
}
.panel-head .panel-title { margin-bottom: 0; }
.panel-title {
  font-size: clamp(2.125rem, min(3vw, 4.9vh), 2.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 14px;
}

.lede { max-width: 62ch; text-wrap: pretty; }

/* A picture plate screwed onto the board: the game's own art, not restyled. On a short screen it
   shows a band of the art (the logo and the ship stay in it) so the whole board fits. */
.plate {
  position: relative;
  padding: 7px;
  margin-bottom: clamp(14px, 2.4vh, 22px);
  border-radius: 10px;
  background:
    var(--hole-dark) left 0 top 0 / 9px 9px no-repeat,
    var(--hole-dark) right 0 top 0 / 9px 9px no-repeat,
    var(--hole-dark) left 0 bottom 0 / 9px 9px no-repeat,
    var(--hole-dark) right 0 bottom 0 / 9px 9px no-repeat,
    var(--black);
  box-shadow: var(--sit);
}
.plate img {
  width: 100%;
  height: auto;
  max-height: max(140px, calc(44vh - 176px));
  object-fit: cover;
  object-position: 50% 52%;
  border-radius: 4px;
}

.tagline {
  font-size: clamp(1.1875rem, 2.45vh, 1.375rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: clamp(6px, 1.1vh, 10px);
  text-wrap: balance;
}
.facts {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--mist);
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.34vh, 12px);
  margin-top: clamp(14px, 2.2vh, 20px);
}
.btn--primary { grid-column: 1 / -1; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: clamp(44px, 5.8vh, 52px);
  padding: 4px 20px 2px;
  border-radius: 10px;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  background-color: var(--blue-plate);
  box-shadow: var(--sit);
  transition: background-color 160ms var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 7px;
  opacity: 0.85;
  pointer-events: none;
}
.btn:active { background-color: var(--blue-ink); }

/* The one action visitors came for: a white enamel plate with blue lettering. */
.btn--primary {
  min-height: clamp(52px, 7.1vh, 64px);
  padding-inline: 32px;
  color: var(--blue);
  font-size: 1.3125rem;
  font-weight: 900;
  background-color: var(--white);
}
.btn--primary::before { inset: 5px 22px; }
/* The white plates' two mounting holes, on a layer of their own over the plate. */
.btn--primary::after,
.address::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--hole-blue) left 8px center / 10px 10px no-repeat,
    var(--hole-blue) right 8px center / 10px 10px no-repeat;
  pointer-events: none;
}
.btn--primary:active { background-color: var(--white-hover); }
.btn-icon { width: 22px; height: 22px; fill: currentColor; transition: transform 220ms var(--ease-out); }
@media (hover: hover) {
  .btn:hover { background-color: var(--blue-deep); }
  .btn--primary:hover { background-color: var(--white-hover); }
  .btn:hover .btn-icon { transform: translate(3px, -3px); }
}

/* Contact */
.topics { margin: 18px 0 26px; border-top: 2px solid var(--rule); }
.topics li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 0 4px;
  border-bottom: 2px solid var(--rule);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.topics li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--white);
}

.address {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 6px 30px 4px;
  border-radius: 11px;
  color: var(--blue);
  font-size: 1.1875rem;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: break-word;
  background-color: var(--white);
  box-shadow: var(--sit);
  transition: background-color 160ms var(--ease-out);
}
.address::before {
  content: "";
  position: absolute;
  inset: 5px 22px;
  border: 2px solid currentColor;
  border-radius: 7px;
  pointer-events: none;
}
.address-icon { flex: none; width: 28px; height: 28px; margin-left: 4px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) {
  .address:hover { background-color: var(--white-hover); }
  .address:hover .address-icon { transform: translateX(3px); }
}

/* The name: an illustration of a chart-recorder trace, captioned as one. */
.trace-fig { margin: 22px 0 28px; }
.trace { width: 100%; height: 64px; overflow: visible; }
.trace-grid { fill: none; stroke: var(--white); stroke-opacity: 0.28; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trace-line { fill: none; stroke: var(--white); stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trace-cap {
  margin-top: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mist);
}
.story {
  max-width: 34ch;
  font-size: 1.25rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.story + .story { margin-top: 14px; }
.story--last { font-weight: 800; }

/* ---- foot: the radio-quiet plaque and the copyright ----------------------------------------- */

.foot {
  grid-area: foot;
  align-self: end;
  padding: clamp(20px, 4vh, 36px) var(--col-gap) 0 0;
}

.plaque {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 20px 26px;
  border-radius: 11px;
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.45;
  background:
    var(--hole) left 5px top 5px / 10px 10px no-repeat,
    var(--hole) right 5px top 5px / 10px 10px no-repeat,
    var(--hole) left 5px bottom 5px / 10px 10px no-repeat,
    var(--hole) right 5px bottom 5px / 10px 10px no-repeat,
    var(--red);
  box-shadow: var(--sit);
}
.plaque::before {
  content: "";
  position: absolute;
  inset: 5px 14px;
  border: 2px solid var(--white);
  border-radius: 7px;
  pointer-events: none;
}
.plaque-icon { grid-row: 1; width: 34px; height: 34px; color: var(--white); }
.plaque-text { display: contents; }
.plaque-title {
  grid-row: 1;
  display: block;
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.plaque-body { grid-column: 1 / -1; margin-top: 10px; }

/* The legal basis and the visitor's rights, one layer down on the same plaque. */
.plaque-more { position: relative; grid-column: 1 / -1; margin-top: 8px; }
.plaque-more summary {
  display: block;
  width: fit-content;
  padding: 3px 0;
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  list-style: none;
}
.plaque-more summary::-webkit-details-marker { display: none; }
.plaque-more .nobr { white-space: nowrap; }
.plaque-chev { display: inline-block; width: 16px; height: 16px; margin-left: 3px; vertical-align: -3px; transition: transform 200ms var(--ease-out); }
.plaque-more[open] .plaque-chev { transform: rotate(180deg); }
.plaque-more p { margin-top: 4px; }
.plaque-more a { font-weight: 800; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
/* On red, the yellow focus ring gets a black edge so it still stands out. */
.plaque a:focus-visible,
.plaque summary:focus-visible { outline-offset: 0; border-radius: 3px; box-shadow: 0 0 0 6px var(--black); }

.copy {
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

/* ---- 404 -------------------------------------------------------------------------------- */

/* Two classes, so the tablet and phone grids below never take the lost board apart. */
.board.board--lost {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "band" "lost" "foot";
}
.lost {
  grid-area: lost;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 24px 0;
}
.lost-text { max-width: 30rem; }
.lost-text .lede { margin-bottom: 28px; }
.ghost-pad { width: clamp(180px, 22vw, 280px); height: auto; flex: none; }
.ghost-pad .pad-ring { stroke-width: 2; }
.ghost-pad .pad-disc { stroke-width: 3; }
.sign--home { max-width: 22rem; }
.foot--lost { padding: 24px 0 0; }

/* ---- tablets: signs beside the plan, the panel below ----------------------------------------- */

@media (max-width: 1239px) {
  :root { --pad-x: 36px; --col-gap: 26px; --pad-y: 34px; }
  .board {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "band  band"
      "signs plan"
      "foot  plan"
      "panel panel";
  }
  .site-plan { min-height: 520px; }
  .plan--board { width: calc(100% - var(--col-gap)); }
  .plate img { max-height: none; }
  .panels { padding: 40px 0 0; margin-top: 34px; }
  .panels::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .panel--game { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .panel--game .plate { grid-row: 1 / span 6; }
}

/* ---- phones: a vertical run of signs and pads, then the panel ------------------------------- */

@media (max-width: 699px) {
  :root { --frame: 8px; --board-r: 22px; --rule-inset: 10px; --pad-x: 24px; --pad-y: 26px; }
  body { font-size: 1.0625rem; }
  .board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "band" "signs" "plan" "panel" "foot";
    background:
      var(--hole) left 15px top 15px / 12px 12px no-repeat,
      var(--hole) right 15px top 15px / 12px 12px no-repeat,
      var(--hole) left 15px bottom 15px / 12px 12px no-repeat,
      var(--hole) right 15px bottom 15px / 12px 12px no-repeat,
      var(--blue);
  }
  .band { flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 18px 0 20px; margin-bottom: 24px; }
  .wordmark { font-size: clamp(2.5rem, 13.6vw, 3.6rem); line-height: 0.82; white-space: normal; }
  .strap { margin-left: 0; text-align: left; flex-basis: 100%; font-size: 1.125rem; }
  .signs { padding-right: 0; }
  .signs ul { gap: 10px; }
  .sign { min-height: 56px; font-size: 1.3125rem; }
  .site-plan { padding: 20px 0 0; margin-top: 22px; min-height: 0; }
  .site-plan::before,
  .panels::before { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .plan--board { display: none; }
  .plan--run { display: block; max-width: 420px; margin: 0 auto; }
  .panels { padding: 26px 0 0; margin-top: 22px; }
  .panel--game { display: block; }
  html.js .panel:not(.is-on) { display: none; }
  @media (scripting: enabled) {
    html:not(.js) .panel { display: none; }
    html:not(.js) .panel:target,
    html:not(.js) .panels:not(:has(.panel:target)) > #gemstroids { display: block; }
  }
  .panel-title { font-size: 2.125rem; }
  .tagline { font-size: 1.25rem; margin-bottom: 10px; }
  .actions { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .btn { min-height: 52px; }
  .btn--primary { min-height: 60px; gap: 8px; font-size: clamp(1.0625rem, 5.6vw, 1.3125rem); }
  .story { font-size: 1.1875rem; }
  .foot { padding: 34px 0 0; }
  .address { padding: 8px 26px 6px; font-size: clamp(0.9375rem, 4.6vw, 1rem); }
  .address::before { inset: 5px 18px; }
  .address-icon { display: none; }
  .lost { flex-direction: column; align-items: flex-start; gap: 24px; }
  .ghost-pad { width: 170px; align-self: center; }
  .sign--home { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .sign:hover .sign-arrow, .btn:hover .btn-icon, .address:hover .address-icon { transform: none; }
}
