/* /noel/: the Christmas album's film, its songs, and what they are made of, in the film's own look:
   its ground and colours (xmas_film/brand.py), its font (noel-8x8.woff2: the 8 by 8 glyphs every
   frame is made of), its title screen in the frame (tools/noel-art.py makes both). The
   font is set at 16px and 24px alone, a dot of a glyph 2 or 3 pixels.
   The film comes first and stays in sight on a phone while its songs are scrolled; beside them on
   a wide screen. */

@font-face { font-family: "Noel 8x8"; src: url("noel-8x8.woff2") format("woff2"); font-display: swap; }

.noel {
  color-scheme: dark;
  --cell: "Noel 8x8", var(--mono);
  --gold: #ffc74d;
  --bg: #101112; --fg: #ebe7e0; --mute: #b9b4ab; --faint: #8f8b84; --line: #2b2d2e; --panel: #1d1f20;
  --link: #ff5c96; --accent-soft: #2a1620; --ph-bg: #4a3d00; --ph-fg: #ffe9a3; --focus: var(--gold);
  padding-bottom: 4rem; background: var(--bg); color: var(--fg);
}
.noel h1, .noel h2, .noel h3, .noel-head p, .noel-facts, .noel-songs, .noel-whole, .noel-start, .noel .btn, .noel-credits dt {
  font-family: var(--cell); font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: 0; font-synthesis: none; text-wrap: wrap;
}

/* the three lines a song's title card ends on */
.noel-head { padding: 1.5rem 0 1rem; text-align: center; color: var(--mute); }
.noel-head h1, .noel-head p { margin: 0; }
.noel-head h1 { color: var(--fg); }
.noel-head h1 + p { color: var(--faint); }

/* The frame. On an upright screen with room under it, it stays under the site's bar while its
   songs are scrolled: --noel-top is that bar's height, which noel.js measures. */
.noel-frame { padding: .5rem 0; background: var(--bg); scroll-margin-top: var(--noel-top); }
@media (max-width: 59.99rem) and (orientation: portrait) and (min-height: 540px) {
  .noel-frame { position: sticky; top: var(--noel-top); z-index: 5; }
}
.noel-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000000; box-shadow: 0 0 0 1px var(--line); }
.noel-screen > img, .noel-screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.noel-start, .noel-wait { position: absolute; left: 50%; bottom: 7%; translate: -50%; margin: 0; white-space: nowrap; }
.noel-start { display: flex; align-items: center; min-height: 2.75rem; padding: 0 16px; background: var(--brand); color: #ffffff; text-decoration: none; text-transform: uppercase; }
.noel-start::after { content: ""; position: absolute; inset: -100vmax; }
.noel-start:hover { background: #ffffff; color: var(--bg); }
.noel-go::before { content: "\25BA\00A0"; }

.noel-facts { margin: .75rem 0 0; color: var(--gold); }
.noel-facts span { display: block; }

.noel-list { margin-top: 2rem; }
.noel-list h2 { margin: 0 0 .5rem; color: var(--mute); }
.noel-whole { margin: 0; border-bottom: 1px solid var(--line); }
.noel-songs { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: song; text-transform: uppercase; }
.noel-songs li { counter-increment: song; border-bottom: 1px solid var(--line); }
.noel-songs a, .noel-songs span, .noel-whole a { display: flex; gap: 16px; min-height: 2.75rem; padding: .625rem 8px; color: var(--fg); text-decoration: none; }
.noel-songs a::before, .noel-songs span::before { content: counter(song, decimal-leading-zero); flex: none; color: var(--faint); }
.noel-whole a::before, .noel-songs a[aria-current]::before { content: "\25BA\00A0"; flex: none; color: var(--brand); }
.noel-songs a:hover, .noel-whole a:hover { background: var(--panel); }
.noel-whole a[aria-current] { color: var(--link); }
.noel-songs a[aria-current] { background: var(--panel); }
/* a song's title in its title card's two colours, one down to the other (CARD in the film's
   xmas_film/NAME.py), the lower held short of whole so it reads at this size */
.noel-songs li > * > b { font-weight: 400; background: linear-gradient(var(--high), var(--low) 135%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.noel-songs li:nth-child(1) { --high: #ffd675; --low: #8f4de0; }
.noel-songs li:nth-child(2) { --high: #ffdb5c; --low: #5ca8ff; }
.noel-songs li:nth-child(3) { --high: #ffb89e; --low: #b80f29; }
.noel-songs li:nth-child(4) { --high: #ffd14d; --low: #cc1a38; }
.noel-songs li:nth-child(5) { --high: #b8d4ff; --low: #ff9e29; }
.noel-songs li:nth-child(6) { --high: #8cffb8; --low: #996bff; }
.noel-songs li:nth-child(7) { --high: #cce0ff; --low: #ffb32e; }
.noel-songs li:nth-child(8) { --high: #ffffff; --low: #ed1f33; }
.noel-songs li:nth-child(9) { --high: #ffdb59; --low: #d92933; }
.noel-songs li:nth-child(10) { --high: #4dd961; --low: #f23324; }
.noel-songs li:nth-child(11) { --high: #ccffb3; --low: #148538; }
.noel-songs li:nth-child(12) { --high: #ffed8c; --low: #40a8ff; }

@media (min-width: 60rem) {
  .noel-head { padding: 2.5rem 0 1.5rem; }
  .noel-watch { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(19rem, 1fr); grid-template-rows: auto 1fr; column-gap: 2.5rem; }
  .noel-frame { grid-column: 1; grid-row: 1; padding: 0; }
  .noel-facts { grid-column: 1; grid-row: 2; margin-top: 1rem; }
  .noel-list { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .noel-about h2, .noel-rest h2 { font-size: 24px; }
}

/* under the film: what sings it, and the rest */
.noel-about { margin-top: 3.5rem; padding: .5rem 0 3rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.noel-about h2, .noel-rest h2 { color: var(--gold); }
.noel h3 { color: var(--fg); }
.noel .btn { min-height: 2.75rem; padding: .5rem 16px; border-radius: 0; text-transform: uppercase; box-shadow: none; }
.noel .btn.quiet { background: transparent; color: var(--fg); border-color: var(--mute); }
.noel .btn.quiet:hover, .noel .btn:hover { background: #ffffff; border-color: #ffffff; color: var(--bg); }
.noel-about .code { margin-top: 1.5rem; }
.noel pre { margin: 0; border-radius: 0; background: var(--panel); color: var(--fg); }
.noel .code .copy { border-radius: 0; }

.noel-rest .btns { margin: 1.2rem 0 1rem; }
.noel-credits { margin: 0 0 1.5rem; }
.noel-credits dt { text-transform: uppercase; }
.noel-credits dd { margin: 0 0 1rem; color: var(--mute); }
