@font-face { font-family: "League Gothic"; src: url(fonts/LeagueGothic.woff2) format("woff2"); font-display: swap }
@font-face { font-family: Archivo; src: url(fonts/Archivo.woff2) format("woff2"); font-weight: 400 700; font-display: swap }
:root { --paper: #E9E1CD; --green: #10302C; --ochre: #E08A12; --bar: calc(112px + env(safe-area-inset-bottom)); --pad: 16px; --tab: 4 }
* { box-sizing: border-box }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: calc(var(--bar) + 16px) }
html.js body { padding-bottom: var(--bar) }
body { margin: 0; background: var(--paper); color: var(--green); font: 18px/1.55 Archivo, system-ui, sans-serif; overflow-wrap: break-word }
html:not(.js) .js-only { display: none !important }
h1, h2, h3, .band-big, .verse q, .now-title, .row .t, .row .n, .play, .bt, .bign, .words .w { font-family: "League Gothic", Impact, "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase; line-height: 1 }
h1, h2, h3, h4, p, ol, ul { margin: 0 }
h2 { font-size: clamp(56px, 7vw, 96px) }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px }
img { display: block; max-width: 100%; height: auto }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; cursor: pointer }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px }
.now :focus-visible, .bar :focus-visible, dialog :focus-visible { outline-color: var(--ochre) }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 12px 16px; z-index: 30 }
.skip:focus { left: 0 }

/* opening */
.open { display: block }
.cover { width: 100%; height: min(100vw, 50vh); height: min(100vw, 50svh); object-fit: cover; object-position: 50% 100% }
.open-text { padding: 12px var(--pad) 28px; display: grid; gap: 8px }
.open .lead { max-width: 66ch }
.play { background: var(--green); color: var(--paper); text-align: center; white-space: nowrap }
.verses { display: none }
.verse q { display: block; quotes: none; font-size: clamp(44px, 4.8vw, 88px) }
.verse > span { display: block; font-size: 16px }
.play.big { min-height: 64px; min-width: 220px; padding: 0 32px; font-size: 40px; justify-self: start; order: -1 }
.play.big + .hint { order: -1 }
.open audio { width: 100% }
@media (max-width: 899px) { .open h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) } .play.big { width: 100% } }
.err { font-weight: 700 }

/* back sleeve */
.intro { padding: 72px var(--pad) 80px; border-top: 4px solid var(--green) }
.intro p { max-width: 58ch; margin: 0 auto 1.1em; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.6 }
.intro p:last-child { margin-bottom: 0; font-weight: 700 }
.back { display: grid; overflow: hidden }
.face { padding: 32px var(--pad); min-width: 0 }
.face.a { background: var(--ochre); padding-bottom: 12px }
.face ol { list-style: none; padding: 0; margin-top: 16px }
.tear-v { display: none }
.tear-h { display: block; width: 100%; height: 48px }
.row { display: grid; grid-template-columns: 32px 1fr; width: calc(100% + 24px); margin: 0 -12px; padding: 8px 12px 10px; text-align: left; align-items: center }
.row .t, .row .n { font-size: clamp(40px, 3.6vw, 56px) }
.row .m { grid-column: 2; display: flex; gap: 16px; font-size: 16px; line-height: 1.3; font-variant-numeric: tabular-nums }
.row:hover .t { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px }
.row[aria-current] { background: var(--green); color: var(--paper) }
.row[aria-current]:focus-visible { outline-offset: -6px; outline-color: var(--ochre) }
.band { background: var(--green); color: var(--paper); padding: 40px var(--pad) }
.band-big { font-size: clamp(44px, 5.4vw, 88px); color: var(--ochre); max-width: 26ch; text-wrap: balance; margin-bottom: 16px }
.band-big span { display: block; font-size: .5em }
.band p:not(.band-big) { max-width: 66ch }

