/* Aeroponics Lab, the page. One light theme, painted explicitly.
   Palette and type from docs/SITE_PLAN.md, design plan. Layout: every
   chapter is a title card on the left third of a twelve-column grid, a
   hairline that draws in beneath the title, the body on the right, data
   in mono with its unit, and nothing slides: things dissolve. */

:root {
  --mist: #eef4f1;
  --root: #f8fbf9;
  --tent: #152321;
  --steel: #5b6b66;
  --nozzle: #2b7f8b;
  --nozzle-deep: #0e4c54;
  --leaf: #4f8f3e;
  --amber: #cf8f2a;
  --hair: rgba(21, 35, 33, 0.14);
  --hair-strong: rgba(21, 35, 33, 0.34);
  --mist-deep: #e1ebe7; /* a missing image */
  --on-tent: rgba(238, 244, 241, 0.92);
  --on-tent-dim: rgba(238, 244, 241, 0.58);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.5vw, 72px);
  --colgap: clamp(12px, 1.5vw, 24px);
  --band: 108px;
  --lane: 0px; /* room for the rail at the right, wide screens only */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dissolve: 900ms;
}

@media (min-width: 900px) {
  :root {
    --lane: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --band: 80px;
  }
}

/* ------------------------------------------------------------- ground */

* {
  box-sizing: border-box;
}

html {
  background: var(--mist);
  color: var(--tent);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

html.gated {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--tent);
  font: 400 17px/1.55 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(43, 127, 139, 0.22);
}

a {
  color: var(--nozzle);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 127, 139, 0.45);
}

a:hover {
  color: var(--nozzle-deep);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--nozzle);
  outline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.skip {
  position: fixed;
  top: -60px;
  left: var(--gutter);
  z-index: 100;
  padding: 8px 12px;
  background: var(--tent);
  color: var(--mist);
  font: 500 12.5px/1 var(--mono);
}

.skip:focus {
  top: 8px;
}

/* type roles */

.kicker {
  display: block;
  font: 400 12.5px/1.4 var(--mono);
  color: var(--steel);
}

.display {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

.mono {
  font: 400 13px/1.5 var(--mono);
}

/* mono buttons: square, quiet, no chrome beyond a hairline */

.btn {
  display: inline-block;
  padding: 13px 18px;
  border: 1px solid var(--tent);
  border-radius: 0;
  background: var(--tent);
  color: var(--mist);
  font: 500 13px/1 var(--mono);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 250ms,
    color 250ms,
    border-color 250ms;
}

.btn:hover {
  background: var(--nozzle-deep);
  border-color: var(--nozzle-deep);
  color: var(--mist);
}

.btn-quiet {
  background: transparent;
  color: var(--tent);
  border-color: var(--hair-strong);
}

.btn-quiet:hover {
  background: transparent;
  color: var(--nozzle-deep);
  border-color: var(--nozzle-deep);
}

/* an image in a fixed box: the box is mist while the image is missing,
   and dissolves to the frame once it arrives */

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--mist-deep);
}

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}

.frame img.ok {
  opacity: 1;
}

/* ---------------------------------------------------------- the band */

.band {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--band);
  z-index: 60;
  background: var(--root);
  border-bottom: 1px solid var(--hair);
  transition:
    background-color 700ms var(--ease),
    border-color 700ms var(--ease);
}

.band-grid {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colgap);
  align-items: end;
  padding: 0 var(--gutter) 20px;
  transition: opacity 600ms var(--ease);
}

.masthead {
  grid-column: 1 / span 6;
  min-width: 0;
}

.masthead .kicker {
  margin-bottom: 8px;
}

.wordmark {
  font: 400 clamp(30px, 3.1vw, 46px) / 1 var(--display);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.015em;
  color: var(--tent);
  white-space: nowrap;
}

.band-line {
  grid-column: 7 / span 6;
  max-width: 64ch;
  font: 400 14.5px/1.45 var(--body);
  color: var(--steel);
  opacity: 0;
  transition: opacity 1400ms var(--ease) 500ms;
}

body.entered .band-line {
  opacity: 1;
}

/* After the hero leaves, the band's ground dissolves and a small
   wordmark remains in the same corner. Never during Enter. */

.band-mini {
  position: absolute;
  left: var(--gutter);
  top: 18px;
  padding: 7px 10px 8px;
  background: var(--root);
  color: var(--tent);
  font: 400 17px/1 var(--display);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms var(--ease);
}

.band-mini:hover {
  color: var(--nozzle-deep);
}

body.away .band {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

body.away .band-grid {
  opacity: 0;
}

body.away .band-mini {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------------- the gate */

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--root);
  display: grid;
  align-content: center;
  padding-top: var(--band);
  transition:
    opacity 1500ms var(--ease),
    visibility 0s linear 1500ms;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colgap);
  padding: 0 var(--gutter);
  transition: opacity 450ms var(--ease);
}

