/* An archive's finding aid for a video: the video's own ground, paper and red, its three faces,
   one column that opens to two for the kinds beside the index. Colours agree with the sources list,
   which follows the reader's light or dark setting the same way. */
:root {
  --bg: #F4F0E6; --ink: #17150F; --soft: #5D574A; --rule: #CFC8B6; --panel: #EAE4D4; --red: #B3261E; --on-red: #FFFFFF;
  --disp: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12110E; --ink: #F4F0E6; --soft: #B3AB99; --rule: #3A362C; --panel: #1C1A15; --red: #FF5A47; --on-red: #12110E; color-scheme: dark; }
}

@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap; src: url(/fonts/archivo-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-display: swap; src: url(/fonts/archivo-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

main, footer { max-width: 68rem; margin: 0 auto; padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
main { padding-block: 2.5rem 1rem; display: flex; flex-direction: column; gap: 3.5rem; }

/* ---- the masthead ---- */
.mast { display: flex; flex-direction: column; gap: .9rem; }
.eyebrow { margin: 0; font: 700 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.dot { color: var(--red); }
h1 { margin: 0; font: 900 clamp(2.75rem, 10.5vw, 7.25rem)/.92 var(--disp); letter-spacing: -.025em; text-wrap: balance; }
.sung { color: var(--red); }
.sub { margin: 0; font: 600 clamp(1.05rem, 2.2vw, 1.35rem)/1.35 var(--text); color: var(--soft); }

/* ---- the video ---- */
.video { display: flex; flex-direction: column; gap: .6rem; margin-top: -1.5rem; }
.play, .still { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--rule); background: #0A0907; overflow: hidden; }
.play { cursor: pointer; }
.play img, .still img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--rule); background: #0A0907; }
/* the tab the video hangs on each section's ticker */
.tab { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; background: var(--red); color: var(--on-red); font: 700 .875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.tab.off { background: var(--bg); color: var(--soft); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.tri { width: 0; height: 0; border-style: solid; border-width: .42em 0 .42em .7em; border-color: transparent transparent transparent currentColor; }
.len { font-weight: 400; opacity: .85; }
/* the play control: a red disc in the middle of the cover, over a light shade so it reads on any frame */
.play::after { content: ""; position: absolute; inset: 0; background: rgba(10, 9, 7, .28); }
.disc { position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(4.25rem, 11vw, 6.5rem); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: #FF5A47; color: #12110E; box-shadow: 0 0 0 .5rem rgba(10, 9, 7, .45), 0 .6rem 2rem rgba(0, 0, 0, .5); }
.disc svg { width: 46%; height: 46%; }
.play .len { position: absolute; z-index: 1; right: .75rem; bottom: .75rem; padding: .3rem .5rem; background: rgba(10, 9, 7, .82); color: #F4F0E6; font: 700 .8125rem/1 var(--mono); letter-spacing: .04em; opacity: 1; }
.play:hover::after { background: rgba(10, 9, 7, .12); }
.play:hover .disc, .play:focus-visible .disc { transform: translate(-50%, -50%) scale(1.08); }
@media (prefers-reduced-motion: no-preference) { .disc { transition: transform .15s ease-out; } .play::after { transition: background .15s ease-out; } }
.aside { margin: 0; font-size: .8125rem; color: var(--soft); }

/* ---- the lede and the way to the sources ---- */
.intro { display: flex; flex-direction: column; gap: 1.5rem; margin-top: -1rem; }
.lede { margin: 0; max-width: 44rem; font-size: clamp(1.15rem, 2.1vw, 1.4rem); line-height: 1.45; }
.go { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.button { display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.25rem; background: var(--ink); color: var(--bg); font: 800 1.0625rem/1 var(--disp); text-decoration: none; }
.button:hover { background: var(--red); color: var(--on-red); }
.go-note { flex: 1 1 18rem; min-width: 0; max-width: 30rem; font-size: .9375rem; color: var(--soft); }

/* ---- sections ---- */
section { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
h2 { margin: 0; padding-top: .85rem; border-top: 3px solid var(--red); font: 800 1.5rem/1.1 var(--disp); letter-spacing: -.01em; }
.intro { border: 0; }
.soft { margin: 0; color: var(--soft); font-size: .9375rem; max-width: 44rem; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
@media (min-width: 54rem) { .two { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; } }

.kinds { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 0; }
.kinds dt { margin-top: .75rem; font: 700 .75rem/1.3 var(--mono); letter-spacing: .1em; color: var(--red); }
.kinds dd { margin: 0; font-size: .9375rem; }

.index { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.index li { border-bottom: 1px solid var(--rule); }
.index a { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .55rem 0; text-decoration: none; }
.index .name { font-weight: 600; min-width: 0; }
.index .arrow { color: var(--soft); }
.index a:hover .arrow { color: var(--red); }

.notes { margin: 0; padding-left: 1.15rem; max-width: 46rem; display: flex; flex-direction: column; gap: .55rem; }
.notes li::marker { color: var(--red); }
.dated { margin: .4rem 0 0; max-width: 46rem; padding: .85rem 1rem; background: var(--panel); border-left: 3px solid var(--ink); font-size: .9375rem; }
.dated b { font: 700 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-right: .35rem; }

/* ---- the lyric ---- */
.lyric { columns: 22rem 2; column-gap: 3rem; margin-top: .4rem; }
.stanza { break-inside: avoid; margin: 0 0 1.5rem; }
.stanza h3 { margin: 0 0 .3rem; font: 700 .75rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.stanza p { margin: 0; font-size: .9375rem; line-height: 1.6; }

/* ---- the foot ---- */
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 2rem 3rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); }
.made { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--soft); text-decoration: none; }
.made:hover { color: var(--ink); }
footer .soft { font-size: .8125rem; }
