/* One Mechanism. Colours come from the site's own pictures: deep teal dark, warm gold light. */
:root {
  --ground: #06141a;
  --ground-2: #0b2028;
  --line: #1d3a42;
  --ink: #efe9dc;
  --soft: #b4c2c0;
  --gold: #e6b65c;
  --gold-deep: #b98532;
  --teal: #6cc3bb;
  --read: 42rem;
  --wide: 92rem;
  --head: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1.125rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover, a:focus-visible { color: #ffd98a; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* The bar at the top of every page: back arrow, then the name. */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(6, 20, 26, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.back {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--ground-2); color: var(--ink);
  font: 1.35rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.back:hover, .back:focus-visible { border-color: var(--gold); color: var(--gold); }
.name {
  font: 1.15rem/1 var(--head); letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.name:hover { color: var(--gold); }
.name { white-space: nowrap; }

.ways { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem .3rem; }
.ways a { white-space: nowrap; padding: .45rem .8rem; border-radius: 999px; color: var(--soft); text-decoration: none; border: 1px solid transparent; }
.ways a:hover, .ways a:focus-visible { color: var(--ink); border-color: var(--line); }
.ways a[aria-current] { color: var(--gold); border-color: var(--gold-deep); }

main { display: block; }
section[id] { scroll-margin-top: 4.5rem; }
.over { font: 400 .85rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 .9rem; }

/* Links to the parts of a long page. */
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.jump a { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink); text-decoration: none; }
.jump a:hover, .jump a:focus-visible { border-color: var(--gold); color: var(--gold); }

/* The stages of a thing, in order. */
ol.stages { margin: 1.2rem 0 1.4rem; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .6rem; }
ol.stages li { counter-increment: s; position: relative; padding: .1rem 0 .1rem 2.4rem; color: var(--soft); }
ol.stages li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--gold); font: 400 .95rem/1 var(--head); }
ol.stages b { color: var(--ink); font-weight: 600; }
ul.plain { margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: .5rem; }
ul.plain li::marker { color: var(--gold-deep); }

