/* "genius" theme: a poem laid out like an annotated lyrics page. Own code and fonts only. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { --yellow: #ffff64; --ink: #000; --mark: #e9e9e9; --muted: #6a6a6a; --line: #dcdcdc; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.genius {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 16px/1.5 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: #000; color: #fff; padding: 8px 14px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ---- top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 48px; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--yellow);
}
.logo {
  font-weight: 700; font-size: 18px; letter-spacing: .42em; text-transform: uppercase;
  text-decoration: none; color: #000; white-space: nowrap;
}
.topbar nav { display: flex; gap: 22px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar nav a { text-decoration: none; white-space: nowrap; }
.topbar nav a:hover, .logo:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- song header */
.song-head { background: linear-gradient(180deg, #2a2a2a 0%, #0c0c0c 100%); color: #fff; overflow: hidden; }
.song-head-in {
  max-width: 1080px; margin: 0 auto; padding: 40px 20px 36px;
  display: flex; gap: 28px; align-items: flex-end;
}
.cover {
  flex: 0 0 auto; width: 168px; height: 168px; padding: 14px;
  display: flex; align-items: flex-end;
  background: var(--yellow); color: #000;
  font-weight: 700; font-size: 23px; line-height: 1.04; letter-spacing: -.02em; text-transform: uppercase;
  overflow: hidden; overflow-wrap: anywhere; box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
}
.cover span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
@media (max-width: 599px) { .cover span { -webkit-line-clamp: 6; } }
.song-meta { min-width: 0; }
.song-meta h1 {
  margin: 0 0 8px; font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.04;
  letter-spacing: -.025em; font-weight: 700; overflow-wrap: anywhere;
}
.song-meta h1:focus { outline: none; }
.artist { margin: 0 0 16px; font-size: 1.3rem; }
.artist a { color: var(--yellow); text-decoration: none; }
.artist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .8rem; color: #c9c9c9; }

/* ---- lyrics + annotation rail */
.song-body {
  max-width: 1080px; margin: 0 auto; padding: 40px 20px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px;
}
.lyrics-h { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.hint { margin: 0; font-size: .8rem; color: var(--muted); }
.lyrics { margin-top: 26px; font-size: 1.125rem; line-height: 1.75; }
.lyrics p { margin: 0; }
.lyrics .stanza { margin: 0 0 1.75em; }
.lyrics h2, .lyrics h3, .lyrics h4 { margin: 0 0 .4em; font-size: 1rem; font-weight: 700; }
.lyrics img { max-width: 100%; height: auto; }
.lyrics sup { font-size: .68em; line-height: 0; }
.lyrics sup a { text-decoration: none; color: var(--muted); }
.lyrics .footnotes {
  margin: 0 0 1.75em; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .9rem; line-height: 1.55;
}
.lyrics .footnotes h2 { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lyrics .footnotes p { margin: 0 0 .5em; overflow-wrap: anywhere; }
.lyrics .footnotes a { color: var(--muted); }

.ann {
  background: var(--mark); color: inherit; text-decoration: none; cursor: pointer;
  padding: .16em 0; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color .12s ease;
}
.ann.on, .ann.hl { background: var(--yellow); }
@media (hover: hover) { .ann:hover { background: var(--yellow); } }
.ann:focus-visible { background: var(--yellow); outline: 2px solid #000; outline-offset: 1px; }
/* forced colours (Windows high contrast) remove every background: mark the highlights another way */
@media (forced-colors: active) {
  .ann { text-decoration: underline dotted; text-underline-offset: 3px; }
  .ann.on, .ann.hl { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

.rail { position: relative; }
.rail:empty { display: none; }   /* not while it still holds a card: a hidden card would lose the keyboard focus */
.card { position: relative; font-size: 1rem; line-height: 1.6; }
.card:focus { outline: none; }   /* focus is moved here for keyboard users; the card is not a control */
.card-label { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.note-by { margin: 0 0 8px; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.handle { color: var(--ink); font-weight: 700; }
.card .note-by { margin: -2px 0 10px; }
.card .note-body p { margin: 0 0 .8em; overflow-wrap: anywhere; }
.card .note-body p:last-child { margin-bottom: 0; }
.card a { text-decoration: underline; text-underline-offset: 2px; }
.card-link { margin: .8em 0 0; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.card-x {
  position: absolute; top: -4px; right: 0; width: 28px; height: 28px; padding: 0;
  border: 0; background: none; color: var(--muted); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.card-x:hover { color: #000; }
/* small screens: the annotation opens under its line */
.lyrics .card {
  margin: 10px 0 16px; padding: 14px 40px 14px 16px;
  background: #f6f6f6; border-left: 4px solid var(--yellow);
}
.lyrics .card .card-x { top: 8px; right: 8px; }

@media (min-width: 900px) {
  .song-body { grid-template-columns: minmax(0, 520px) minmax(300px, 1fr); }
  .rail, .rail:empty { display: block; }
  .rail .card {
    position: absolute; left: 0; right: 0; padding: 2px 34px 2px 22px;
    border-left: 3px solid #000;
  }
}
@media (max-width: 599px) {
  .song-head-in { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 20px; }
  .cover { width: 120px; height: 120px; font-size: 16px; padding: 10px; }
  .topbar nav { gap: 14px; }
  .topbar nav a:nth-child(2) { display: none; }
  .logo { letter-spacing: .3em; }
}

/* ---- every annotation as a list: shown when the script is off, and in print */
.notes { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.notes h2 { margin: 0 0 18px; font-size: 1.05rem; }
.notes ol { margin: 0; padding: 0; list-style: none; }
.note { margin: 0 0 26px; scroll-margin-top: 64px; }
.note-quote { margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--yellow); font-weight: 700; }
.note-body p { margin: 0 0 .7em; overflow-wrap: anywhere; }
.js-ann .notes { display: none; }

/* ---- footer */
.foot { background: #000; color: #9a9a9a; padding: 28px 20px 36px; font-size: .8rem; text-align: center; }
.foot p { margin: 0 0 8px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .disclaimer { max-width: 560px; margin: 12px auto 0; font-size: .72rem; line-height: 1.5; }

@media print {
  .topbar, .foot, .rail, .hint, .skip-link, .card { display: none !important; }
  .song-head { background: none; color: #000; }
  .cover { display: none; }
  .artist a { color: #000; }
  .facts { color: #555; }
  .js-ann .notes { display: block; }
}