.gate.off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate.off .gate-grid {
  opacity: 0;
}

.gate-line {
  grid-column: 1 / span 8;
  font: 300 clamp(27px, 3.3vw, 50px) / 1.14 var(--display);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.012em;
  text-wrap: pretty;
  margin-bottom: 44px;
}

.gate-actions {
  grid-column: 1 / span 8;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.enter-sound {
  padding: 14px 20px;
  border: 1px solid var(--tent);
  border-radius: 0;
  background: var(--tent);
  color: var(--mist);
  font: 500 13.5px/1 var(--mono);
  cursor: pointer;
  transition:
    background-color 250ms,
    border-color 250ms;
}

.enter-sound:hover {
  background: var(--nozzle-deep);
  border-color: var(--nozzle-deep);
}

.enter-silent {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--steel);
  font: 400 13.5px/1 var(--mono);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--hair-strong);
  cursor: pointer;
}

.enter-silent:hover {
  color: var(--nozzle-deep);
  text-decoration-color: currentColor;
}

.gate-notice {
  grid-column: 1 / span 8;
  margin-top: 36px;
  font: 400 12.5px/1.5 var(--mono);
  color: var(--amber);
}

/* ------------------------------------------------------- the chapters */

main {
  display: block;
}

main:focus {
  outline: none;
}

.chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--colgap);
  align-content: center;
  padding: calc(var(--band) + 2vh) calc(var(--gutter) + var(--lane)) 10vh
    var(--gutter);
}

.chapter-head {
  grid-column: 1 / span 4;
  align-self: start;
  min-width: 0;
}

.chapter-title {
  margin-top: 12px;
  font: 400 clamp(30px, 3.5vw, 56px) / 1.04 var(--display);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.chapter-title.long {
  font-size: clamp(26px, 2.7vw, 43px);
  letter-spacing: -0.014em;
}

.rule {
  display: block;
  height: 1px;
  margin-top: 26px;
  background: var(--hair-strong);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1200ms var(--ease) 200ms;
}

.chapter-body {
  grid-column: 6 / span 7;
  align-self: start;
  max-width: 36em;
  min-width: 0;
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

.chapter-body p + p {
  margin-top: 1.1em;
}

/* things dissolve in, once, when the chapter is reached */

.reveal {
  opacity: 0;
  transition: opacity var(--dissolve) var(--ease);
}

.reveal-late {
  transition-delay: 320ms;
}

.chapter.in .reveal {
  opacity: 1;
}

.chapter.in .rule {
  transform: scaleX(1);
}

/* ----------------------------------------------------------- the hero */

.chapter-enter {
  display: block;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: var(--band) 0 0;
}

.hero {
  position: relative;
  height: 100%;
  background: var(--tent);
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--tent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1300ms var(--ease);
}

.hero-frame.on {
  opacity: 1;
}

body.hero-controls .hero-frame {
  pointer-events: auto;
}

.hero-wait {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font: 400 12.5px/1.5 var(--mono);
  color: var(--on-tent-dim);
}

.hero-wait[hidden] {
  display: none;
}

.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--tent);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-body {
  display: none;
}

/* the strip of controls over the bottom-right of the frame; the
   bottom-left belongs to the audio pill */

.hero-strip {
  position: absolute;
  right: var(--gutter);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 26px;
  font: 400 12.5px/1.4 var(--mono);
  color: var(--on-tent);
  transition: opacity 600ms var(--ease);
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on-tent-dim);
}

.hero-live[hidden] {
  display: none;
}

.hero-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-caption {
  color: var(--on-tent-dim);
}

.hero-take {
  padding: 10px 14px;
  border: 1px solid rgba(238, 244, 241, 0.5);
  border-radius: 0;
  background: transparent;
  color: var(--on-tent);
  font: 500 12.5px/1 var(--mono);
  cursor: pointer;
  transition:
    background-color 250ms,
    color 250ms,
    border-color 250ms;
}

.hero-take:hover {
  background: var(--mist);
  color: var(--tent);
  border-color: var(--mist);
}

body.hero-controls .hero-take {
  background: var(--mist);
  color: var(--tent);
  border-color: var(--mist);
}

.hero-take[hidden] {
  display: none;
}

.hero-open {
  color: var(--on-tent);
  text-decoration-color: rgba(238, 244, 241, 0.4);
}

.hero-open:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.hero-esc {
  color: var(--on-tent-dim);
}

.hero-esc[hidden] {
  display: none;
}

/* ----------------------------------------------------------- the rail */

.rail {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms var(--ease);
}

body.entered .rail {
  opacity: 1;
  pointer-events: auto;
}

