/*
Theme Name: Reversed
Theme URI: https://github.com/gstavrinos/reversed-backline-theme (private repository)
Author: George Stavrinos
Author URI: https://gstavrinos.github.io/
Description: A one-page customizable theme specifically made for the REVERSED band. The boyz requested: Transparent header that darkens on scroll, full-bleed hero, looping-video music grid, merch grid, tour table, band gallery and a plain black contact section.
Version: 0.5.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reversed-backline
Tags: one-column, custom-logo, custom-colors, full-width-template, block-styles
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
  --ink: #000000;
  --ink-soft: #0d0d0d;
  --paper: #ecebe7;
  --paper-dim: rgba(236, 235, 231, 0.62);
  --hairline: rgba(236, 235, 231, 0.28);
  --hairline-2: rgba(236, 235, 231, 0.14);
  --accent: #c9a227;

  --font-display:
    "Barlow Condensed", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body:
    "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  --header-h: 68px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 62ch;
  --section-pad: clamp(4.5rem, 11vh, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 900px) {
  :root {
    --header-h: 88px;
  }
}

/* =========================================================
   2. Reset & base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-bottom: 0;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   3. Layout helpers
   ========================================================= */
.wrap {
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  scroll-margin-top: var(--header-h);
}

.section--flush {
  padding-block: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0.7rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--hairline);
}

.section-head__title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: 0.005em;
}

.section-head__note {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  white-space: nowrap;
}

/* Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.6rem;
  border: 1px solid var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--paper);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.btn--solid {
  background: var(--paper);
  color: var(--ink);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* =========================================================
   4. Header
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    backdrop-filter 0.45s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: var(--hairline-2);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

/* The logo is centred on the viewport; the controls sit hard right. */
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  min-height: var(--header-h);
}

.header-brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: min(52%, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-brand img {
  max-height: calc(var(--header-h) - 26px);
  width: auto;
  object-fit: contain;
}

.header-brand__text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-controls-left {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.5rem);
}

.header-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.5rem);
}

/* Burger -------------------------------------------------- */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 8px;
}

.burger__bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--paper);
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s var(--ease);
}

.burger[aria-expanded="true"] .burger__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger[aria-expanded="true"] .burger__bar:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Quick links next to the burger -------------------------- */
.header-quick {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
}

.header-quick a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.header-quick a:hover,
.header-quick a:focus-visible {
  border-bottom-color: currentColor;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: clamp(0.5rem, 1.4vw, 1.25rem);
  border-left: 1px solid var(--hairline-2);
}

.header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.header-socials a:hover,
.header-socials a:focus-visible {
  color: var(--paper-dim);
  transform: translateY(-2px);
}

.header-socials svg {
  width: 32px;
  height: 32px;
}

/* @media (max-width: 1099px) { */
@media (max-width: 700px) {
  .header-quick,
  .header-socials {
    display: none;
  }
}

/* =========================================================
   5. Overlay menu
   ========================================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200; /* Above the site header, so the menu owns the whole screen. */
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Everything is sized in vh below, so nothing spills. */
  overscroll-behavior: contain;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s;
}

@supports not (height: 100dvh) {
  .nav-overlay {
    height: 100vh;
  }
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* The header sits underneath; swap its burger for the overlay's own X. */
body.menu-open .site-header,
body.lightbox-open .site-header {
  opacity: 0;
  pointer-events: none;
}

/* Close button ------------------------------------------- */
.nav-overlay__close {
  position: fixed;
  top: clamp(0.85rem, 2.2vw, 1.6rem);
  right: clamp(0.85rem, 2.2vw, 1.6rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--paper-dim);
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-overlay__close:hover,
.nav-overlay__close:focus-visible {
  color: var(--paper);
  transform: rotate(90deg);
}

.nav-overlay__close-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 1.5px;
  background: currentColor;
}

.nav-overlay__close-bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-overlay__close-bar:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Centred column ----------------------------------------- */
.nav-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(3rem, 8vh, 4.75rem) var(--gutter) clamp(1.25rem, 4vh, 2.5rem);
  text-align: center;
}

/* Menu logos --------------------------------------------- */
.nav-overlay__logo {
  flex: 0 0 auto;
  margin: 0;
  line-height: 0;
}

.nav-overlay__logo--top {
  margin-bottom: clamp(1rem, 4vh, 2.75rem);
}

.nav-overlay__logo--bottom {
  margin-top: clamp(1rem, 3.5vh, 2.25rem);
}

.nav-overlay__logo a {
  display: block;
}