.source { color: #7d9092; font-size: .9rem; }

.note { color: var(--soft); font-size: 1rem; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
h3 { font: 400 1.45rem/1.25 var(--head); color: var(--gold); margin: 0 0 .6rem; }
.ladder.three td { width: 26%; }
.ladder.three tbody th { white-space: normal; width: 22%; }

/* What One Mechanism adds: numbered, two across on a wide window. */
ol.adds { list-style: none; counter-reset: a; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
ol.adds li { counter-increment: a; position: relative; padding: 1.4rem 1.4rem 1.2rem 4.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); }
ol.adds li::before { content: counter(a); position: absolute; left: 1.3rem; top: 1.15rem; font: 400 2.2rem/1 var(--head); color: var(--gold-deep); }
ol.adds .said { font-size: 1.15rem; margin: 0 0 .9rem; }
ol.adds p:last-child { margin-bottom: 0; }

/* The list of papers. */
ul.papers { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .9rem; max-width: 60rem; }
ul.papers li { padding: .9rem 1.1rem; border-left: 2px solid var(--line); color: var(--soft); font-size: 1rem; }
ul.papers b { color: var(--ink); font-weight: 600; }
ul.papers a { overflow-wrap: anywhere; }

/* The buttons that choose which sayings show. */
.picks { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.picks button { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--ground-2); color: var(--ink); font: inherit; cursor: pointer; }
.picks button:hover, .picks button:focus-visible { border-color: var(--gold); color: var(--gold); }
.picks button[aria-pressed=true] { background: var(--gold); border-color: var(--gold); color: #1a1205; font-weight: 600; }
ul.sayings.grid { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); gap: .8rem 1rem; margin-top: .8rem; }
ul.sayings .by { display: block; margin-top: .3rem; color: #7d9092; font-size: .85rem; }

/* Pairs of sayings that pull against each other. */
dl.walls { margin: 1.4rem 0 0; display: grid; gap: .8rem; }
dl.walls div { padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(6, 20, 26, .5); }
dl.walls dt { font: italic 1.15rem/1.35 var(--head); color: var(--ink); }
dl.walls dt span { font: 400 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); padding: 0 .35rem; }
dl.walls dd { margin: .35rem 0 0; color: var(--soft); font-size: 1rem; }

/* Verse set apart from the prose. */
blockquote.verse { margin: 1.4rem 0 .5rem; padding: 0 0 0 1.2rem; border-left: 2px solid var(--gold-deep); }
blockquote.verse p { font: italic 1.25rem/1.5 var(--head); color: var(--gold); margin: 0 0 .3rem; }
blockquote.verse cite { font: 400 .9rem/1 var(--body); color: #7d9092; font-style: normal; }
ol.roads { margin-top: 2.2rem; }

/* Old sayings, each with what it describes. */
ul.sayings { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
ul.sayings li { padding: .8rem 1rem; border-left: 2px solid var(--teal); background: rgba(108, 195, 187, .06); border-radius: 0 8px 8px 0; color: var(--soft); font-size: 1rem; }
ul.sayings q { display: block; font: italic 1.15rem/1.35 var(--head); color: var(--ink); quotes: none; margin-bottom: .15rem; }
.band { padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem); }
.band + .band { border-top: 1px solid var(--line); }
.band.lift { background: var(--ground-2); }
.col { max-width: var(--wide); margin: 0 auto; }
.read { max-width: var(--read); }

h1, h2 { font-family: var(--head); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.1; max-width: 18ch; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.18; margin-bottom: 1.2rem; }
p { margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); color: var(--soft); max-width: 36rem; margin-top: 1.6rem; }
.said {
  font: italic clamp(1.25rem, 2vw, 1.6rem)/1.45 var(--head);
  color: var(--gold);
  border-left: 2px solid var(--gold-deep);
  padding-left: 1.2rem; margin: 1.8rem 0;
}

/* The first screen: the line on the left, its picture on the right. */
.first { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* A picture with its line underneath. Pressing it opens it large. */
figure.plate { margin: 0; }
figure.plate button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #000; cursor: zoom-in;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(230, 182, 92, .06);
}
figure.plate button:hover, figure.plate button:focus-visible { border-color: var(--gold-deep); }
figure.plate img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; }
figure.plate figcaption { margin-top: .8rem; color: var(--soft); font-size: 1rem; max-width: var(--read); }

/* A picture beside its words; the side swaps on every other band. */
.pair { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.pair.flip > :first-child { order: 2; }

/* The steps from collision to mind. */
.steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.steps li { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 32, 40, .6); }
.steps b { display: block; font: 400 1.3rem/1.3 var(--head); color: var(--gold); margin-bottom: .2rem; }

/* The ladder from atom to brain. */
.ladder-wrap { overflow-x: auto; margin-top: 1.8rem; border: 1px solid var(--line); border-radius: 12px; }
table.ladder { width: 100%; border-collapse: collapse; min-width: 44rem; font-size: 1rem; }
.ladder th, .ladder td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ladder thead th { font: 400 .82rem/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--soft); background: rgba(11, 32, 40, .8); }
.ladder tbody th { font: 400 1.15rem/1.3 var(--head); color: var(--ink); white-space: nowrap; }
.ladder tbody tr:last-child th, .ladder tbody tr:last-child td { border-bottom: 0; }
.ladder .none { color: #6f8588; }
.ladder .some { color: var(--teal); }
.ladder .most { color: var(--gold); }
dl.four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 1.8rem 0 0; }
dl.four dt { font: 400 1.2rem/1.3 var(--head); color: var(--gold); }
dl.four dd { margin: .2rem 0 0; color: var(--soft); }

