/* The homepage (a walk down the stairs from the sunset), the legal pages, the footer and the cookie notice. */

.button { display: inline-block; padding: .85rem 1.6rem; border: 1px solid var(--ink); border-radius: 99px; color: var(--ink); font-weight: 500; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.button:hover { background: var(--ink); color: var(--night); }
.button--quiet { border-color: oklch(0.95 .008 75 / .45); color: var(--text); }
.button--quiet:hover { background: var(--text); border-color: var(--text); }
button.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--hair); cursor: pointer; }
.kicker { color: var(--quiet); font-size: .95rem; }

/* Home: the painting runs the length of the page, and you go down the steps as you read. */
.page-home { --gutter: clamp(1.25rem, 5vw, 5rem); }
.page-home main { position: relative; overflow: clip; }
.descent { position: absolute; inset: 0 auto auto 50%; z-index: -1; inline-size: max(100%, 46rem); translate: -50% 0; pointer-events: none; }
.descent img { display: block; inline-size: 100%; block-size: auto; -webkit-mask: linear-gradient(to bottom, #000 72%, transparent); mask: linear-gradient(to bottom, #000 72%, transparent); }

.welcome { display: grid; align-content: end; min-block-size: 100svh; padding: 6rem var(--gutter) clamp(4rem, 14vh, 9rem); background: linear-gradient(to bottom, transparent 45%, oklch(0.1 .03 290 / .55)); }
.welcome__name { font-size: clamp(3.6rem, 11vw, 9.5rem); color: oklch(0.89 .065 75); filter: drop-shadow(0 0 .25em oklch(0.7 .15 60 / .45)) drop-shadow(0 .05em .15em oklch(0.08 .03 290 / .8)); margin: 0 0 .3em; }
.welcome__name .logo { inline-size: min(100%, 6.2em); }
.welcome__line { font: italic 400 clamp(1.3rem, 2.3vw, 2rem)/1.3 var(--serif); max-inline-size: 22em; text-shadow: 0 .05em .6em oklch(0.08 .03 290 / .9); }
.welcome__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-block-start: 2.2rem; }
.welcome .button { background: oklch(0.1 .03 290 / .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.welcome .button:hover { background: var(--ink); }
.welcome .button--quiet:hover { background: var(--text); }

/* Each part of the page is a landing on the way down, alternately left and right. */
.step { position: relative; inline-size: min(100% - 2 * var(--gutter), 68rem); margin: clamp(5rem, 16vh, 11rem) auto 0; padding: clamp(1.5rem, 4vw, 3.5rem); background: oklch(0.11 .03 290 / .8); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); border: 1px solid var(--hair); border-radius: 3px; box-shadow: 0 2rem 4rem -1rem oklch(0.05 .02 290 / .7); }
.step:first-of-type { margin-block-start: 0; }
.step__title { font: 400 clamp(2.2rem, 4.5vw, 3.6rem)/1 var(--serif); letter-spacing: -.01em; margin-block-end: 1.6rem; }
.step__intro { color: var(--quiet); margin: -.6rem 0 2rem; max-inline-size: 40em; }
.step h2 a, .step h3 a { text-decoration: none; }
.step h2 a:hover, .step h3 a:hover { color: var(--ink); }
@media (min-width: 60rem) {
    .step { inline-size: min(100% - 2 * var(--gutter), 60rem); }
    .step:nth-of-type(odd) { margin-inline: var(--gutter) auto; }
    .step:nth-of-type(even) { margin-inline: auto var(--gutter); }
    .step.playlists { inline-size: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
}

.latest { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.latest__art { display: block; }
.latest__art .cover { border-radius: 2px; box-shadow: 0 1.5rem 3rem -1rem oklch(0.05 .02 290 / .8); }
.latest h2 { font: 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--serif); letter-spacing: -.015em; margin-block: .3em .4em; text-wrap: balance; }
.latest__synopsis { font: 400 clamp(1.15rem, 1.4vw, 1.3rem)/1.55 var(--serif); text-wrap: pretty; }
@media (min-width: 48rem) { .latest { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

.recent__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
@media (min-width: 40rem) { .recent__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more { margin-block-start: 2rem; }
.more a { display: inline-block; padding-block: .35rem; color: var(--ink); text-underline-offset: .25em; }

.playlists__list { display: grid; gap: 2.5rem 2rem; padding: 0; list-style: none; }
@media (min-width: 52rem) { .playlists__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.playlist { display: grid; grid-template-columns: clamp(6.5rem, 22vw, 9rem) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.playlist__covers { display: grid; grid-template-columns: repeat(2, 1fr); aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--night-2); box-shadow: 0 1rem 2rem -1rem oklch(0.05 .02 290 / .8); }
.playlist__covers img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.playlist__covers img:only-child { grid-column: 1 / -1; }
.playlist h3 { font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--serif); margin-block-end: .3rem; }
.playlist h3 a { color: var(--ink); text-decoration: none; }
.playlist h3 a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.playlist p { color: var(--quiet); }
.playlist__count { font-size: .875rem; margin-block-end: .5rem; }

.about { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about__portrait { inline-size: min(100%, 22rem); block-size: auto; border-radius: 50%; justify-self: center; box-shadow: 0 0 0 1px var(--hair), 0 0 4rem oklch(0.55 .2 290 / .35); }
.about__text p { font: 400 clamp(1.15rem, 1.35vw, 1.28rem)/1.6 var(--serif); text-wrap: pretty; }
.about__text p + p { margin-block-start: 1em; }
@media (min-width: 52rem) { .about { grid-template-columns: auto minmax(0, 1fr); } }


/* Privacy and terms: plain reading. */
.legal { inline-size: min(100% - 2 * var(--gutter), 44rem); margin: 0 auto; padding: clamp(6rem, 16vh, 9rem) 0 4rem; }
.legal h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-block-end: .2em; }
.legal__date { color: var(--quiet); font-size: .9rem; }
.legal__lead { font: 400 clamp(1.25rem, 1.6vw, 1.45rem)/1.5 var(--serif); margin-block: 2.5rem; text-wrap: pretty; }
.legal h2 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.15 var(--serif); margin-block: 2.6rem .7rem; }
.legal h3 { font-size: 1rem; font-weight: 600; margin-block: 1.6rem .4rem; }
.legal p, .legal li { max-inline-size: 38em; }
.legal p + p { margin-block-start: .9em; }
.legal ul { margin: .8rem 0; padding-inline-start: 1.2rem; }
.legal li + li { margin-block-start: .55rem; }
.legal a { text-underline-offset: .2em; text-decoration-color: var(--ink); }
.legal a:hover { color: var(--ink); }

/* Footer */
.site-end { display: grid; gap: 1.1rem; justify-items: center; }
.site-end__credit { max-inline-size: 40rem; }
.site-end__links, .site-end__small { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; }
.site-end__links a { color: var(--text); text-decoration: none; padding-block: .35rem; }
.site-end__links a:hover { color: var(--ink); }
.site-end__small a, .site-end__small button { color: var(--quiet); padding-block: .35rem; text-underline-offset: .25em; text-decoration-color: var(--hair); }
.site-end__small a:hover, .site-end__small button:hover { color: var(--ink); }

/* The song player: a button in the song's header, then a bar along the bottom while it plays. */
.hero__play { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin-block-start: 2.2rem; }
.hero__play .stores { margin: 0; }
.player audio { display: block; inline-size: min(100%, 26rem); }
.player audio[hidden], .player__bar[hidden], .player__play[hidden], .player__follow[hidden] { display: none; }
.player__icon { flex: none; inline-size: .72em; block-size: .82em; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
[data-state="playing"] > .player__icon { clip-path: none; background: linear-gradient(to right, currentColor 34%, transparent 34% 66%, currentColor 66%); }
.player__play { display: inline-flex; align-items: center; gap: .65rem; padding: .8rem 1.5rem .8rem 1.25rem; border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--night); font: 500 1rem var(--sans); cursor: pointer; transition: background .25s, color .25s; }
.player__play:hover { background: none; color: var(--ink); }

.player__bar { position: fixed; inset: auto 0 0; z-index: 25; display: flex; align-items: center; gap: .5rem 1rem; padding: .7rem var(--gutter, 1.25rem) max(.7rem, env(safe-area-inset-bottom)); background: oklch(0.14 .03 290 / .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block-start: 1px solid var(--hair); }
.player__toggle { flex: none; display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: var(--ink); color: var(--night); font-size: 1.05rem; cursor: pointer; }
.player__toggle[data-state="paused"] > .player__icon { translate: .08em 0; }
.player__title { min-inline-size: 0; max-inline-size: 18rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.player__time { flex: none; color: var(--quiet); font-size: .85rem; font-variant-numeric: tabular-nums; }
.player__seek { flex: 1 1 8rem; min-inline-size: 6rem; block-size: 2.75rem; margin: 0; background: none; accent-color: var(--ink); cursor: pointer; }
.player__follow { flex: none; padding: .5rem .95rem; border: 1px solid var(--hair); border-radius: 99px; background: none; color: var(--quiet); font: 500 .82rem var(--sans); cursor: pointer; }
.player__follow[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
@media (max-width: 40rem) {
    .player__bar { flex-wrap: wrap; }
    .player__title { flex: 1 1 0; max-inline-size: none; }
    .player__seek { order: 5; flex-basis: 100%; block-size: 2rem; }
}
.has-player { padding-block-end: 5.5rem; }
@media (max-width: 40rem) { .has-player { padding-block-end: 8rem; } }

/* Synced lyrics: while the song plays, the line being sung is lit, and in it each word as it is sung. */
.sheet--timed .line, .sheet--timed .w { transition: opacity .3s, color .3s; }
.sheet--timed.is-live .line { opacity: .5; cursor: pointer; }
.sheet--timed.is-live .line.is-now { opacity: 1; color: var(--ink); }
.sheet--timed.is-live .line.is-now .w { opacity: .55; color: var(--text); transition-duration: .12s; }
.sheet--timed.is-live .line.is-now .w.is-sung { opacity: 1; color: var(--ink); }
.sheet--timed .line.is-now { scroll-margin-block: 30vh; }

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: scroll()) {
        .descent { animation: descend linear both; animation-timeline: scroll(root); }
        @keyframes descend { to { translate: -50% 14%; } }
        .step { animation: land linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
        @keyframes land { from { opacity: .2; translate: 0 3rem; } }
    }
}
@media (prefers-contrast: more) {
    .step { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .welcome { background: linear-gradient(to bottom, transparent 30%, var(--night) 80%); }
    .player__bar { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
    .sheet--timed.is-live .line { opacity: 1; }
    .sheet--timed.is-live .line.is-now, .sheet--timed.is-live .line.is-now .w { opacity: 1; }
    .sheet--timed.is-live .line.is-now .w.is-sung { text-decoration: underline; text-underline-offset: .2em; }
}
@media (forced-colors: active) {
    .step, .player__bar { border: 1px solid CanvasText; }
    .player__icon { forced-color-adjust: none; background: ButtonText; }
    .sheet--timed.is-live .line.is-now .w.is-sung { color: Highlight; }
}
@media print {
    .descent, .welcome__actions, .site-end__small button, .player, .player__bar { display: none !important; }
    .step { background: none; border: 0; box-shadow: none; }
}