.nav-overlay__logo-img {
  width: min(var(--menu-logo-w, 220px), 62vw);
  height: auto;
  max-height: 16vh;
  margin-inline: auto;
  object-fit: contain;
}

.nav-overlay__logo--bottom .nav-overlay__logo-img {
  max-height: 11vh;
  opacity: 0.75;
}

.nav-overlay__nav {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
}

.nav-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-overlay__list li {
  width: 100%;
}

/* min() against vh keeps a long menu inside a short window. */
.nav-overlay__list a {
  display: block;
  padding: clamp(0.1rem, 1vh, 0.7rem) 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, min(7vw, 5vh), 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--paper-dim);
  transition:
    color 0.25s var(--ease),
    letter-spacing 0.35s var(--ease);
}

.nav-overlay__list a:hover,
.nav-overlay__list a:focus-visible {
  color: var(--paper);
  letter-spacing: 0.12em;
}

.nav-overlay__socials {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 1vh, 0.5rem);
  padding: clamp(1rem, 4vh, 2.5rem) 0 0;
}

.nav-overlay__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 6vh, 46px);
  height: clamp(36px, 6vh, 46px);
  border: 1px solid var(--hairline-2);
  color: var(--paper-dim);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.nav-overlay__socials a:hover,
.nav-overlay__socials a:focus-visible {
  color: var(--paper);
  border-color: var(--paper);
}

.nav-overlay__socials svg {
  width: 20px;
  height: 20px;
}

/* Last resort on very short windows: drop the bottom logo, then the top. */
@media (max-height: 560px) {
  .nav-overlay__logo--bottom {
    display: none;
  }
}

@media (max-height: 420px) {
  .nav-overlay__logo--top {
    display: none;
  }
  .nav-overlay__socials {
    display: none;
  }
}

/* The header's own social row is hidden while the menu is open, so the
   overlay keeps its copy at every width. */

/* =========================================================
   6. Hero
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus, center center);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 32%,
    rgba(0, 0, 0, 0) 62%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

.hero__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  text-align: center;
  padding: var(--gutter);
  background: repeating-linear-gradient(135deg, #0a0a0a 0 22px, #111 22px 44px);
  color: var(--paper-dim);
}

.hero__placeholder strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
}

.hero__cue {
  position: absolute;
  margin: 0;
  left: 50%;
  bottom: clamp(1.5rem, 5vh, 3rem);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.hero__cue svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   7. Music
   ========================================================= */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.track {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #080808;
  border: 1px solid var(--hairline-2);
}

.track__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.9s var(--ease);
}

.track:hover .track__media {
  transform: scale(1.04);
}

.track__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
}

/* Rules run the full width of the cell, as specified. */
.track__title {
  width: 100%;
  padding: clamp(0.5rem, 1.6vw, 0.9rem) 1rem;
  border-top: 1px solid var(--paper);
  border-bottom: 1px solid var(--paper);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.track__cta {
  margin-top: clamp(1rem, 3vw, 1.75rem);
}

/* =========================================================
   8. Merch
   ========================================================= */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.merch-item {
  text-align: center;
}

.merch-item__frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid var(--hairline-2);
}

.merch-item__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.merch-item:hover .merch-item__frame img {
  transform: scale(1.03);
}

.merch-item__title {
  margin: 1rem 0 0.9rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.merch-item .btn {
  padding-inline: 2.2rem;
}

/* =========================================================
   9. Tour
   ========================================================= */
.shows {
  border-top: 1px solid var(--hairline);
}

.show {
  display: grid;
  grid-template-columns:
    minmax(8rem, max-content) minmax(0, 1.4fr) minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1rem, 2.4vw, 1.5rem) 0;
  border-bottom: 1px solid var(--hairline-2);
}

.show:hover {
  background: rgba(236, 235, 231, 0.03);
}

.show__date {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.show__venue {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-width: 0;
}

.show__location {
  margin: 0;
  color: var(--paper-dim);
  letter-spacing: 0.06em;
  min-width: 0;
}

.show__action {
  justify-self: end;
}

.show__soldout {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.show.is-past {
  opacity: 0.45;
}

.shows-empty {
  padding: clamp(2rem, 8vh, 5rem) 0 clamp(3rem, 12vh, 7rem);
  text-align: center;
  border-bottom: 1px solid var(--hairline);
}

.shows-empty__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 11vw, 7rem);
  letter-spacing: 0.06em;
  color: var(--paper);
}

