@font-face { font-family: "EB Garamond"; src: url("assets/fonts/eb-garamond-normal-400-600.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-normal-400-600.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

/* One ink on one paper. */
:root {
  --paper: #f2efe9;
  --ink: #c3371d;
  --rule: color-mix(in srgb, var(--ink) 55%, transparent);
  --hair: color-mix(in srgb, var(--ink) 30%, transparent);
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(16px, 2.6vw, 40px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #17110e;
  --ink: #f26a4b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  padding: 0 var(--m) 120px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 10px; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

/* A row of four small facts spread across the page, like a letterhead. */
.meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 24px;
  font-size: 13px;
}
.meta p { margin: 0; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.logo {
  display: inline-block;
  width: 168px;
  aspect-ratio: 281 / 27;
  background: currentColor;
  -webkit-mask: url("assets/af-logo.svg") center / contain no-repeat;
  mask: url("assets/af-logo.svg") center / contain no-repeat;
  align-self: center;
}
.meta .meta-end { text-align: right; display: flex; justify-content: flex-end; gap: 20px; white-space: nowrap; }

/* ---------- Masthead ---------- */
.masthead { padding-top: clamp(14px, 2vw, 28px); }
.masthead h1 {
  margin: 0 0 clamp(10px, 1.4vw, 18px);
  font-family: var(--serif);
  font-weight: 400;
  /* Fills the page width; app.js fine-tunes this to the measured line. */
  font-size: calc((100vw - 2 * var(--m)) / 9.15);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  white-space: nowrap;
  margin-left: -0.04em;
  margin-right: 0.04em;
}
/* Hand kerning, on top of the -0.03em tracking. Measured in the browser (ink gap
   across the x-height, plus the narrowest point anywhere) so the spaces read evenly
   and no two serifs come closer than 0.0175em. Lo: the o clears the L's foot.
   ou/ud/ha: a hair tighter. th: room for the t's crossbar. an/al/ll: the baseline
   serifs don't touch. he: the e tucks in. ma: "all" sits closer to the m. */
.masthead h1 .k1 { margin-right: 0.012em; }
.masthead h1 .k2 { margin-right: -0.003em; }
.masthead h1 .k3 { margin-right: 0.008em; }
.masthead h1 .k4 { margin-right: 0.004em; }
.masthead h1 .k5 { margin-right: -0.03em; } /* h-e: optical, the round e reads loose */
.masthead h1 .k7 { margin-right: 0.006em; }
.masthead h1 .k8 { margin-right: -0.02em; } /* h-a and m-a: optical, the a's open top reads loose */
.masthead h1 .k9 { margin-right: -0.032em; } /* o-u: two round sides, the widest gap in the line */
.masthead h1 .k10 { margin-right: -0.012em; } /* u-d, d-e, e-r: a round side faces the next letter */
.intro {
  padding: clamp(48px, 7vw, 110px) 0 clamp(8px, 2vw, 24px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--m); align-items: start;
}
/* The photo printed in the page's one ink: an alpha mask (WebP with transparency) filled
   with --ink. Luminance masks don't render on iOS Safari, so the shade lives in the alpha. */
.photo { margin: 0; max-width: 640px; justify-self: end; width: 100%; }
.ink-photo {
  aspect-ratio: 40 / 23;
  background: var(--ink);
  -webkit-mask: url("assets/photos/kids-store-light.webp") center / cover no-repeat;
  mask: url("assets/photos/kids-store-light.webp") center / cover no-repeat;
}
[data-theme="dark"] .ink-photo {
  -webkit-mask-image: url("assets/photos/kids-store-dark.webp");
  mask-image: url("assets/photos/kids-store-dark.webp");
}
.photo figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; }
.lede {
  margin: 0;
  max-width: 30ch;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

/* ---------- Years ---------- */
#cds:focus { outline: none; }
.year { padding-top: clamp(40px, 6vw, 88px); }
.year-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: clamp(14px, 2vw, 26px); }
.year-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 112px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.year-meta { margin: 0; font-size: 13px; }

.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 40px); }
.ledger-head, .cd {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto 40px;
  align-items: center;
  gap: 12px;
}
.ledger-head { font-size: 10px; letter-spacing: 0.02em; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }
.ledger-head .r { text-align: right; }
.ledger-col.empty .ledger-head { visibility: hidden; }
.rows { list-style: none; margin: 0; padding: 0; }
.cd { border-bottom: 1px solid var(--rule); min-height: 34px; }
.cd-open { grid-column: 1 / 3; display: grid; grid-template-columns: subgrid; align-items: baseline; text-align: left; padding: 7px 0; min-width: 0; }
.cd-month { font-weight: 500; white-space: nowrap; }
.cd-kids { font-weight: 400; font-size: 12px; }
.cd-artists { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cd-open:hover .cd-month, .cd.open .cd-month { text-decoration: underline; text-underline-offset: 3px; }
.cd-hours { display: flex; gap: 2px; }
.hr { width: 22px; height: 22px; font-size: 12px; display: grid; place-items: center; border: 1px solid transparent; transition: background-color 0.2s, color 0.2s; }
.hr:hover { border-color: var(--ink); }
.hr[aria-current] { background: var(--ink); color: var(--paper); }
.cd-len { text-align: right; font-size: 13px; }
/* Chevron that turns down when the playlist opens. */
.chev {
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  border-left: 5px solid currentColor;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
  vertical-align: 0.12em;
  transition: transform 0.28s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.cd.open .chev { transform: rotate(90deg); }
/* Three bars beside the month that's playing; they move while the music does. */
.eq { display: none; gap: 2px; height: 11px; margin-left: 7px; align-items: flex-end; vertical-align: -1px; }
.cd.playing .eq { display: inline-flex; }
.eq i { width: 2px; height: 40%; background: currentColor; }
.is-playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.3s; }
.is-playing .eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.6s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

/* ---------- Playlist sheet ---------- */
.sheet { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--ink); padding-top: 14px; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.sheet-kids { font-size: 0.5em; letter-spacing: 0; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 40px); }
.col-head {
  display: flex;
  /* Padded all the time and pulled out by the same amount, so the text stays put when the fill comes on. */
  width: calc(100% + 12px);
  margin-inline: -6px;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 6px;
  transition: background-color 0.2s, color 0.2s;
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
  text-align: left;
}
.col-head .col-len { font-weight: 400; font-size: 13px; }
.col-head .col-n::before { content: "▶ "; font-size: 0.7em; vertical-align: 0.1em; }
.col-head:hover .col-n { text-decoration: underline; text-underline-offset: 3px; }
.col-head[aria-current] { background: var(--ink); color: var(--paper); }
.songs { list-style: none; margin: 0; padding: 0; counter-reset: s; font-size: 13px; line-height: 1.3; }
.songs li { counter-increment: s; display: grid; grid-template-columns: 2em 1fr; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.songs li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-size: 11px; padding-top: 2px; }
.songs .ar { font-weight: 600; }
.none { font-size: 13px; margin: 10px 0 0; }
.sheet-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--rule); }

