/* The pencil ride (/ and /ride/<id>/). A night picture in both themes by the owner's direction (14 November 2026): the page carries
   html[data-night], which holds color-scheme at dark, so every site token that is a light-dark() pair takes its night value here, and the
   ride's own colours are the tokens below. Ported from the approved prototype (slice/ride.css) with its colours, type and sizes kept.
   Loaded after lgu.css, which gives the header, the skip link, .sr and the focus ring. Nothing here animates on its own: the picture moves
   only with the scroll, and the two short fades below are off in reduced motion. */
:root[data-night]{
 color-scheme:dark;
 --r-night:#070b16;--r-paper:#f6efdc;--r-gold:#ffbf5e;--r-label:#c9a35c;--r-soft:#c3cbe0;--r-hint:#aab4cf;--r-on-gold:#1a1407;
 --r-shade:rgb(4 6 14 / .8);--r-shade-deep:rgb(4 6 14 / .95);--r-bar:rgb(4 6 14 / .7);--r-bar-light:rgb(4 6 14 / .82);--r-bar-light-mid:rgb(4 6 14 / .5);
 --r-rule:rgb(201 163 92 / .4);--r-hair:rgb(255 255 255 / .08);--r-ring:rgb(0 0 0 / .4);--r-glow:rgb(255 191 94 / .28);--r-board-fade:rgb(7 11 22 / 0);
 --r-sky-low:linear-gradient(#0a1020 0%,#1a2748 46%,#2c3f6c 78%,#3b4f7f 100%);
 --r-sky-high:linear-gradient(#03040b 0%,#0b0d24 40%,#1c1b45 78%,#2a2458 100%);
 --r-sky-top:linear-gradient(#fffaf0 0%,#f4e6c8 22%,rgb(232 205 160 / .55) 48%,rgb(120 110 150 / 0) 86%);
 --r-vig:radial-gradient(120% 90% at 50% 42%,transparent 55%,rgb(0 0 0 / .5) 100%);
 --r-hoard:#0a1122;--r-panel:#0b101c;--r-panel-edge:rgb(255 199 106 / .34);
 --serif:Georgia,"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","Noto Serif",serif;
}
:root[data-night] .theme-toggle{display:none}
html:has(body.ride-page){background:var(--r-night)}
body.ride-page{background:var(--r-night);color:var(--r-paper);font-family:var(--serif);overscroll-behavior:none;transition:none}
.ride-page main{margin:0;padding:0}
.ride{position:fixed;inset:0;overflow:hidden;background:var(--r-night)}
.sky,.layer,.vig,.hoards{position:absolute;inset:0;width:100%;height:100%}
/* the night over the platform, the thinner air higher up, and the light at the top of the chart */
.sky-low{background:var(--r-sky-low)}
.sky-high{background:var(--r-sky-high);opacity:0}
.sky-top{background:var(--r-sky-top);opacity:0}
/* a platform is lit by its own story */
body[data-platform] .sky-low{background:linear-gradient(var(--sky-a),var(--sky-b))}
body[data-platform] .sky-high{display:none}
body[data-light] #stars{display:none}
.layer{display:block;overflow:hidden}
.hoards{overflow:hidden}
.hoard{position:absolute;left:0;top:0;display:block;will-change:transform;background:var(--r-hoard)}
/* a picture's small lettering is raised on a phone, as it was on the old ride panels (the drawn size is on --s) */
@media (max-width:700px){.hoard text[style*="--s"]{font-size:28px}}
.vig{background:var(--r-vig);pointer-events:none}

/* the header sits on the picture, with the night darkened behind it */
.ride-page .lgu-bar{background:linear-gradient(var(--r-bar),transparent);backdrop-filter:none;border-bottom:0;color:var(--r-paper);gap:1rem;padding:10px max(4vw,1.1rem)}
body[data-light] .lgu-bar{background:linear-gradient(var(--r-bar-light),var(--r-bar-light-mid) 60%,transparent)}
.ride-page .lgu-bar .tag{flex:1;font:italic .95rem var(--serif);color:var(--r-soft);text-align:right}
.ride-page .bar-tools select{background:var(--r-shade);color:var(--r-paper)}
/* the prototype's wordmark, kept down to 360px; the site's own short mark below that, so the bar stays one row */
.ride-page .lgu-bar .wordmark{font:800 .8rem/1 var(--ui);letter-spacing:.2em;white-space:nowrap}
@media (min-width:360px) and (max-width:480px){.ride-page .lgu-bar .wordmark::before{content:none}.ride-page .lgu-bar .wordmark{font-size:.8rem}}
@media (max-width:760px){.ride-page .lgu-bar .tag{display:none}}

/* the words sit on the picture, at the foot of it, with the night darkened behind them */
.say{
 position:fixed;left:0;right:0;bottom:0;z-index:3;
 min-height:34vh;padding:9vh max(6vw,1.25rem) max(5.5vh,2.2rem);
 display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:.7rem;
 background:linear-gradient(transparent,var(--r-shade) 46%,var(--r-shade-deep));
 text-align:center;pointer-events:none;
}
/* on a platform lit by day the band darkens sooner, so a label at its top still clears 4.5:1 (an engineering change to the prototype, 14 November 2026) */
body[data-light] .say{background:linear-gradient(transparent,var(--r-shade) 22%,var(--r-shade-deep) 60%)}
.say-words{display:contents}
.line{margin:0;max-width:34em;font:400 clamp(1.16rem,.9rem + 1.05vw,1.72rem)/1.42 var(--serif);text-wrap:balance;overflow-wrap:break-word}
.label,.heckle span,.board-kicker,.board h3{font:700 .78rem/1 var(--ui);letter-spacing:.16em;text-transform:uppercase;color:var(--r-label)}
.label{margin:0}
.heckle{margin:0;max-width:32em;min-height:1.5em;font:italic 400 clamp(1rem,.86rem + .6vw,1.26rem)/1.4 var(--serif);color:var(--r-gold);text-wrap:balance;transition:opacity .18s ease}
.heckle span{margin-right:.7em;font-style:normal;white-space:nowrap}
.say [data-off]{opacity:0}
.label[data-off]{display:none}
.ride-page .go{
 display:inline-block;margin-top:.4rem;padding:.7rem 1.5rem;min-height:44px;border-radius:999px;
 background:var(--r-gold);color:var(--r-on-gold);text-decoration:none;pointer-events:auto;
 font:700 1.02rem/1.4 var(--ui);letter-spacing:.02em;
 box-shadow:0 0 0 1px var(--r-ring),0 6px 22px var(--r-glow);
}
.go[hidden]{display:none}
.ride-page .go:focus-visible,.board a:focus-visible,.ride-page .wordmark:focus-visible,.steps button:focus-visible,.fine summary:focus-visible{outline:3px solid var(--r-paper);outline-offset:3px}
.hint{position:fixed;right:max(4vw,1.1rem);bottom:1rem;z-index:4;margin:0;font:italic .95rem var(--serif);color:var(--r-hint);transition:opacity .4s ease}
.hint[data-off]{opacity:0}
.reel{width:1px}
html[data-motion=reduced] .heckle,html[data-motion=reduced] .hint{transition:none}

/* stepping line by line, as well as scrolling */
.steps[hidden]{display:none}
.steps{position:fixed;right:max(2vw,.6rem);top:50%;z-index:6;display:flex;flex-direction:column;gap:.5rem;transform:translateY(-50%)}
.steps button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:2px solid var(--r-panel-edge);background:var(--r-shade);color:var(--r-paper)}
.steps .ic{width:22px;height:22px}

/* the words of the ride: a page of text without script, and a list a screen reader reads in place with it */
.words{max-width:40rem;margin:0 auto;padding:6.5rem 1.25rem 2rem;font-size:1.06rem;line-height:1.55}
.ride-live .words{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;padding:0}
.words .pic{margin:0 0 .9rem;max-width:44em;font-style:italic}
.words .pic b{font-style:normal}
.words .where{margin:2rem 0 .6rem;font:700 .78rem/1.3 var(--ui);letter-spacing:.16em;text-transform:uppercase;color:var(--r-label)}
.words .lines{margin:0;padding:0;list-style:none}
.words .said{margin:0 0 .9rem}
.words .who{display:block;font:700 .78rem/1.4 var(--ui);letter-spacing:.06em;color:var(--r-hint)}
.words .said-heckle .text{font-style:italic;color:var(--r-gold)}
.words .read-link{margin:0;font-family:var(--ui)}
.ride-live .words .read-link a:focus{position:fixed;left:12px;top:64px;z-index:99;width:auto;height:auto;padding:12px 16px;border-radius:8px;background:var(--r-panel);color:var(--r-paper);white-space:nowrap;clip:auto;overflow:visible}
.marks sup{margin-left:.15em}
.rc{display:inline-block;min-width:1.2em;text-align:center;color:var(--r-gold);font-family:var(--ui);font-size:.75rem}

/* the fine print: "Sources" opens it, with or without script */
.fine{max-width:40rem;margin:0 auto 3rem;padding:0 1.25rem;font-family:var(--ui)}
.fine summary{display:inline-flex;align-items:center;min-height:44px;padding:0 1.1rem;border:2px solid var(--r-panel-edge);border-radius:999px;background:var(--r-shade);color:var(--r-paper);font:600 .875rem/1 var(--ui);cursor:pointer;list-style:none}
.fine summary::-webkit-details-marker{display:none}
.fine-body{margin-top:.8rem;padding:1.1rem 1.25rem;border:1px solid var(--r-panel-edge);border-radius:12px;background:var(--r-panel);color:var(--r-paper);font-size:.9rem;line-height:1.55}
.fine-body h3{margin:1.2rem 0 .4rem;font:700 .78rem/1.3 var(--ui);letter-spacing:.16em;text-transform:uppercase;color:var(--r-label)}
.fine-body .fine-group:first-child h3{margin-top:0}
.fine-body p{margin:0 0 .6rem}
.fine-body ol{margin:0 0 .6rem;padding-left:1.4rem}
.fine-body li{margin:.3rem 0}
.fine-body li:target,.fine-body li:focus{outline:2px solid var(--r-gold);outline-offset:2px}
.fine-body a{color:var(--r-paper)}
.fine-body small{color:var(--r-hint);font-size:.8rem}
.fine-more{margin-top:1rem!important}
.ride-live .fine{position:fixed;top:68px;right:max(4vw,1.1rem);z-index:7;margin:0;padding:0;max-width:none}
.ride-live .fine summary{float:right}
.ride-live .fine-body{clear:both;width:min(34rem,calc(100vw - 2rem));max-height:calc(100svh - 140px);overflow:auto;overscroll-behavior:contain}

/* after the line: the board, which scrolls up over the picture */
.board{
 position:relative;z-index:5;min-height:100vh;
 padding:16vh max(6vw,1.25rem) 14vh;
 background:linear-gradient(var(--r-board-fade),var(--r-night) 9vh);
 display:flex;flex-direction:column;align-items:center;text-align:center;
}
.board:focus{outline:none}
.board-kicker{margin:0 0 .9rem}
.board h2{margin:0;font:400 clamp(2.2rem,1.4rem + 3.4vw,4rem)/1.05 var(--serif);letter-spacing:-.01em}
.board-ask{margin:1rem 0 0;max-width:30em;font:italic clamp(1.05rem,.95rem + .5vw,1.3rem)/1.45 var(--serif);color:var(--r-soft);text-wrap:balance}
.board-groups{width:min(64rem,100%);margin-top:3.2rem;text-align:left;display:grid;grid-template-columns:repeat(auto-fit,minmax(13.5rem,1fr));gap:2.4rem 2.2rem}
.board h3{margin:0 0 .7rem;padding-bottom:.7rem;border-bottom:1px solid var(--r-rule)}
.board ol{list-style:none;margin:0;padding:0}
.board li a{display:flex;align-items:baseline;gap:.85rem;min-height:2.75rem;padding:.45rem 0;text-decoration:none;font:1.12rem/1.3 var(--serif);border-bottom:1px solid var(--r-hair)}
.board li a b{flex:none;width:1.7em;font:700 .95rem var(--ui);font-variant-numeric:tabular-nums;color:var(--r-gold);text-align:right}
.board li a:hover span,.next:hover,.board-more a:hover{text-decoration:underline;text-decoration-color:var(--r-gold);text-underline-offset:.2em}
.board-game{margin:4rem 0 0;display:flex;flex-direction:column;align-items:center;gap:.9rem}
.board-game span{font:clamp(1.3rem,1.1rem + 1vw,1.9rem)/1.2 var(--serif)}
.board-game em{color:var(--r-hint)}
.board-links{margin:2.6rem 0 0;display:flex;flex-direction:column;align-items:center;gap:1.3rem}
.board-more{margin:3rem 0 0;display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem 1.6rem;font:.95rem var(--ui)}
.next,.board-more a{display:inline-flex;align-items:center;min-height:44px;font:1.12rem var(--serif);text-decoration:none;color:var(--r-soft)}
.board-more a{font:.95rem var(--ui)}
.board-small{min-height:80vh}
