@font-face {
  font-family: "InterVarLocal";
  src: local("Inter"), local("Arial");
}

:root {
  --ink: #17212b;
  --muted: #687483;
  --paper: #fffaf0;
  --paper-strong: #ffffff;
  --line: rgba(23, 33, 43, 0.13);
  --accent: #c66a32;
  --accent-2: #0f7c86;
  --deep: #0b1620;
  --shadow: 0 22px 70px rgba(16, 28, 40, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(239, 243, 239, 0.98)),
    var(--paper);
  font-family: InterVarLocal, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 72px);
  color: #fff;
  background-image: url("assets/songbook-hero.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.86), rgba(5, 12, 20, 0.42) 56%, rgba(5, 12, 20, 0.18)),
    linear-gradient(0deg, rgba(5, 12, 20, 0.62), transparent 58%);
}

.hero__content {
  position: relative;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.song-hero .eyebrow {
  color: #f1b26f;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.site-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-row p,
.intro-row span {
  margin: 0;
}

.intro-row--secondary {
  margin-top: 28px;
}

.ordered-toc {
  display: grid;
  gap: 14px;
  margin-bottom: 10px;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(198, 106, 50, 0.32);
  border-radius: 999px;
  background: rgba(198, 106, 50, 0.11);
  color: #8e421f;
  font-weight: 800;
}

.pdf-link:hover,
.pdf-link:focus-visible {
  background: rgba(198, 106, 50, 0.18);
  outline: none;
}

.ordered-song-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ordered-song;
}

.ordered-song-list li {
  min-width: 0;
  counter-increment: ordered-song;
}

.ordered-song-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "number title"
    "number artist";
  column-gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.ordered-song-list a::before {
  content: counter(ordered-song, decimal-leading-zero);
  grid-area: number;
  align-self: start;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 900;
}

.ordered-song-list a:hover,
.ordered-song-list a:focus-visible {
  border-color: rgba(15, 124, 134, 0.32);
  background: rgba(15, 124, 134, 0.11);
  transform: translateY(-1px);
  outline: none;
}

.ordered-song-list span {
  grid-area: title;
  min-width: 0;
  font-weight: 800;
  line-height: 1.25;
}

.ordered-song-list small {
  grid-area: artist;
  min-width: 0;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.artist-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 35px rgba(20, 34, 46, 0.07);
}

.artist-card h2 {
  margin: 0 0 14px;
  font-size: 1.22rem;
  line-height: 1.2;
}

.song-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.song-list a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(23, 33, 43, 0.045);
  transition: background 160ms ease, transform 160ms ease;
}

.song-list a:hover,
.song-list a:focus-visible {
  background: rgba(15, 124, 134, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.song-list span {
  min-width: 0;
  font-weight: 700;
  line-height: 1.25;
}

.song-page {
  background:
    radial-gradient(circle at top left, rgba(198, 106, 50, 0.16), transparent 34rem),
    linear-gradient(180deg, #fffaf0 0%, #eff3ef 100%);
}

.song-hero {
  padding: 34px clamp(20px, 7vw, 86px) 26px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 22, 32, 0.94), rgba(17, 43, 55, 0.9)),
    url("assets/songbook-hero.png") center / cover;
}

.song-hero h1 {
  max-width: 980px;
  margin-top: 8px;
  font-size: clamp(2.25rem, 8vw, 5.8rem);
  line-height: 0.95;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.back-link:hover,
.back-link:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  outline: none;
}

.song-main {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.lyrics-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.song-text {
  margin: 0;
  padding: clamp(18px, 4vw, 34px);
  overflow-x: auto;
  color: #202b35;
  font-family: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  line-height: 1.58;
  white-space: pre;
  tab-size: 4;
}

.song-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 18px;
}

.song-nav__item {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 800;
}

.song-nav__item strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.25;
}

.song-nav__item--next {
  text-align: right;
}

.song-nav__item--home {
  display: grid;
  place-items: center;
  color: var(--ink);
}

.song-nav__item--disabled {
  opacity: 0.45;
}

a.song-nav__item:hover,
a.song-nav__item:focus-visible {
  border-color: rgba(15, 124, 134, 0.42);
  background: rgba(15, 124, 134, 0.12);
  outline: none;
}

@media (max-width: 720px) {
  .hero {
    min-height: 58vh;
    padding-bottom: 42px;
  }

  .song-list a {
    min-height: 42px;
  }

  .song-nav {
    grid-template-columns: 1fr;
  }

  .song-nav__item--next {
    text-align: left;
  }
}