/* ---------- About ---------- */
.about { padding-top: clamp(64px, 9vw, 140px); }
.about .year-title { margin-bottom: clamp(14px, 2vw, 26px); }
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 2.4vw, 40px); border-top: 1px solid var(--ink); padding-top: 12px; font-size: 14px; }
.about-cols p { margin: 0; max-width: 46ch; }
.foot-meta { margin-top: clamp(48px, 6vw, 96px); padding-top: 10px; border-top: 1px solid var(--rule); }
/* Footer links sit in the About columns above them. */
.meta.foot-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); }
/* Drawn on the player icons' 24px grid, filled like the play button. */
.heart { width: 1.2em; height: 1.2em; vertical-align: -0.24em; margin-right: 0.35em; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Dock ---------- */
/* ---------- Sticky bar ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 11;
  height: 44px; padding: 0 var(--m);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.35s;
}
.bar.on { transform: none; visibility: visible; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar-title { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; display: flex; align-items: center; }
.bar-logo { width: 150px; flex: none; }
.bar-year { white-space: pre; } /* keeps the space before the dot inside the flex row */
/* The pipe between wordmark and title: a hairline rule, not a "|" glyph, so it centers on both. */
.bar-pipe { width: 1px; height: 18px; background: currentColor; margin: 0 14px; flex: none; }
.bar-years { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; font-size: 13px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.bar-years::-webkit-scrollbar { display: none; }
.bar-years a { text-decoration: none; padding: 12px 0; display: block; text-underline-offset: 4px; }
.bar-years a:hover, .bar-years a[aria-current] { text-decoration: underline; }
.bar-years a[aria-current] { text-decoration-thickness: 2px; }
.bar-years li:last-child { margin-left: 18px; } /* About: a step apart from the years */
.bar-end { display: flex; align-items: center; gap: 22px; min-width: 0; }
.theme-icon { width: 32px; height: 32px; display: grid; place-items: center; flex: none; margin-right: -6px; }
.theme-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.year-title, .sheet { scroll-margin-top: 60px; }

/* Theme switch: every color changes in the same frame, and the page cross-fades where the
   browser can. The icon sits outside the cross-fade so its sun-to-moon morph stays visible. */
html.theme-snap body *:not(.theme-icon, .theme-icon *) { transition: none !important; }
.bar.on .theme-icon { view-transition-name: theme-toggle; }
::view-transition-old(theme-toggle) { display: none; }
::view-transition-new(theme-toggle) { animation: none; }
/* Sun in light mode, moon in dark: the core grows and fills, a masked circle slides over it
   to bite out the crescent, and the rays shrink away. */
.theme-icon .sunmoon, .theme-icon .core, .theme-icon .bite, .theme-icon .rays {
  transform-box: view-box; transform-origin: 12px 12px;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.3s ease, fill 0.3s ease;
}
.theme-icon .bite { transform: translate(12px, -12px); }
[data-theme="dark"] .theme-icon .sunmoon { transform: rotate(-30deg); }
[data-theme="dark"] .theme-icon .core { transform: scale(1.6); fill: currentColor; stroke-width: 0.94; }
[data-theme="dark"] .theme-icon .bite { transform: translate(5px, -4px); }
[data-theme="dark"] .theme-icon .rays { transform: scale(0.5); opacity: 0; }
/* Hover turns the sun one ray (45°), so it lands looking the same; the moon rocks a little. */
.theme-icon svg { transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .theme-icon:hover svg { transform: rotate(45deg); }
  [data-theme="dark"] .theme-icon:hover svg { transform: rotate(-15deg); }
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr);
  align-items: center;
  gap: 24px;
  padding: 10px var(--m) max(10px, env(safe-area-inset-bottom));
}
.np { min-width: 0; }
.np p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.np-sub { font-size: 12px; }
.transport { display: flex; align-items: center; gap: 4px; }
.transport button { width: 36px; height: 36px; display: grid; place-items: center; }
.transport svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.transport .play { width: 44px; height: 44px; background: var(--ink); color: var(--paper); border-radius: 50%; }
.transport .play svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.buffering .play { animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.5; } }
.scrub { display: flex; align-items: center; gap: 12px; font-size: 12px; min-width: 0; }
#seek {
  flex: 1;
  min-width: 60px;
  -webkit-appearance: none;
  appearance: none;
  height: 20px;
  background: linear-gradient(var(--ink), var(--ink)) 0 50% / var(--p, 0%) 3px no-repeat,
              linear-gradient(var(--hair), var(--hair)) 0 50% / 100% 1px no-repeat;
  cursor: pointer;
}
#seek::-webkit-slider-thumb { -webkit-appearance: none; width: 3px; height: 16px; background: var(--ink); border: 0; border-radius: 0; }
#seek::-moz-range-thumb { width: 3px; height: 16px; background: var(--ink); border: 0; border-radius: 0; }
.dock-songs { font-size: 13px; white-space: nowrap; margin-left: 12px; padding: 8px 0; }
.dock[data-state="idle"] .transport button:not(.play),
.dock[data-state="idle"] .scrub { opacity: 0.4; }