/* now playing */
.now { background: var(--green); color: var(--paper); border-top: 4px solid var(--paper) }
.art-box { position: relative; height: 30vh; height: 30svh; overflow: hidden }
.art-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s linear }
.art-box img.off { opacity: 0 }
.now-title { font-size: clamp(48px, 4.6vw, 72px); padding: 16px var(--pad) 0 }
.now-title #now-n { color: var(--ochre); margin-right: .15em }
.now-link { padding: 6px var(--pad) 0 }
.words { position: absolute; left: 0; bottom: 0; z-index: 1; background: var(--green) }
.words:not(:empty) { padding: 12px var(--pad) 8px }
.words .w { display: block; font-size: 40px; color: var(--ochre) }
.words .e { display: block }
.now-code { padding: 12px var(--pad) 28px; min-width: 0 }
.panels { display: grid; gap: 12px; min-width: 0 }
.panel { border: 2px solid var(--paper); min-width: 0; display: flex; flex-direction: column; height: 50vh; height: calc(round(down, 50vh - 64px, 22px) + 64px) }
.panels.two .panel { height: 25vh; height: calc(round(down, max(25vh, 200px) - 64px, 22px) + 64px); min-height: 190px }
.ph { display: flex; gap: 4px 16px; align-items: center; justify-content: space-between; padding: 4px 12px; border-bottom: 2px solid var(--paper); font-size: 16px; min-height: 48px }
.ph b { font-weight: 700 }
.ph .fb { display: flex; gap: 12px; align-items: center; font-variant-numeric: tabular-nums }
.follow { background: var(--ochre); color: var(--green); padding: 0 12px; min-height: 36px; font-weight: 700 }
.follow:focus-visible { outline-color: var(--paper) !important }
.code { overflow: auto; flex: 1; min-height: 0; position: relative; font: 14px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; overscroll-behavior: auto; outline-offset: -3px !important }
.code::-webkit-scrollbar, dialog pre::-webkit-scrollbar { width: 12px; height: 12px }
@supports not selector(::-webkit-scrollbar) { .code, dialog pre { scrollbar-color: var(--ochre) var(--green) } }
.code::-webkit-scrollbar-corner { background: var(--green) }
.code::-webkit-scrollbar-thumb, dialog pre::-webkit-scrollbar-thumb { background: var(--ochre); border: 2px solid var(--green) }
.cl { display: flex; width: max-content; min-width: 100%; border-left: 6px solid transparent }
.cl pre { margin: 0; font: inherit; white-space: pre; padding-right: 24px }
.cl .g { flex: 0 0 76px; padding-left: 6px; text-align: left; white-space: nowrap }
.cl button.g { text-decoration: underline; text-underline-offset: 3px }
.cl button.g:focus-visible { outline-offset: -3px }
.cl.lit { border-left-color: var(--ochre); color: var(--ochre) }
.code-note { margin-top: 12px; font-size: 16px; max-width: 66ch }

/* songs */
.songs { padding-top: 48px }
.songs > h2 { padding: 0 var(--pad) 24px }
.song-text { padding: 20px var(--pad) 56px; min-width: 0 }
.song h3 { font-size: clamp(56px, 6vw, 88px); display: flex; gap: .2em; align-items: baseline }
.bign { font-size: 1.5em }
.facts { font-weight: 700; margin: 8px 0 16px }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; background: var(--green); color: var(--paper); border: 2px solid var(--green); font-weight: 700; text-decoration: none }
.btn.alt { background: none; color: var(--green) }
.btn.inv { background: none; color: var(--paper); border-color: var(--paper) }
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px }
.prose > * + * { margin-top: 14px }
.prose { max-width: 66ch }
.prose ul, .prose ol { padding-left: 22px }
.prose li + li { margin-top: 8px }
.prose h3, .prose h4 { margin-top: 28px }
.prose h3 { font-size: 40px }
h4 { font-size: 20px; line-height: 1.3; margin: 28px 0 8px }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em }
.song-art { border-top: 4px solid var(--green) }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45 }
th, td { text-align: left; vertical-align: top; padding: 8px 16px 8px 0; border-top: 2px solid var(--green) }
td:first-child { font-weight: 700 }
@media (max-width: 700px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  table, tbody, tr, td { display: block }
  tr { border-top: 2px solid var(--green); padding: 10px 0 }
  td { border: 0; padding: 0 }
  .args-list td:not(:first-child)::before { content: attr(data-label) ": " }
}
details { border-top: 2px solid var(--green); margin-top: 24px }
details + details { margin-top: 0 }
details:last-child { border-bottom: 2px solid var(--green) }
summary { cursor: pointer; padding: 12px 36px 12px 0; font-weight: 700; list-style: none; position: relative }
summary::-webkit-details-marker { display: none }
summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 28px; line-height: 1.2 }
details[open] > summary::after { content: "\2212" }
summary:hover { text-decoration: underline; text-decoration-thickness: 2px }
details > .prose { padding: 4px 0 28px }