/* The three ways to prove it wrong. */
ol.wrong { margin: 1.6rem 0 0; padding: 0; list-style: none; counter-reset: w; display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
ol.wrong li { counter-increment: w; padding: 1.3rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); }
ol.wrong li::before { content: counter(w); display: block; font: 400 2.2rem/1 var(--head); color: var(--gold-deep); margin-bottom: .7rem; }

.after { margin-top: 2rem; }

/* Doors to the areas. */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.6rem; margin-top: 1.6rem; }
a.door { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ground); color: var(--ink); text-decoration: none; }
a.door:hover, a.door:focus-visible { border-color: var(--gold); color: var(--ink); }
a.door img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; }
a.door div { padding: 1.1rem 1.3rem 1.3rem; }
a.door b { display: block; font: 400 1.5rem/1.2 var(--head); color: var(--gold); margin-bottom: .3rem; }
a.door span { color: var(--soft); }

/* The last band and the foot. */
.give { max-width: var(--read); }
a.btn {
  display: inline-block; margin-top: .6rem; padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--gold); color: #1a1205; text-decoration: none; font-weight: 600;
}
a.btn:hover, a.btn:focus-visible { background: #ffd98a; color: #1a1205; }
footer { padding: 2rem clamp(1rem, 4vw, 3rem) 3rem; border-top: 1px solid var(--line); color: #7d9092; font-size: .95rem; }

/* A picture opened large. */
#big { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 2vmin; background: rgba(2, 8, 11, .94); cursor: zoom-out; }
#big[hidden] { display: none; }
#big img { max-width: 96vw; max-height: 90vh; border-radius: 10px; }
#big button { position: absolute; top: 1rem; left: 1rem; }

/* ---- A live model: the picture on the left, its controls and readings on the right ---- */
.model { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: 2rem; }
canvas.ring { display: block; width: 100%; aspect-ratio: 1; max-height: 78vh; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 50% 50%, #0a1d24 0, #040d11 70%); }
.panel .lab { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: .5rem; }
.panel output { color: var(--gold); font-weight: 400; }
.panel input[type=range] { width: 100%; height: 2rem; accent-color: var(--gold); cursor: pointer; }
.panel .row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; }
.move.plain { border-color: var(--line); font-weight: 400; }
dl.read-outs { margin: 0 0 1.4rem; display: grid; gap: .5rem; }
dl.read-outs div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 8px; }
dl.read-outs dt { color: var(--soft); }
dl.read-outs dd { margin: 0; font-weight: 600; white-space: nowrap; }
.good { color: var(--teal); } .mid { color: var(--gold); } .bad { color: #ff6a55; }
ol.try { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; color: var(--soft); }
ol.try b { color: var(--ink); }
ol.try li::marker { color: var(--gold-deep); }

/* ---- Explain Your World: the questionnaire ---- */
.world { max-width: 56rem; }
.part { padding: 1.6rem 0 1.8rem; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.part:first-child { border-top: 0; padding-top: 0; }
.part .ask { color: var(--soft); margin-bottom: 1rem; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.2rem; margin-bottom: 1.3rem; }
.ticks.one { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.ticks label { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ticks label:hover { border-color: var(--gold-deep); }
.ticks label:has(input:checked) { border-color: var(--gold); background: rgba(230, 182, 92, .08); }
.ticks input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--gold); cursor: pointer; }
.part label.open { display: block; font: 400 1.2rem/1.4 var(--head); color: var(--ink); margin-bottom: .6rem; }
.part textarea { display: block; width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ground-2); color: var(--ink); font: inherit; line-height: 1.55; resize: vertical; }
.part textarea:focus { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
.trap { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }
.row.send { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.6rem; }
.row.send .btn { margin-top: 0; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: .8rem 2rem; }
.row.send .btn:disabled { opacity: .5; cursor: default; }
.say { min-height: 1.6rem; margin: 1rem 0 0; color: var(--soft); }
.say.ok { color: var(--teal); } .say.warn { color: var(--gold); }

/* ---- Films ---- */
.series { margin-top: 2.6rem; }
.series .ask { color: var(--soft); }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.6rem; margin-top: 1rem; align-items: start; }
.film { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ground-2); }
.film.wide { grid-column: span 2; }
.film .screen { position: relative; background: #000; aspect-ratio: 9 / 16; }
.film.wide .screen { aspect-ratio: 16 / 9; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film .play { position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1.5rem; border: 0; cursor: pointer; color: var(--ink); font: 400 1.5rem/1.25 var(--head); text-align: center;
  background: radial-gradient(circle at 50% 40%, #12323a 0, #06141a 75%); }
.film .play .mark { display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: var(--gold); color: #1a1205; font-size: 1.5rem; padding-left: .25rem; }
.film .play:hover .mark, .film .play:focus-visible .mark { background: #ffd98a; }
.film .stop { position: absolute; right: .7rem; top: .7rem; padding: .4rem .9rem; background: rgba(6, 20, 26, .85); }
.film .words { padding: 1rem 1.2rem 1.2rem; }
.film .words h3 { margin-bottom: .3rem; }
.film .words p:last-child, .film .words ul:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .film.wide { grid-column: auto; } }

/* ---- The scale zoom ---- */
.zoomband { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
h1.small { font-size: clamp(1.9rem, 3.4vw, 3rem); max-width: none; }
.zoomhead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1rem 3rem; align-items: end; margin-bottom: 1.6rem; }
.zoomhead .lead { margin: 0; font-size: 1.1rem; max-width: none; }
.zoom { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr) minmax(16rem, 24rem); gap: 1.6rem; align-items: start; }

/* The rail: every stop, largest at the top. The lit stretch is the band where paying happens. */
.rail { list-style: none; margin: 0; padding: 0; position: relative; }
.rail::before { content: ""; position: absolute; left: .68rem; top: .9rem; bottom: .9rem; width: 2px; background: var(--line); }
.rail li { position: relative; }
.rail button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .34rem .4rem .34rem 0; border: 0; background: none; color: var(--soft); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; border-radius: 6px; }
.rail button:hover, .rail button:focus-visible { color: var(--ink); }
.rail .dot { position: relative; z-index: 1; flex: none; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid var(--line); background: var(--ground); }
.rail .pays .dot, .rail .edge .dot { border-color: var(--gold-deep); background: radial-gradient(circle, var(--gold) 0 34%, #5a3f12 36% 100%); box-shadow: 0 0 12px rgba(230, 182, 92, .55); }
.rail .home .dot { border-color: var(--teal); }
.rail .pays::before, .rail .edge::before { content: ""; position: absolute; left: .68rem; top: 0; bottom: 0; width: 2px; background: var(--gold-deep); z-index: 0; }
.rail .here button { color: var(--ink); font-weight: 600; }
.rail .here .dot { outline: 2px solid var(--ink); outline-offset: 3px; }

/* The stage: two pictures, one over the other. A zoom moves one past you and brings the next up from far away. */
.stage { position: relative; aspect-ratio: 7 / 4; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: transform .9s cubic-bezier(.5, 0, .2, 1), opacity .9s ease; will-change: transform, opacity; }
.stage img.on { opacity: 1; transform: scale(1); }
.stage img.from-far { opacity: 0; transform: scale(.35); transition: none; }
.stage img.from-near { opacity: 0; transform: scale(2.8); transition: none; }
.stage img.to-near { opacity: 0; transform: scale(2.8); }
.stage img.to-far { opacity: 0; transform: scale(.35); }
.flag { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .45rem .9rem; border-radius: 999px; background: var(--gold); color: #1a1205; font-weight: 600; font-size: .95rem; }
.credit { margin: .5rem 0 0; color: var(--soft); font-size: .85rem; }
.moves { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
.move { padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--gold-deep); background: var(--ground-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.move:hover:not(:disabled), .move:focus-visible { background: var(--gold); color: #1a1205; }
.move:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.count { color: var(--soft); font-size: .95rem; }

/* What the stop is, and whether it pays. */
.tell h2 { margin-bottom: .2rem; }
.tell .size { color: var(--soft); margin-bottom: 1rem; }
.tell .said { font-size: 1.2rem; margin: 0 0 1rem; }
.meter { display: inline-flex; align-items: center; gap: .65rem; padding: .5rem 1rem .5rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); margin-bottom: 1.1rem; }
.meter .lamp { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #17292e; border: 1px solid var(--line); }
.meter.pays, .meter.edge { border-color: var(--gold-deep); color: var(--gold); }
.meter.pays .lamp, .meter.edge .lamp { background: var(--gold); border-color: #ffe2a3; box-shadow: 0 0 14px 3px rgba(230, 182, 92, .7); }
.meter.home { border-color: var(--teal); color: var(--teal); }
.meter.home .lamp { background: #24514e; border-color: var(--teal); }

@media (max-width: 1150px) {
  .zoom { grid-template-columns: 12.5rem minmax(0, 1fr); }
  .tell { grid-column: 1 / -1; max-width: var(--read); }
}
@media (max-width: 900px) {
  .zoomhead { grid-template-columns: minmax(0, 1fr); }
  .zoom { grid-template-columns: minmax(0, 1fr); }
  .rail { display: flex; flex-wrap: wrap; gap: .3rem .2rem; order: 2; }
  .rail::before, .rail .pays::before, .rail .edge::before { display: none; }
  .rail button { padding: .3rem .7rem .3rem .3rem; border: 1px solid var(--line); border-radius: 999px; }
  .rail .here button { border-color: var(--ink); }
  .rail .here .dot { outline: 0; }
  .view { order: 1; } .tell { order: 3; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .zoomhead { margin-bottom: .8rem; }
  .zoomhead .lead { display: none; }
  h1.small { font-size: 1.6rem; }
  .zoom .stage { aspect-ratio: auto; height: calc(100vh - 15.5rem); min-height: 12rem; }
  .rail button { padding-top: .12rem; padding-bottom: .12rem; font-size: .85rem; }
  .rail .dot { width: 1.1rem; height: 1.1rem; }
  .rail::before, .rail .pays::before, .rail .edge::before { left: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .stage img { transition: opacity .3s ease; } }

/* ---- Small and short windows, for every page ---- */
/* Tablets held upright: one column, picture first. */
@media (max-width: 900px) {
  /* The areas drop to a row of their own under the name. */
  .bar { flex-wrap: wrap; row-gap: .2rem; }
  .ways { flex-basis: 100%; margin-left: 0; justify-content: flex-start; }
  .ways { gap: .1rem .15rem; }
  .ways a { padding: .32rem .5rem; font-size: .95rem; }
  section[id] { scroll-margin-top: 7.5rem; }
  .first, .pair { grid-template-columns: minmax(0, 1fr); }
  .pair.flip > :first-child { order: 0; }
  ol.wrong { grid-template-columns: minmax(0, 1fr); }
  .model { grid-template-columns: minmax(0, 1fr); }
  canvas.ring { max-height: 60vh; margin: 0 auto; width: auto; max-width: 100%; }
  ol.adds { grid-template-columns: minmax(0, 1fr); }
  h1 { max-width: none; }
}
/* A short, wide window: the first screen still shows the line, its meaning and the picture. */
@media (max-height: 640px) and (min-width: 901px) {
  .band { padding-top: 1.6rem; padding-bottom: 2.2rem; }
  h1 { font-size: 2.6rem; }
  .lead { margin-top: 1rem; font-size: 1.1rem; }
  .first figure.plate img { max-height: calc(100vh - 11rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