/* ---------- Narrower screens: the three columns become two, then one ---------- */
@media (max-width: 1100px) {
  .ledger { display: block; columns: 2; column-gap: clamp(20px, 2.4vw, 40px); }
  .ledger-col:nth-child(n + 2) .ledger-head { display: none; }
  .ledger-head { break-after: avoid; }
  .cd { break-inside: avoid; }
  .about-cols, .meta.foot-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(20px, 2.4vw, 40px); }
}
@media (max-width: 760px) {
  .bar { gap: 16px; }
  .bar-end { gap: 10px; }
  .bar-title { font-size: 18px; }
  .bar-title .bar-year, .bar-logo, .bar-pipe { display: none; }
  .bar-years { gap: 14px; mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent); padding-inline: 12px; }
  .intro { grid-template-columns: 1fr; align-items: start; }
  body { padding-bottom: 150px; }
  /* Letterhead on phones: wordmark on its own line, the two facts in a row, then the two actions. */
  .meta { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .meta .brand { grid-column: 1 / -1; gap: 6px 10px; margin-bottom: 2px; justify-content: space-between; align-items: baseline; }
  /* The wordmark has no descenders, so its box bottom is its baseline: line the text up with it. */
  .meta .brand .logo { align-self: baseline; }
  .meta #totals { text-align: right; }
  .meta .meta-end { grid-column: 1 / -1; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
  .ledger { columns: 1; }
  .about-cols, .cols, .meta.foot-meta { grid-template-columns: 1fr; }
  .cd, .ledger-head { grid-template-columns: 118px minmax(0, 1fr) auto; }
  .ledger-head span:nth-child(2), .ledger-head span:last-child { display: none; }
  .cd-len { display: none; }
  .hr { width: 30px; height: 30px; font-size: 13px; }
  .dock { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  /* Second row: the scrubber, with the playlist button at its end. */
  .scrub { grid-column: 1 / -1; order: 3; }
  .dock-songs { margin-left: 4px; }
  .transport button { width: 32px; height: 32px; }
}

/* ---------- Motion: only when html has .anim (JS on, motion allowed) ---------- */
@keyframes word { from { opacity: 0; transform: translateY(0.28em); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes roll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -40px 0); } }
/* A ledger row slides up out of its own ruled line, like a line being entered. */
@keyframes row { from { opacity: 0; transform: translateY(0.9em); clip-path: inset(0 0 100% 0); } 60% { opacity: 1; } to { opacity: 1; transform: none; clip-path: inset(0 0 -2px 0); } }
@keyframes sink { to { opacity: 0; transform: translateY(0.35em); } }
@keyframes dock { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pulse-hr { to { opacity: 0.35; } }

.anim .masthead .w { display: inline-block; }
.anim:not(.ready) .masthead .w,
.anim:not(.ready) .masthead .meta > p,
.anim:not(.ready) .lede, .anim:not(.ready) .photo { opacity: 0; }
.anim:not(.ready) .dock { transform: translateY(100%); }
.anim.ready .masthead .w { animation: word 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim.ready .masthead .w:nth-child(2) { animation-delay: 90ms; }
.anim.ready .masthead .w:nth-child(3) { animation-delay: 180ms; }
.anim.ready .masthead .w:nth-child(4) { animation-delay: 270ms; }
.anim.ready .masthead .meta > p { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim.ready .masthead .meta > p:nth-child(1) { animation-delay: 420ms; }
.anim.ready .masthead .meta > p:nth-child(2) { animation-delay: 480ms; }
.anim.ready .masthead .meta > p:nth-child(3) { animation-delay: 540ms; }
.anim.ready .masthead .meta > p:nth-child(4) { animation-delay: 600ms; }
.anim.ready .lede { animation: rise 0.9s 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim.ready .photo { animation: rise 1.1s 850ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim.ready .dock { animation: dock 0.7s 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* Years and the About section, as they scroll into view */
.anim :is(.year, .about):not(.in) :is(.year-title, .year-meta, .ledger-head, .cd, .about-cols, .foot-meta) { opacity: 0; }
.anim .in :is(.year-title, .about .year-title) { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim .in .year-meta { animation: fade 0.8s 200ms both; }
.anim .in .ledger-head { animation: fade 0.6s 100ms both; }
.anim .in .cd { animation: row 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: calc(180ms + var(--i, 0) * 60ms); }
.anim .in .about-cols { animation: rise 0.8s 150ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim .in .foot-meta { animation: fade 0.8s 300ms both; }

/* A playlist rolling down, its songs following in order; folding up on close */
.sheet.enter { animation: roll 0.55s cubic-bezier(0.5, 0, 0.1, 1) backwards; }
.sheet.enter .sheet-head, .sheet.enter .col-head { animation: rise 0.5s 80ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sheet.enter .songs li { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(140ms + var(--i, 0) * 22ms); }
.sheet.enter .sheet-foot { animation: fade 0.5s 500ms both; }
.sheet.leave .songs li { animation: sink 0.28s cubic-bezier(0.5, 0, 0.8, 0.4) both; animation-delay: calc(min(var(--n, 0) - var(--i, 0), 14) * 10ms); }
.sheet.leave .sheet-head, .sheet.leave .col-head, .sheet.leave .sheet-foot { animation: sink 0.3s 120ms cubic-bezier(0.5, 0, 0.8, 0.4) both; }

/* Waiting for the Archive: the chosen hour blinks */
/* The header's own animation slot belongs to its entrance; pulse its text instead, or the entrance replays when buffering ends. */
.anim .buffering .hr[aria-current], .anim .buffering .col-head[aria-current] > * { animation: pulse-hr 0.6s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