/* arguments, downloads */
.args-head { background: var(--ochre); padding: 48px var(--pad) 36px }
.args-head p { max-width: 56ch; margin-top: 12px }
.args-list { padding: 0 var(--pad) 56px }
.args-list details { margin-top: 0 }
.args-list details:first-child { border-top: 0 }
.dt { display: block; font: 400 clamp(40px, 4vw, 56px)/1.05 "League Gothic", Impact, sans-serif; text-transform: uppercase }
.ds { display: block; font-weight: 400 }
.args-list summary::after { top: 16px }
.down { border-top: 4px solid var(--green); padding: 48px var(--pad) 64px }
.down > p { max-width: 66ch; margin-top: 16px }
.down h3 { font-size: 40px; margin: 36px 0 12px }
.h2b { margin-top: 64px }
.dl { list-style: none; padding: 0; margin-top: 20px; max-width: 900px }
.dl li { border-top: 2px solid var(--green); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 0 16px; justify-content: space-between }
.dl a { font-weight: 700; padding: 4px 0 }
.credits, .plain { padding: 0; list-style: none }
.credits li, .plain li { padding: 8px 0; max-width: 60ch }

/* player bar */
.bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: var(--bar); background: var(--green); color: var(--paper); border-top: 4px solid var(--paper); display: grid; grid-template: 48px 60px / auto 1fr auto; padding-bottom: env(safe-area-inset-bottom); column-gap: 12px }
.wave { grid-column: 1 / -1; position: relative; height: 48px; touch-action: none; user-select: none; -webkit-user-select: none }
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.seek { position: absolute; inset: 0; cursor: pointer }
.bar .seek:focus-visible { outline-offset: -3px }
.mark { position: absolute; top: 0; width: 44px; height: 44px; transform: translateX(-50%); display: flex; align-items: flex-start; justify-content: center }
.mark span { background: var(--green); color: var(--ochre); border: 2px solid var(--ochre); font: 400 22px/23px "League Gothic", Impact, sans-serif; width: 26px; height: 26px; text-align: center; position: absolute; left: 50%; top: 1px; transform: translateX(-50%) }
.mark:focus-visible { outline-offset: -3px }
.join { position: absolute; top: 13px; height: 2px; background: var(--ochre); pointer-events: none; transform-origin: 0 50% }
.join.draw { animation: draw .6s linear both }
@keyframes draw { from { transform: scaleX(0) } }
.ctl { display: flex; align-items: center; padding-left: 8px }
.ctl button { width: 48px; height: 56px; display: inline-flex; align-items: center; justify-content: center }
.ctl svg { width: 24px; height: 24px; fill: var(--paper) }
.bar .play { width: auto; min-width: 96px; height: 48px; background: var(--ochre); color: var(--green); font-size: 28px; padding: 0 12px }
.bar .ctl .play:focus-visible { outline-color: var(--paper) }
.bt { font-size: 24px; align-self: center; padding-top: .12em; text-wrap: balance }
.time { font-size: 15px; align-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 12px }