.shows-empty__note {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

@media (max-width: 860px) {
  .show {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
  }
  .show__date {
    grid-column: 1;
  }
  .show__venue {
    grid-column: 1;
  }
  .show__location {
    grid-column: 1;
  }
  .show__action {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
}

/* =========================================================
   10. Band
   ========================================================= */
.band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The frame is a button, so it inherits the music cell's border treatment. */
.band-card__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #080808;
  border: 1px solid var(--hairline-2);
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease);
}

.band-card__frame:hover,
.band-card__frame:focus-visible {
  border-color: var(--hairline);
}

.band-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition:
    filter 0.5s var(--ease),
    transform 0.9s var(--ease);
}

.band-card__frame:hover img,
.band-card__frame:focus-visible img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.04);
}

/* Title and text live in the markup for screen readers and for the
   lightbox to read, but never show on the card itself. */
.band-card__meta {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.band-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.band-card__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline-2);
  color: var(--paper-dim);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.band-card__links a:hover,
.band-card__links a:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.band-card__links svg {
  width: 18px;
  height: 18px;
}

/* Band lightbox ------------------------------------------ */
.band-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease),
    visibility 0.35s;
}

@supports not (height: 100dvh) {
  .band-lightbox {
    height: 100vh;
  }
}

.band-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.band-lightbox__close {
  position: absolute;
  top: clamp(0.85rem, 2.2vw, 1.6rem);
  right: clamp(0.85rem, 2.2vw, 1.6rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--paper-dim);
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.band-lightbox__close:hover,
.band-lightbox__close:focus-visible {
  color: var(--paper);
  transform: rotate(90deg);
}

.band-lightbox__close-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 1.5px;
  background: currentColor;
}

.band-lightbox__close-bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(45deg);
}
.band-lightbox__close-bar:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* A column that always fits: the image takes whatever height the caption
   leaves, so nothing scrolls. */
.band-lightbox__figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: clamp(3.25rem, 8vh, 4.5rem) var(--gutter) clamp(1.25rem, 4vh, 2.5rem);
}

.band-lightbox__media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.band-lightbox__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.band-lightbox__caption {
  flex: 0 0 auto;
  max-height: 38vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: clamp(0.9rem, 2.5vh, 1.6rem);
  text-align: center;
}

.band-lightbox__title {
  font-size: clamp(1.4rem, min(4.5vw, 4vh), 2.4rem);
  letter-spacing: 0.04em;
}

.band-lightbox__text {
  max-width: var(--measure);
  margin: clamp(0.4rem, 1.2vh, 0.8rem) auto 0;
  color: var(--paper-dim);
  font-size: clamp(0.9rem, min(2.2vw, 2vh), 1rem);
}

.band-lightbox__text p {
  margin: 0 0 0.6em;
}
.band-lightbox__text p:last-child {
  margin-bottom: 0;
}

.band-lightbox__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: clamp(0.6rem, 2vh, 1.1rem);
}

.band-lightbox__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline-2);
  color: var(--paper-dim);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.band-lightbox__links a:hover,
.band-lightbox__links a:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.band-lightbox__links svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   10b. Music platforms strip
   ========================================================= */
.platforms {
  padding: clamp(2.5rem, 7vh, 4.5rem) 0;
  border-top: 1px solid var(--hairline-2);
  text-align: center;
}

.platforms__title {
  margin-bottom: clamp(1.1rem, 3vh, 1.9rem);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  letter-spacing: 0.22em;
  color: var(--paper-dim);
}

.platforms__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.4vw, 0.9rem);
}

.platforms__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--hairline-2);
  color: var(--paper-dim);
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.platforms__link:hover,
.platforms__link:focus-visible {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.platforms__link svg {
  width: 24px;
  height: 24px;
}

/* =========================================================
   11. Contact
   ========================================================= */
.contact {
  background: #000;
  padding-block: clamp(5rem, 14vh, 10rem);
}

.contact__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.contact__title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
}

.contact__body {
  max-width: var(--measure);
  font-size: clamp(1rem, 1.1vw, 1.125rem);
}

.contact__body a {
  border-bottom: 1px solid var(--hairline);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.contact__body a:hover,
.contact__body a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact__rows {
  margin-top: 2rem;
  border-top: 1px solid var(--hairline-2);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--hairline-2);
}

