:root {
  --night: #122b2c;
  --deep: #0d2326;
  --paper: #f5e9cf;
  --muted: #bccbc0;
  --orange: #ff9560;
  --brass: #d5aa69;
  --ink: #203b38;
  --line: #536663;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--paper); background: var(--night); font: 1rem/1.58 var(--body); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #eb814f; outline-offset: 4px; }
img { max-width: 100%; display: block; }
figure, h1, h2, h3, p { margin: 0; }
.wrap { width: min(1296px, 90%); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 8px 16px; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }
header { background: var(--deep); border-bottom: 1px solid #52645b; }
.mast, .foot { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 800 1.5rem/1 var(--display); letter-spacing: .017em; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 2.4vw, 36px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, .brand:hover { color: var(--orange); }
.hero { background: radial-gradient(ellipse at 83% 45%, #254745 0, transparent 58%), var(--night); }
.hero-grid { display: grid; grid-template-columns: .74fr 1.26fr; gap: clamp(24px, 4vw, 68px); align-items: center; padding-block: clamp(42px, 5.3vw, 84px); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .155em; line-height: 1.4; }
.eyebrow i { display: inline-block; width: 21px; height: 5px; border-block: 1px solid currentColor; }
.hero .eyebrow, .credits .eyebrow { color: var(--brass); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
h1 { margin: 20px 0 23px; font-size: clamp(6.5rem, 9.5vw, 9.1rem); text-transform: uppercase; line-height: .79; letter-spacing: -.038em; }
h1 em { display: inline-block; font-style: normal; transform: skew(-8deg); transform-origin: left bottom; color: var(--orange); text-shadow: 2px 3px 0 #744634; }
h2 { font-size: clamp(3rem, 5.45vw, 5.3rem); letter-spacing: -.035em; line-height: .98; margin: .15em 0 .32em; }
h3 { font-size: 1.75rem; line-height: 1.05; }
.standfirst { max-width: 35ch; font-size: clamp(1.02rem, 1.45vw, 1.27rem); line-height: 1.48; color: #e2e4d5; }
.film-button { margin-top: 25px; display: inline-flex; gap: .65em; align-items: center; background: var(--orange); color: #241f17; padding: .78em 1.2em; border-radius: 3px; box-shadow: 0 3px 0 #a95836; font-weight: 800; text-decoration: none; }
.film-button:hover { background: #ffab78; }
.triangle { display: inline-block; height: 0; width: 0; border-block: .38em solid transparent; border-left: .62em solid currentColor; flex-shrink: 0; }
.hero-still a, .frames figure a { position: relative; display: block; }
.hero-still a { padding: 5px; background: #1c2b28; border: 1px solid var(--brass); border-radius: 15px 15px 5px 5px; box-shadow: 0 13px 26px #0b202194; }
.hero-still img { width: 100%; height: auto; border-radius: 10px 10px 2px 2px; }
.hero-still figcaption { margin-top: 10px; font-size: .78rem; color: var(--muted); }
.runtime, .cue { position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #102727ed; color: #faedce; font-size: .77rem; font-weight: 750; font-variant-numeric: tabular-nums; padding: 3px 8px; right: 12px; bottom: 12px; border-radius: 2px; }
.record { background: var(--paper); color: var(--ink); border-block: 3px double #9a8058; }
.record-grid { padding-block: 18px; display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3.5vw, 55px); }
.record-heading, #deck { display: flex; align-items: center; gap: .85rem; }
.record-heading h2 { font-size: 1.85rem; margin: .06em 0 0; letter-spacing: -.015em; }
.record-heading .eyebrow { color: #715235; font-size: .62rem; }
.disc { width: 41px; aspect-ratio: 1; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 4%, #ae582e 5% 23%, transparent 24%), repeating-radial-gradient(circle, #24403d 0 2px, #35514a 3px, #1b3531 4px); }
.transport { min-width: 0; }
.transport audio { width: 100%; display: block; }
#deck { gap: 10px; }
.play-button { height: 42px; width: 42px; flex: none; display: grid; place-items: center; color: var(--paper); background: #254b45; border: 0; border-radius: 50%; }
.play-button:hover { background: #386057; }
.play-button .triangle { margin-left: 3px; }
.is-playing .triangle { height: .8em; width: .65em; border: 0; border-inline: .2em solid currentColor; margin: 0; }
#elapsed, #length { font-size: .82rem; font-variant-numeric: tabular-nums; }
#position { min-width: 0; flex: 1; height: 32px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
#position::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(to right, #8d4831 var(--progress,0%), #c9bba1 var(--progress,0%)); }
#position::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); }
#position::-moz-range-track { height: 5px; background: #c9bba1; }
#position::-moz-range-progress { height: 5px; background: #8d4831; }
#position::-moz-range-thumb { background: var(--ink); border: 0; }
.source-link, .couplet { font-size: .83rem; font-weight: 750; }
.source-link { padding-block: 10px; }
.play-error:not(:empty), #clip-status:not(:empty) { margin-top: .65rem; font-size: .85rem; }
.arcade, .scenes, .words, .credits { padding-block: clamp(48px, 6vw, 92px); }
.arcade { background: #10272a; }
.arcade-grid { display: grid; grid-template-columns: .59fr 1.41fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.arcade-copy .eyebrow, .scenes .eyebrow { color: var(--orange); }
.arcade-copy > p:not(.eyebrow) { color: #d3ddcf; max-width: 36ch; }
.scoreboard { display: flex; width: fit-content; margin: 24px 0 14px; padding: 10px 0; border-block: 1px solid var(--line); gap: clamp(26px, 4vw, 55px); }
.scoreboard div { display: grid; }
.scoreboard span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.scoreboard output { font-family: var(--display); font-size: 2rem; line-height: 1.2; color: #ffc47f; font-variant-numeric: tabular-nums; }
.arcade-copy .key-help { font-size: .84rem; color: var(--muted); }
.cabinet { overflow: hidden; border: 1px solid #ab8252; border-radius: 9px; background: #1e3331; box-shadow: 0 9px 16px #091e2070; }
.playfield { position: relative; width: 100%; aspect-ratio: 16/9; }
.playfield:focus-visible { outline-offset: -4px; z-index: 1; }
.playfield img, #game { position: absolute; inset: 0; width: 100%; height: 100%; }
.apron { padding: 12px 16px 9px; }
.arcade-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.arcade-controls button { min-height: 42px; padding: 3px; color: var(--paper); border: 1px solid #a59875; border-bottom: 3px solid #938366; border-radius: 4px; background: #304b46; font-weight: 750; font-size: .88rem; touch-action: none; user-select: none; -webkit-user-select: none; }
.arcade-controls #launch { background: #f09a65; border-color: #e7ae82; border-bottom-color: #ab7049; color: #2a2723; }
.arcade-controls button:active, .arcade-controls button.active { transform: translateY(1px); border-bottom-width: 1px; }
#ball-status { margin-top: .45rem; text-align: center; font-size: .78rem; color: #d8dece; }
.scenes { background: #1c3735; border-top: 1px solid var(--line); }
.scenes h2 { margin-bottom: .4em; }
.frames { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px, 2.5vw, 40px); }
.frames img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border: 1px solid #978463; }
.frames a:hover img, .hero-still a:hover { border-color: #ffe3ac; }
.frames h3 { margin: .55em 0 .22em; }
.frames p { font-size: .94rem; color: #d2ddcf; max-width: 38ch; }
.words { background: var(--paper); color: var(--ink); }
.words-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: start; }
.words-intro { position: sticky; top: 30px; max-width: 38ch; }
.words-intro .eyebrow { color: #86522c; }
.versions { display: flex; width: fit-content; margin: 22px 0 8px; border: 1px solid #776d55; border-radius: 4px; }
.versions button { background: transparent; border: 0; min-height: 42px; color: var(--ink); padding: 6px 20px; font-weight: 700; }
.versions [aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.couplet { display: flex; align-items: center; gap: .55em; min-height: 42px; background: none; padding: 0 4px; color: #7b3f27; border: 0; text-decoration: underline; text-underline-offset: .25em; }
.lyric-sheet { padding-left: clamp(24px,4vw,64px); border-left: 1px solid #c1b49b; }
.stanza + .stanza { margin-top: 1.25rem; }
.stanza h3 { margin-bottom: .38em; color: #815133; font: 800 .73rem/1.4 var(--body); text-transform: uppercase; letter-spacing: .12em; }
.stanza p { font-size: clamp(1rem,1.28vw,1.18rem); line-height: 1.55; }
#lyric-word { text-decoration: underline dotted #aa713c; text-underline-offset: .16em; }
.credits-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; }
.credits p:not(.eyebrow) { max-width: 68ch; color: #d4ddcf; }
.credits p + p { margin-top: .7rem; }
footer { border-top: 1px solid var(--line); background: var(--deep); }
.foot { min-height: 80px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: .82fr 1.18fr; gap: 24px; }
  h1 { font-size: clamp(5.1rem, 11vw, 7rem); }
  .arcade-grid { grid-template-columns: .65fr 1.35fr; gap: 22px; }
  .record-grid { column-gap: 20px; }
}
@media (max-width: 720px) {
  .wrap { width: min(92%, 620px); }
  .mast { min-height: 55px; }
  .brand { font-size: 1.3rem; gap: 5px; }
  .brand img { width: 26px; height: auto; }
  nav { gap: 13px; }
  nav a { font-size: .8rem; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 30px 26px; gap: 23px; }
  h1 { font-size: clamp(4.6rem, 13.2vw, 7.1rem); margin: 12px 0; line-height: .92; }
  h1 br { display: none; }
  h1 em { margin-left: .12em; }
  .standfirst { font-size: 1rem; max-width: 48ch; }
  .film-button { margin-top: 16px; padding: .6em 1em; }
  .hero-still figcaption { margin-top: 6px; }
  .record-grid { grid-template-columns: 1fr auto; gap: 12px 8px; }
  .transport { grid-column: 1/-1; grid-row: 2; }
  .record-heading { gap: 7px; }
  .record-heading h2 { font-size: 1.5rem; }
  .disc { width: 31px; }
  .source-link { font-size: .75rem; }
  .arcade-grid, .words-grid, .credits-grid { grid-template-columns: 1fr; gap: 22px; }
  .arcade-copy > p:not(.eyebrow) { max-width: 50ch; }
  .scoreboard { margin: 13px 0 8px; padding-block: 5px; }
  .frames { grid-template-columns: 1fr; gap: 25px; }
  .frames figure { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: center; }
  .frames h3 { margin-top: 0; }
  .words-intro { position: static; max-width: 48ch; }
  .lyric-sheet { padding: 20px 0 0; border-left: 0; border-top: 1px solid #c1b49b; }
  .foot { flex-wrap: wrap; gap: 0 16px; padding-block: 10px; }
}
@media (max-width: 420px) {
  nav { gap: 10px; }
  .mast { gap: 7px; }
  h1 { font-size: 14.5vw; }
  .frames figure { display: block; }
  .frames h3 { margin-top: .45em; }
  .apron { padding: 8px; }
  .arcade-controls { gap: 5px; }
  .arcade-controls button { font-size: .76rem; min-height: 44px; }
}
.hero-copy { container-type: inline-size; }
.first-line { white-space: nowrap; }
h1 { font-size: clamp(3.9rem, 25cqi, 8.2rem); }
@media (max-width: 720px) {
  h1 { font-size: clamp(3.9rem, 18.7cqi, 6.1rem); }
  h1 br { display: initial; }
  h1 em { margin-left: 0; }
}
