:root {
  --ink: #100c0d;
  --paper: #f0eadc;
  --red: #df3f31;
  --muted: #b9b0a1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 12, 13, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 12, 13, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 27px 27px;
  font-family: "DM Sans", sans-serif;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 10;
  padding: .6rem .8rem;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: .7rem clamp(1rem, 4vw, 4rem);
  color: var(--paper);
  background: var(--ink);
  border-bottom: 5px solid var(--red);
}

.logo-link { display: block; width: 70px; height: 70px; }

.logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  filter: grayscale(1) invert(1);
}

.back {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-underline-offset: .25rem;
}

main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: 2rem;
  min-height: 430px;
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(2.5rem, 6vw, 5rem);
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.intro::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 13%;
  width: 85px;
  height: 85px;
  border: 8px solid var(--red);
  transform: rotate(12deg);
}

.kicker {
  position: absolute;
  top: 2rem;
  left: 0;
  margin: 0;
  font-family: "Special Elite", monospace;
  font-size: .82rem;
  letter-spacing: .12em;
}

h1 {
  margin: 0;
  font-family: "Special Elite", monospace;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 400;
  line-height: .72;
  letter-spacing: -.06em;
}

h1 em { color: var(--red); font-style: normal; }

.intro-copy {
  padding: 2rem 0 1rem;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  line-height: 1.45;
}

.intro-copy p { margin: 0 0 1.25rem; }

.instructions {
  font-family: "Special Elite", monospace;
  font-size: .9rem;
}

.instructions span {
  display: block;
  margin-bottom: .55rem;
  color: var(--red);
  font-family: "DM Sans", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.directory {
  display: grid;
  grid-template-columns: 88px 1fr;
  padding: 3rem 0 5rem;
}

.letter {
  grid-column: 1;
  margin: 0;
  padding-top: 1.15rem;
  color: var(--red);
  font-family: "Special Elite", monospace;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
}

.band {
  grid-column: 2;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 88px;
  padding: .8rem 1rem;
  border-top: 1px solid rgba(16, 12, 13, .34);
  text-decoration: none;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}

.band:last-child { border-bottom: 1px solid rgba(16, 12, 13, .34); }

.band:hover,
.band:focus-visible,
.favorite-track:focus-within {
  color: var(--paper);
  background: var(--ink);
  outline: 3px solid var(--red);
  outline-offset: -3px;
  transform: translateX(7px);
}

.band-number {
  color: var(--red);
  font-family: "Special Elite", monospace;
  font-size: .84rem;
}

.band-copy { display: grid; gap: .2rem; }

.band-copy strong {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.08rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.band-copy small {
  color: #5e5751;
  font-size: .78rem;
  font-weight: 600;
}

.band:hover .band-copy small,
.band:focus-visible .band-copy small,
.favorite-track:focus-within .band-copy small { color: var(--muted); }

.listen {
  padding: .38rem .58rem;
  color: var(--paper);
  background: var(--red);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 5px solid var(--ink);
  font-family: "Special Elite", monospace;
  font-size: .8rem;
}

footer p { margin: 0; }
footer a { text-align: right; text-underline-offset: .22rem; }

.favorites-intro {
  grid-template-columns: 1.08fr .92fr;
}

.favorites-intro h1 {
  font-size: clamp(4.2rem, 10vw, 9rem);
}

.favorites-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.6rem;
}

.favorites-links a {
  padding: .48rem .64rem;
  color: var(--paper);
  background: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.favorites-links a:hover,
.favorites-links a:focus-visible {
  color: var(--paper);
  background: var(--red);
  outline: 2px solid var(--ink);
}

.favorites-directory {
  display: block;
  padding-top: 3rem;
}

.favorites-directory .band {
  grid-column: auto;
}

.track-source {
  color: var(--red) !important;
  font-family: "Special Elite", monospace;
  font-size: .68rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.favorite-track:hover .track-source,
.favorite-track:focus-within .track-source {
  color: #ef8c83 !important;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .4rem;
}

.track-actions a {
  text-decoration: none;
}

.track-actions a:hover,
.track-actions a:focus-visible {
  color: var(--ink);
  background: var(--paper);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.stream-link {
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--red);
}

.spotify-link {
  color: #07180c;
  background: #1ed760;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.track-unavailable,
.track-unavailable.spotify-link,
.track-unavailable.stream-link {
  color: #e1dbd4;
  background: #78736f;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .62;
}

@media (max-width: 700px) {
  .page-header { min-height: 72px; padding: .45rem 1rem; }
  .logo-link { width: 58px; height: 58px; }
  .back { font-size: .75rem; }
  main { width: min(100% - 1.3rem, 1120px); }
  .intro { display: block; min-height: 430px; padding-top: 6.8rem; }
  .intro::after { top: 2rem; right: .25rem; width: 55px; height: 55px; border-width: 6px; }
  h1 { font-size: clamp(4.5rem, 25vw, 7rem); }
  .intro-copy { max-width: 31rem; padding-top: 3.2rem; }
  .directory { grid-template-columns: 44px 1fr; padding-top: 2rem; }
  .letter { font-size: 2.1rem; padding-top: .95rem; }
  .band { grid-template-columns: 30px minmax(0, 1fr); gap: .5rem; min-height: 76px; padding: .7rem .55rem; }
  .listen { grid-column: 2; justify-self: start; margin-top: .15rem; padding: .3rem .45rem; font-size: .75rem; }
  .track-actions { grid-column: 2; justify-content: flex-start; }
  .track-actions .listen { font-size: .68rem; }
  .band-copy strong { font-size: 1rem; }
  .band-copy small { font-size: .78rem; }
  .favorites-intro h1 { font-size: clamp(3.7rem, 19vw, 6.3rem); }
  .favorites-directory { padding-top: 2rem; }
  .favorites-links { margin-top: 1.1rem; }
  .track-source { font-size: .61rem !important; }
  footer { display: grid; gap: .8rem; line-height: 1.45; }
  footer a { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band, .genre-link { transition: none; }
}