.contact__row dt {
  flex: 0 0 10rem;
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.contact__row dd {
  margin: 0;
}

/* =========================================================
   11b. Newsletter (Noptin)

   The markup is Noptin's own [noptin] form. Every selector is
   scoped to .newsletter so it outranks Noptin's stylesheet, the
   styles its script injects, and WordPress's .wp-element-button
   defaults, without touching Noptin forms elsewhere on the site.
   ========================================================= */
.newsletter {
  background: #000;
  padding-block: clamp(3.5rem, 10vh, 6.5rem);
  border-top: 1px solid var(--hairline-2);
  scroll-margin-top: var(--header-h);
}

/* Same columns as the contact grid, so the form lines up under it. */
.newsletter__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 900px) {
  .newsletter__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.newsletter__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
}

.newsletter__body {
  max-width: var(--measure);
}

.newsletter__intro,
.newsletter .noptin-response {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
}

.newsletter__intro {
  margin-bottom: 1.5rem;
}

.newsletter__intro p {
  flex: 0 0 10rem;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: var(--paper-dim);
  font-size: clamp(1.2rem, 0.96rem + 0.2vw, 1.0625rem);
}

.newsletter__intro a,
.newsletter .noptin-response a,
.newsletter__notice a {
  border-bottom: 1px solid var(--hairline);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.newsletter__intro a:hover,
.newsletter__intro a:focus-visible,
.newsletter .noptin-response a:hover,
.newsletter .noptin-response a:focus-visible,
.newsletter__notice a:hover,
.newsletter__notice a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Form ---------------------------------------------------- */
.newsletter .newsletter__form {
  position: relative;
  margin: 0;
  max-width: none;
  text-align: start;
}

.newsletter .newsletter__form .noptin-form-fields {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .newsletter .newsletter__form .noptin-form-fields {
    flex-direction: row;
    gap: 0;
  }
}

.newsletter .newsletter__form .noptin-form-field-wrapper {
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
}

.newsletter
  .newsletter__form
  .noptin-form-field-wrapper.noptin-form-field-submit {
  flex: 0 0 auto;
  margin: 0;
}

.newsletter .newsletter__form .noptin-form-field {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 52px;
  margin: 0;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease);
}

.newsletter .newsletter__form .noptin-form-field::placeholder {
  color: var(--paper-dim);
  opacity: 1;
}

.newsletter .newsletter__form .noptin-form-field:hover {
  border-color: var(--paper-dim);
}

.newsletter .newsletter__form .noptin-form-field:focus {
  background: transparent;
  border-color: var(--accent);
  color: var(--paper);
  outline: none;
}

/* The accent border plus an inset ring reads as a 2px frame that stays
   inside the field instead of spilling over the button beside it. */
.newsletter .newsletter__form .noptin-form-field:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid var(--accent);
  outline-offset: -2px;
}

/* Only after a real attempt, so an untouched field is never red. */
.newsletter .newsletter__form .noptin-form-field:user-invalid,
.newsletter .newsletter__form .noptin-form-field.noptin-field--is-invalid {
  border-color: #c0392b;
}

/* Browser autofill paints its own background; keep the field black. */
.newsletter .newsletter__form .noptin-form-field:-webkit-autofill,
.newsletter .newsletter__form .noptin-form-field:-webkit-autofill:hover,
.newsletter .newsletter__form .noptin-form-field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  box-shadow: 0 0 0 100px var(--ink) inset;
  caret-color: var(--paper);
}

/* Noptin prints the button with .btn, which already gives the theme's
   type and hover; this makes it the solid variant and sizes it to the field. */
.newsletter .newsletter__form .noptin-form-submit {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0.5rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 520px) {
  .newsletter .newsletter__form .noptin-form-submit {
    width: auto;
    /* Sit flush against the field: one shared edge, not two. */
    margin-inline-start: -1px;
  }
}

.newsletter .newsletter__form .noptin-form-submit:hover,
.newsletter .newsletter__form .noptin-form-submit:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: none;
}

/* Sending: Noptin fades the fields; swap its blue spinner for ours. */
.newsletter .newsletter__form.noptin-submitting::after {
  width: 26px;
  height: 26px;
  border: 2px solid var(--hairline);
  border-top-color: var(--accent);
}

/* Messages ------------------------------------------------- */
.newsletter .newsletter__form .noptin-response {
  margin-top: 1.25rem;
}

.newsletter .newsletter__form .noptin-alert {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--ink-soft);
  border: 1px solid var(--hairline-2);
  border-left: 3px solid #c0392b;
  border-radius: 0;
  color: var(--paper);
  font-size: inherit;
}

.newsletter .newsletter__form .noptin-alert.noptin-success {
  border-left-color: var(--accent);
}

.newsletter .newsletter__form .noptin-response:focus {
  outline: none;
}