.rail a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 2px 0;
  font: 400 11.5px/1 var(--mono);
  color: var(--steel);
  text-decoration: none;
  transition: color 400ms var(--ease);
}

.rail a::after {
  content: "";
  width: 10px;
  height: 1px;
  background: currentColor;
  transition:
    width 400ms var(--ease),
    background-color 400ms var(--ease);
}

.rail a:hover {
  color: var(--tent);
}

.rail a.is-current {
  color: var(--tent);
}

.rail a.is-current::after {
  width: 20px;
  background: var(--nozzle);
}

@media (min-width: 900px) {
  body[data-chapter="enter"] .rail a {
    color: var(--on-tent-dim);
  }

  body[data-chapter="enter"] .rail a:hover,
  body[data-chapter="enter"] .rail a.is-current {
    color: var(--on-tent);
  }
}

/* idle: the furniture fades, the page stays */

body.idle .rail,
body.idle .hero-strip {
  opacity: 0;
}

/* ------------------------------------------------- systems: filmstrip */

.strip-wrap {
  grid-column: 1 / -1;
  margin-top: 4vh;
  min-width: 0;
}

.strip-nav {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.strip-nav button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--steel);
  font: 400 12.5px/1 var(--mono);
  cursor: pointer;
}

.strip-nav button:hover {
  color: var(--nozzle-deep);
}

.strip {
  display: flex;
  gap: clamp(24px, 3vw, 52px);
  margin: 0 calc(-1 * (var(--gutter) + var(--lane))) 0 calc(-1 * var(--gutter));
  padding: 0 calc(var(--gutter) + var(--lane)) 22px var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--hair-strong) transparent;
}

.strip::-webkit-scrollbar {
  height: 6px;
}

.strip::-webkit-scrollbar-thumb {
  background: var(--hair-strong);
}

.unit {
  flex: 0 0 clamp(280px, 30vw, 480px);
  scroll-snap-align: start;
  min-width: 0;
}

.unit .frame {
  aspect-ratio: 16 / 9;
}

.unit-name {
  margin-top: 18px;
  font: 400 clamp(22px, 1.7vw, 27px) / 1.12 var(--display);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.012em;
}

.unit-text {
  margin-top: 10px;
  font-size: 15.5px;
  line-height: 1.5;
  text-wrap: pretty;
}

.unit-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
  font: 400 12.5px/1.5 var(--mono);
}

.unit-data {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: var(--steel);
}

.unit-data b {
  font-weight: 500;
  color: var(--tent);
  margin-left: 6px;
}

.unit-open {
  white-space: nowrap;
}

/* ------------------------------------------------ gallery: contact sheet */

.sheet {
  grid-column: 1 / -1;
  margin-top: 6vh;
  min-width: 0;
}

.group + .group {
  margin-top: 34px;
}

.group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0 12px;
  border-top: 1px solid var(--hair-strong);
  font: 400 12.5px/1.5 var(--mono);
  color: var(--steel);
}

.group-head h3 {
  font: inherit;
  color: var(--tent);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
  gap: 20px 10px;
}

.tile {
  display: block;
  color: var(--tent);
  text-decoration: none;
  min-width: 0;
}

.tile .frame {
  aspect-ratio: 16 / 9;
}

.tile-cap {
  margin-top: 8px;
  font: 500 14px/1.35 var(--body);
  transition: color 250ms;
}

.tile-meta {
  margin-top: 2px;
  font: 400 11.5px/1.45 var(--mono);
  color: var(--steel);
  text-wrap: pretty;
}

.tile:hover .tile-cap {
  color: var(--nozzle);
}

.tile:hover .frame img.ok {
  opacity: 0.86;
}

/* ------------------------------------------------------------ the ask */

.chapter-ask .chapter-head {
  grid-column: 1 / span 5;
}

.chapter-ask .chapter-title {
  font-size: clamp(22px, 1.9vw, 30px);
}

.question {
  grid-column: 1 / span 12;
  margin-top: 6vh;
  font: 300 clamp(38px, 6.3vw, 104px) / 1.02 var(--display);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.ask-side {
  grid-column: 1 / span 4;
  margin-top: 6vh;
  align-self: start;
}

.ask-rule {
  font: 400 13px/1.55 var(--mono);
  color: var(--steel);
  margin-bottom: 22px;
}

.ask-detail {
  grid-column: 6 / span 7;
  margin-top: 6vh;
  max-width: 36em;
  align-self: start;
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

.facts {
  grid-column: 1 / span 12;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  margin-top: 8vh;
  padding-top: 14px;
  border-top: 1px solid var(--hair-strong);
  font: 400 13px/1.5 var(--mono);
  color: var(--steel);
}

.facts b {
  font-weight: 500;
  color: var(--tent);
  margin-left: 10px;
}

/* ------------------------------------------------------------- music */

.tracks {
  list-style: none;
  margin: 5vh 0 0;
  padding: 0;
  border-top: 1px solid var(--hair-strong);
}

.track {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 22px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}

.track-play {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--nozzle);
  font: 500 12.5px/1 var(--mono);
  text-align: left;
  cursor: pointer;
  transition: color 250ms;
}

.track-play:hover {
  color: var(--nozzle-deep);
}

.track-play:disabled {
  color: var(--steel);
  cursor: default;
}

.track-title {
  font: 400 clamp(21px, 1.6vw, 26px) / 1.15 var(--display);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.012em;
  transition: color 300ms;
}

.track-note {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--steel);
}