dialog { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; background: var(--green); color: var(--paper) }
dialog[open] { display: flex; flex-direction: column }
.dlg-head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 12px var(--pad); border-bottom: 2px solid var(--paper) }
.dlg-head h2 { font-size: 56px }
.dlg-head span { display: flex; gap: 12px }
dialog pre { flex: 1; min-height: 0; margin: 0; overflow: auto; padding: 16px var(--pad); font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: var(--tab); outline-offset: -3px !important }

@media (min-width: 900px) {
  :root { --bar: calc(88px + env(safe-area-inset-bottom)); --pad: 48px }
  .open { display: grid; grid-template-columns: min(calc(100vh - 88px), 50vw) 1fr; grid-template-columns: min(calc(100svh - 88px), 50vw) 1fr; align-items: stretch }
  .cover { width: 100%; height: auto; aspect-ratio: 1; align-self: start }
  .open-text { align-content: center; padding: 24px var(--pad); gap: 24px }
  .open h1 { font-size: 64px; background: var(--ochre); padding: 16px 16px 4px; justify-self: start }
  .verses { display: grid; gap: 16px }
  .play.big { width: 100%; min-height: 80px; font-size: 48px }
  .play.big, .play.big + .hint { order: 0 }
  .back { grid-template-columns: 1fr 48px 1fr; position: relative }
  .face { padding: 64px var(--pad) 72px }
  .face.a { padding-right: 24px; padding-bottom: 72px } .face.b { padding-left: 32px }
  .tear-v { display: block; width: 48px; height: 100%; position: absolute; left: calc(50% - 24px); top: 0 }
  .tear-h { display: none }
  .face.b { grid-column: 3 }
  .row { grid-template-columns: 48px 1fr auto; min-height: 84px }
  .row .m { grid-column: 3; gap: 20px; font-size: 18px; padding-top: 4px } .row .m span:first-child { width: 3em; text-align: right } .row .m span:last-child { width: 4.6em; text-align: right }
  .band { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; padding: 56px var(--pad) }
  .band-big { margin: 0 }
  .now { display: grid; grid-template-columns: minmax(300px, 30%) minmax(0, 1fr); align-items: start }
  .art-box { height: auto; aspect-ratio: 1 }
  .now-code { padding: 32px }
  .panel, .panels.two .panel { height: 66vh; height: calc(round(down, max(66vh, 360px) - 64px, 24px) + 64px); min-height: 360px }
  .panels.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) }
  .panels.two .ph { flex-wrap: wrap }
  .code { font-size: 15px; line-height: 24px }
  .words:not(:empty) { padding: 16px 24px 12px }
  .song { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: start; border-top: 4px solid var(--green) }
  .song:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 44% }
  .song:nth-of-type(even) .song-art { order: 2 }
  .song-art { border: 0; position: sticky; top: 0 }
  .song-text { padding: 40px var(--pad) 72px }
  .credits { columns: 2; column-gap: 48px } .credits li { break-inside: avoid }
  .bar { grid-template: 84px / auto minmax(120px, 210px) minmax(0, 1fr) auto; column-gap: 20px; align-items: center }
  .wave { grid-column: 3; grid-row: 1; height: 72px; align-self: center }
  .mark span { width: 28px; height: 28px; line-height: 25px; font-size: 24px }
  .join { top: 14px }
  .ctl { grid-column: 1; grid-row: 1; padding-left: 16px }
  .bar .play { min-width: 120px }
  .bt { grid-column: 2; grid-row: 1; font-size: 28px; white-space: normal }
  .time { grid-column: 4; grid-row: 1; font-size: 16px; padding-right: 24px }
  dialog pre { font-size: 15px }
}
@media (max-width: 520px) { .time .tot { display: none } .bar .play { min-width: 88px } .ctl button { width: 44px } .ph { flex-wrap: wrap } }
@media (prefers-reduced-motion: reduce) { .art-box img { transition: none } .join.draw { animation: none } }
@media print { .bar, .now { display: none } }