/* Once someone signs up, the message before and the form give way to
   the message after. */
.newsletter
  .newsletter__form.noptin-has-success.noptin-form-submitted
  > :not(.noptin-response) {
  display: none;
}

.newsletter
  .newsletter__form.noptin-has-success.noptin-form-submitted
  .noptin-response {
  margin-top: 0;
}

.newsletter__notice {
  padding: 0.85rem 1rem;
  border: 1px dashed var(--hairline);
  color: var(--paper-dim);
}

@media (prefers-reduced-motion: reduce) {
  .newsletter .newsletter__form .noptin-form-field,
  .newsletter__intro a,
  .newsletter .noptin-response a,
  .newsletter__notice a {
    transition: none;
  }

  .newsletter .newsletter__form.noptin-submitting::after {
    animation-duration: 3s;
  }
}

/* Footer -------------------------------------------------- */
.site-footer {
  padding: 1.75rem 0 2.5rem;
  background: #000;
  border-top: 1px solid var(--hairline-2);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
  text-align: center;
}

/* =========================================================
   12. Back to top
   ========================================================= */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--hairline);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0.3s,
    background-color 0.2s var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   13. Fallback templates (blog / pages)
   ========================================================= */
.page-body {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 6rem));
  padding-bottom: var(--section-pad);
}

.entry {
  max-width: 72ch;
  margin-inline: auto;
}
.entry + .entry {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--hairline-2);
}
.entry__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
}
.entry__meta {
  color: var(--paper-dim);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.entry__content a {
  border-bottom: 1px solid var(--hairline);
}
.entry__content h2,
.entry__content h3 {
  margin: 2rem 0 0.75rem;
}
.entry__content img {
  margin-block: 1.5rem;
}
.pagination {
  max-width: 72ch;
  margin: 3rem auto 0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

/* =========================================================
   14. Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .track__media,
  .merch-item__frame img {
    transition: none;
  }
}

/* -----------------------------------------------------------------
 * Animated film grain
 *
 * Deliberately below the chrome, so it textures the page content without
 * dirtying anything that sits on top of it. The ladder it slots into:
 *
 *   .film-grain      70    <- here
 *   .to-top          80
 *   .site-header    120
 *   .nav-overlay    200
 *   .band-lightbox  220
 *   .skip-link     1000
 *   .site-preloader 9990
 *
 * Nothing above this line is touched: open the menu or a band photo full
 * screen and it covers the grain completely.
 * ----------------------------------------------------------------- */
.film-grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 70;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

@media (prefers-reduced-motion: reduce) {
  .film-grain {
    transition: none;
  }
}

/* -----------------------------------------------------------------
 * Loading overlay
 *
 * Full-screen black cover with the custom logo in the middle, driven by
 * pace.js. Hidden by default: preloader.js adds .js to <html>, so visitors
 * without JavaScript never see it at all.
 * ----------------------------------------------------------------- */
.site-preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9990;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

html.js .site-preloader {
  display: flex;
}

/* Keep the page still behind the overlay. */
html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.site-preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.site-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  width: 100%;
  height: 100%;
  padding: var(--gutter, 1.5rem);
}

.site-preloader__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(320px, 70vw);
  animation: backline-pulse 1.8s ease-in-out infinite;
}

.site-preloader__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 120px;
  height: auto;
}

.site-preloader__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper, #fff);
}

@keyframes backline-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* -----------------------------------------------------------------
 * pace.js progress bar.
 *
 * pace.js inserts .pace into <body> and only ever transforms its
 * .pace-progress child, so the wrapper is ours to position. preloader.js
 * moves it inside .site-preloader__inner, where flexbox drops it under the
 * logo; the fixed rules below are the fallback for if that never happens.
 * ----------------------------------------------------------------- */
.pace {
  position: fixed;
  top: calc(50% + 4.5rem);
  left: 50%;
  z-index: 9991;
  width: min(220px, 60vw);
  height: 2px;
  overflow: hidden;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.site-preloader .pace {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 auto;
  transform: none;
}

.pace .pace-progress {
  position: absolute;
  top: 0;
  right: 100%;
  width: 100%;
  height: 100%;
  background: var(--accent, #c9a227);
  /* Smooths the jump to 100% when a page loads almost instantly. */
  transition: transform 0.4s ease-out;
}

.pace.pace-inactive,
html.is-loaded .pace {
  opacity: 0;
}

/* Once the overlay is gone the bar must not linger over the site. */
html.is-loaded .pace {
  visibility: hidden;
}

html:not(.js) .pace {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