.track.is-playing .track-title {
  color: var(--nozzle);
}

.track.is-playing .track-play {
  color: var(--tent);
}

.keys {
  margin-top: 22px;
  font: 400 12.5px/1.6 var(--mono);
  color: var(--steel);
}

.keys kbd {
  font: inherit;
  color: var(--tent);
}

/* ------------------------------------------------------------ credits */

.credits {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px 36px;
  margin-top: 1vh;
  border-top: 1px solid var(--hair-strong);
  padding-top: 20px;
}

.credits dt {
  padding-top: 3px;
  font: 400 12.5px/1.5 var(--mono);
  color: var(--steel);
}

.credits dd {
  font-size: 16.5px;
  line-height: 1.5;
}

.credits ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.credits li + li {
  margin-top: 7px;
}

.colophon {
  grid-column: 1 / span 12;
  align-self: end;
  margin-top: 12vh;
  font: 400 12px/1.6 var(--mono);
  color: var(--steel);
}

/* -------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .chapter-head {
    grid-column: 1 / span 5;
  }

  .chapter-body,
  .ask-detail {
    grid-column: 6 / span 7;
  }
}

@media (max-width: 900px) {
  .chapter {
    align-content: start;
    padding-bottom: 12vh;
  }

  .chapter-head,
  .chapter-ask .chapter-head,
  .chapter-body,
  .ask-side,
  .ask-detail {
    grid-column: 1 / span 12;
  }

  .chapter-body {
    margin-top: 32px;
  }

  .ask-side {
    order: 2;
  }

  .ask-detail {
    order: 1;
    margin-top: 5vh;
  }

  .ask-side {
    margin-top: 5vh;
  }

  .facts {
    order: 3;
  }

  .masthead {
    grid-column: 1 / span 12;
  }

  .band-line {
    display: none;
  }

  /* the hero becomes a labelled frame in the flow, its body under it */
  .chapter-enter {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-bottom: 8vh;
  }

  .hero {
    height: auto;
    background: transparent;
  }

  .hero-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--tent);
  }

  .hero-body {
    display: block;
    margin: 26px var(--gutter) 0;
    max-width: 36em;
    font-size: 16.5px;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .hero-strip {
    position: static;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin: 22px var(--gutter) 0;
    color: var(--tent);
  }

  .hero-live,
  .hero-caption,
  .hero-esc {
    color: var(--steel);
  }

  .hero-caption {
    flex-basis: 100%;
  }

  .hero-take {
    border-color: var(--hair-strong);
    color: var(--tent);
  }

  .hero-take:hover,
  body.hero-controls .hero-take {
    background: var(--tent);
    color: var(--mist);
    border-color: var(--tent);
  }

  .hero-open {
    color: var(--nozzle);
    text-decoration-color: rgba(43, 127, 139, 0.45);
  }

  .hero-open:hover {
    color: var(--nozzle-deep);
    text-decoration-color: currentColor;
  }

  .hero-wait {
    left: 20px;
  }

  .track {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wordmark {
    font-size: 28px;
  }

  .band-grid {
    padding-bottom: 16px;
  }

  .band-mini {
    top: 14px;
    font-size: 15px;
  }

  .gate-line {
    grid-column: 1 / span 12;
    font-size: 27px;
    margin-bottom: 34px;
  }

  .gate-actions,
  .gate-notice {
    grid-column: 1 / span 12;
  }

  .chapter-title {
    font-size: 31px;
  }

  .question {
    font-size: 38px;
    letter-spacing: -0.02em;
  }

  .rail {
    right: 0;
    gap: 9px;
  }

  .rail a span {
    display: none;
  }

  .rail a::after {
    width: 8px;
  }

  .rail a.is-current::after {
    width: 14px;
  }

  .unit {
    flex-basis: min(82vw, 340px);
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 8px;
  }

  .tile-meta {
    font-size: 11px;
  }

  .credits {
    grid-template-columns: 1fr;
    gap: 6px 0;
    border-top: 0;
    padding-top: 0;
  }

  .credits dd + dt {
    margin-top: 14px;
  }

  .facts {
    gap: 8px 26px;
  }
}

/* -------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation: none !important;
  }

  .gate {
    transition: none;
  }
}
