/* Lyrics pages (doglover95.com/tekster/<song>/, list of all at /tekster/). Hidden pages: linked from CVs and
   applications, not from the menu, and kept out of search (noindex, not in the sitemap).
   Loaded after /apps/apps.css, which gives the colours, the menu, the footer and the
   cover hover (.art). One column: the cover and the title first, then the whole text.
   One page per song: copy the 60-fps folder and change the text. */

/* The column is as wide as the title line or the longest line of the text, whichever is
   wider, at most 600 px. Cover, player and track list follow it (width 0 + min-width 100%
   keeps them from widening the column themselves). */
.song { --gap: 40px; width: fit-content; max-width: min(100%, 600px); margin: 0 auto; padding: 8px 0 48px; }
/* On a song page the menu bar holds a path instead of the menu: DOGLOVER95 / <song>,
   where both lead back to the list. The way back is also offered after the text. */
.tekst nav .links, .tekst nav .menu, .tekst nav .panel { display: none !important; }
.crumbs { display: flex; align-items: baseline; font-size: 14px; }
.crumbs .sep { margin: 0 12px; color: hsl(0 0% 58% / .5); }
.crumbs .here { color: var(--fg); }
.crumbs .here:hover { color: var(--muted); }
/* A song on an album: DOGLOVER95 / album / song, the album step in grey */
.crumbs .step { color: var(--muted); }
.crumbs .step:hover { color: var(--fg); }

/* An album page: the tracks under the title line, one per line without dividers.
   Tracks without lyrics are greyed out and not links. */
.tracks { margin-top: var(--gap); font-size: 16px; }
.tracks .track { display: flex; gap: 16px; padding: 6px 0; }
.tracks .n { width: 20px; flex: none; text-align: right; color: var(--muted); }
.tracks .t { flex: 1; text-decoration: underline transparent; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease; }
.tracks .d { color: var(--muted); font-size: 14px; }
.tracks a.track:hover { color: inherit; }
.tracks a.track:hover .t { text-decoration-color: currentColor; }
.tracks .none, .tracks .none .n, .tracks .none .d { color: hsl(0 0% 35%); }
/* After the text: the arrow centred under the words, so the two sit as one. Same size
   as the copyright line in the footer below, but white. */
.song .back { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; width: max-content; margin: calc(var(--gap) * 2) auto 0; font-size: 13px; color: var(--fg); }
.song .back:hover { color: var(--muted); }
.song .back svg { width: 14px; height: 14px; }
.song .art, .song .player, .song .tracks { width: 0; min-width: 100%; }

/* The cover: square, links to the song. It shines a little at rest, the light sweeps
   across on hover (as on the album covers) and it grows near the pointer (script). */
.song .art { margin: 0; box-shadow: 0 24px 64px -24px rgb(255 255 255 / .14); transition: box-shadow .3s ease; }
.song .art img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.song .art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(255 255 255 / .16), transparent 38%, transparent 70%, rgb(255 255 255 / .06)); mix-blend-mode: screen; pointer-events: none; }
.song .art:hover { box-shadow: 0 28px 72px -20px rgb(255 255 255 / .22); }
/* A live version: the whole YouTube player in place of the cover, as wide as the column */
.song .player { aspect-ratio: 16 / 9; background: #000; }
.song .player iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Cover, title line and text follow each other with the same space (--gap) between */

/* Title and artists on one line, like a line in a CV; the title links to the song like the cover */
.song h1 { margin: var(--gap) 0 0; white-space: nowrap; font-size: 18px; font-weight: 300; font-style: normal; letter-spacing: 0; line-height: 1.5; }
.song h1 a { text-decoration: underline transparent; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease; }
.song h1 a:hover { color: inherit; text-decoration-color: currentColor; }
.song h1 .by { color: var(--muted); }

/* The lyrics: the whole text in one piece, italic, a stanza per paragraph */
.lyrics { margin-top: var(--gap); font-size: 19px; line-height: 1.65; font-style: italic; }
.lyrics p { color: var(--fg); margin-bottom: 1.4em; }
.lyrics p:last-child { margin-bottom: 0; }
/* Who sings the next part, in brackets and greyer than the text */
.lyrics p.who { color: hsl(0 0% 45%); margin-bottom: 1.4em; }
.lyrics p.who:not(:first-child) { margin-top: 2.2em; }

/* The list of all lyrics (/tekster/): a small heading, then one row per song with
   a small cover, the title line and the year. Lighter than the apps list. */
.list { max-width: 560px; margin: 0 auto; padding: 48px 0 112px; }
.list h1 { margin-bottom: 28px; font-size: 18px; font-weight: 300; font-style: normal; letter-spacing: 0; line-height: 1.5; color: var(--muted); }
.list .row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list .row:first-of-type { border-top: 1px solid var(--border); }
.list .row img { display: block; flex: none; width: 56px; height: 56px; }
.list .row .t { flex: 1; text-decoration: underline transparent; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease; }
.list .row .t span, .list .row .y { color: var(--muted); }
.list .row .y { font-size: 14px; }
.list a.row:hover { color: inherit; }
.list a.row:hover .t { text-decoration-color: currentColor; }

@media (max-width: 767px) {
  .song { padding-top: 24px; }
  .song { width: auto; }
  .song { --gap: 32px; }
  .song h1 { font-size: 16px; white-space: normal; }
  .lyrics { font-size: 17px; }
}
