/* ==================================================
   DeadEye Stare: song list page (songlist.html)
   Builds on home.css (tokens, header, buttons, footer)
   ================================================== */

/* jump links land below the sticky header + search bar */
html { scroll-padding-top: calc(var(--header-h) + 128px); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- banner ---------- */
.song-hero { position: relative; background: var(--charcoal); }

.song-hero__img {
  width: 100%;
  height: clamp(220px, 32vw, 460px);
  object-fit: cover;
  object-position: 70% 40%;   /* keep the band (right side) in frame */
  background: var(--charcoal-2);
}

.song-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 18, 17, 0.95) 0%, rgba(20, 18, 17, 0.3) 45%, rgba(20, 18, 17, 0) 70%),
    linear-gradient(to right, rgba(20, 18, 17, 0.75) 0%, rgba(20, 18, 17, 0) 55%);
  pointer-events: none;
}

.song-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(20px, 4vw, 48px);
}

.song-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 9vw, 6rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.song-hero__sub {
  margin: 8px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* phones: photo cropped to the band, title below it */
@media (max-width: 640px) {
  .song-hero::after { content: none; }
  .song-hero__img { height: auto; aspect-ratio: 16 / 9; object-position: 68% 50%; }
  .song-hero__content { position: static; padding-top: 20px; padding-bottom: 4px; }
  .song-hero__title, .song-hero__sub { text-shadow: none; }
}

/* ---------- sticky search + jump bar ---------- */
.song-tools {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  padding: 12px 0;
  background: rgba(20, 18, 17, 0.96);
  border-bottom: 1px solid var(--charcoal-3);
  backdrop-filter: blur(8px);
}
/* without JavaScript the search can't work, so it isn't shown */
html:not(.js) .song-search,
html:not(.js) .song-tools__status { display: none; }

.song-tools__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.song-search {
  position: relative;
  flex: 1 1 280px;
  max-width: 520px;
}
.song-search .fa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--paper-muted);
  pointer-events: none;
}
.song-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 40px;
  background: var(--charcoal-2);
  border: 1px solid var(--charcoal-3);
  border-radius: 0;
  color: var(--paper);
  font: 500 1rem/1.2 var(--font-body);   /* 16px keeps iPhone from zooming in */
  -webkit-appearance: none;
  appearance: none;
}
.song-search input::placeholder { color: var(--paper-muted); }
.song-search input:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }

.song-jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.song-jump::-webkit-scrollbar { display: none; }
.song-jump a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--charcoal-3);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.song-jump a span { color: var(--amber); }
.song-jump a:hover,
.song-jump a:focus-visible { border-color: var(--amber); color: var(--amber); }

/* phones: all three jump buttons fit on one row */
@media (max-width: 480px) {
  .song-jump { width: 100%; gap: 6px; }
  .song-jump a {
    flex: 1 1 0;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
}

.song-tools .wrap { max-width: 1280px; }

.song-tools__status {
  margin: 8px auto 0;
  font-size: 0.875rem;
  color: var(--paper-muted);
}
.song-tools__status:empty { display: none; }

/* ---------- song sections ---------- */
.setlist { padding: clamp(40px, 6vw, 72px) 0 0; }
.setlist:last-of-type { padding-bottom: clamp(56px, 8vw, 96px); }
.setlist .wrap { max-width: 1280px; }

.setlist__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.setlist__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.setlist__count {
  margin: 0;
  color: var(--amber);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* artists flow down newspaper-style columns: 1 on phones, 2 on tablets, 3 on desktop */
.artists {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
  column-gap: 40px;
}
@media (min-width: 640px)  { .artists { columns: 2; } }
@media (min-width: 1024px) { .artists { columns: 3; } }

.artist {
  break-inside: avoid;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--charcoal-3);
}

.artist__name {
  margin: 0 0 6px;
  color: var(--amber);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.artist__songs {
  margin: 0;
  padding: 0;
  list-style: none;
}
.artist__songs li {
  position: relative;
  padding: 3px 0 3px 16px;
  color: var(--paper);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
}
.artist__songs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  background: var(--red);
}

/* acoustic set sits on a slightly lighter band */
.setlist--acoustic {
  margin-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--charcoal-2);
  border-top: 1px solid var(--charcoal-3);
  border-bottom: 1px solid var(--charcoal-3);
}
.setlist--acoustic .artist { border-bottom-color: #3a332f; }

/* retired: one song, struck through with a stamp */
.setlist--retired .artists { columns: 1; }
.setlist--retired .artist { border-bottom: 0; }
.setlist--retired .artist__songs li {
  display: inline-block;
  padding-left: 0;
  color: var(--paper-muted);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 3px;
  text-transform: uppercase;
}
.setlist--retired .artist__songs li::before { content: none; }
.setlist--retired .artist__songs li::after {
  content: "Retired";
  display: inline-block;
  margin-left: 14px;
  padding: 2px 8px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  vertical-align: middle;
  transform: rotate(-6deg);
}

/* search: no matches */
.song-empty {
  padding-top: 48px;
  padding-bottom: 64px;
  font-size: 1.125rem;
  text-align: center;
}
.song-empty a { color: var(--amber); }

/* ---------- current page in nav ---------- */
.site-nav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }
