/*
  VO!D — site.css
  Shared by index.html, shows.html and epk.html.
  Tokens first, then the homepage sections, then the Shows and EPK
  pages, then print. Colours and fonts: edit the :root block.
*/


/* Design tokens — colours and fonts for every page. */
:root {
  --black:    #0A0A0A;  /* near-black background — slightly warm, not pure */
  --dirty:    #E8E0D0;  /* off-white text — aged paper feel, not harsh white */
  --blood:    #8B0000;  /* dark blood red — used sparingly as the accent */
  --dark:     #1A1A1A;  /* secondary dark for cards and section backgrounds */
  --mid:      #4A4A4A;  /* mid-grey for secondary text and borders */
  --dim:      #2A2A2A;  /* very dark grey for subtle backgrounds */


  --display:  'Bebas Neue', sans-serif;   /* headers, labels, nav */
  --body:     'Space Mono', monospace;    /* paragraphs, descriptions */

  /* secondary text colour — --mid is for borders and decoration, this is
     for anything you have to read (passes contrast on the dark background) */
  --mid-text: #8A8A8A;

  /* SMALL TEXT SIZES — the four sizes used by labels, captions and body
     copy. Phone sizes here; the desktop rule below scales them up 25%. */
  --fs-2xs: 10px;              /* photo captions only */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-lg: 14px;
}

/* desktop: +25% on the small text sizes (same breakpoint as the nav) */
@media (min-width: 901px) {
  :root {
    --fs-2xs: 11.5px;
    --fs-xs: 13.75px;
    --fs-sm: 15px;
    --fs-md: 16.25px;
    --fs-lg: 17.5px;
  }
}

/* Reset browser defaults. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: auto; /* no smooth scroll — keeps it raw */
}

body {
  background: var(--black);
  color: var(--dirty);
  font-family: var(--body);
  font-size: var(--fs-lg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Blood-red rule between sections. */
.rule {
  border: none;
  border-top: 1px solid var(--blood);
  margin: 0;
}

/*
================================================================
NAVIGATION — fixed top bar
================================================================
*/
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--dim);
}

.nav-logo {
  font-family: var(--display);
  font-size: 22px;
  color: var(--dirty);
  text-decoration: none;
  letter-spacing: 0.1em;
}

.nav-logo img {
  height: 34px;                 /* CHANGE: nav logo size */
  display: block;
  filter: invert(1);            /* black logo -> white */
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-logo:hover img {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--display);
  font-size: var(--fs-md);
  letter-spacing: 0.3em;
  color: var(--mid-text);
  text-decoration: none;
  transition: color 0.15s;
}


.nav-links a:hover {
  color: var(--dirty);
}

/* three-bar menu button — hidden on desktop, shown by the 900px rule below */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dirty);
  margin: 4px 0;
  transition: transform 0.15s, opacity 0.15s;
}
/* turns into an X when open */
#nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
#nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/*
================================================================
HERO
================================================================
*/
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 6vw 8rem;
  position: relative;
  overflow: hidden;
}

/* Faint logo behind the hero text. */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../images/hero-bg.png');
  background-size: 70%;             /* logo takes up 70% of the hero width */
  background-position: center 40%;  /* horizontal center, 40% down */
  background-repeat: no-repeat;
  opacity: 0.31;                    /* 0 = invisible, 1 = solid */

}

/* fades the hero into the black below */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    var(--black) 100%
  );
}


.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--display);
  font-size: var(--fs-md);
  letter-spacing: 0.5em;
  color: var(--blood);
  margin-bottom: 1rem;
}

/* Big title, scales with the viewport. */
.hero-name {
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 260px);
  line-height: 0.85;
  color: var(--dirty);
  margin-bottom: 2rem;
  user-select: none;
}

/* Letters start invisible; the glitch script reveals them. */
.hero-name span {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.05s;
}

.hero-name span.resolved {
  opacity: 1;
}

.hero-tagline {
  font-family: var(--body);
  font-size: clamp(11px, 1.2vw, 13px);
  color: var(--mid-text);
  font-style: italic;
  letter-spacing: 0.05em;
}

/*
================================================================
PHOTO DIVIDER
================================================================
*/
.photo-divider {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
}

.photo-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;                 /* dim the photo — increase for brighter */
  filter: grayscale(60%);       /* partially desaturated — 100% = full B&W */
}

/* gradient overlay on the photo so it fades into the sections above/below */
.photo-divider::before,
.photo-divider::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40%;
  z-index: 1;
}

.photo-divider::before {
  top: 0;
  background: linear-gradient(to bottom, var(--black), transparent);
}

.photo-divider::after {
  bottom: 0;
  background: linear-gradient(to top, var(--black), transparent);
}

/*
================================================================
SECTIONS
================================================================
*/
section {
  padding: 7rem 6vw;
}

/* small red label above section titles — like "DISCOGRAPHY" above "Music" */
.section-label {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.6em;
  color: var(--blood);
  margin-bottom: 2rem;
  display: block;
}


.section-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.9;
  color: var(--dirty);
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

/*
================================================================
MUSIC SECTION
================================================================
*/
.release-block {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  align-items: start;
}

.release-info {}

.release-meta {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.4em;
  color: var(--blood);
  margin-bottom: 1rem;
}

.release-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  color: var(--dirty);
  line-height: 0.9;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.release-description {
  font-size: var(--fs-md);
  color: var(--mid-text);
  line-height: 1.9;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 420px;
}

/* secondary streaming link below the Spotify embed */
.stream-also {
  font-family: var(--display);
  font-size: var(--fs-sm);
  letter-spacing: 0.3em;
  color: var(--mid-text);
  text-decoration: none;
  border-bottom: 1px solid var(--mid);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.stream-also:hover {
  color: var(--dirty);
  border-color: var(--dirty);
}

/* wrapper for the Spotify embed iframe */
.spotify-embed {
  border-radius: 0;             /* keep it square to match the aesthetic */
}


.spotify-embed iframe {
  border: none;
  width: 100%;
  
}

/*
================================================================
LIVE SECTION
================================================================
*/
.show-list {
  border-top: 1px solid var(--dim);
}

/* Show row: date | info | ticket */
.show-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--dim);
  transition: padding-left 0.1s;
}

.show-row:hover {
  padding-left: 0.75rem;        /* slides right slightly on hover */
}

.show-date {
  font-family: var(--display);
  font-size: 22px;
  color: var(--dirty);
  letter-spacing: 0.05em;
}

.show-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.show-venue {
  font-family: var(--display);
  font-size: 24px;
  color: var(--dirty);
  letter-spacing: 0.05em;
}

.show-location {
  font-size: var(--fs-sm);
  color: var(--mid-text);
  font-style: italic;
}

.show-ticket {
  font-family: var(--display);
  font-size: var(--fs-sm);
  letter-spacing: 0.3em;
  color: var(--blood);
  text-decoration: none;
  border: 1px solid var(--blood);
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.show-ticket:hover {
  background: var(--blood);
  color: var(--dirty);
}

/* shown when there are no upcoming dates */
.no-shows {
  padding: 3rem 0;
  color: var(--mid-text);
  font-style: italic;
  font-size: var(--fs-md);
}

/* Shown in place of the merch grid while the catalogue is empty. */
.merch-soon {
  padding: 4rem 0;
  font-family: var(--display);
  font-size: calc(var(--fs-lg) * 2);
  letter-spacing: 0.6em;
  color: var(--blood);
  text-align: center;
}

/* wrapper for the YouTube embed iframe */
.youtube-embed {
  border-radius: 0;             /* keep it square to match the aesthetic */
}


.youtube-embed iframe {
  border: none;
  width: 100%;

  align-items: center;
}

/*
================================================================
ABOUT SECTION
================================================================
*/
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 1rem;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}


.about-photo {
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
/* photographer credit, bottom-left over the photo (filled by assets/js/credits.js) */
.about-photo .press-caption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.4rem;
  font-size: var(--fs-2xs);
  font-style: italic;
  color: var(--dirty);
  opacity: 0.7;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  pointer-events: none;
}

.about-photo.wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity 0.3s, filter 0.3s;
}

/* hover: partial colour */
.about-photo:hover img {
  opacity: 0.9;
  filter: grayscale(60%);
}

.about-text {}

.about-bio p {
  font-size: var(--fs-lg);
  line-height: 2;
  color: var(--dirty);
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.about-bio p:first-child {
  opacity: 1;                   /* first paragraph slightly brighter */
}

/* member list below the bio */
.member-list {
  margin-top: 3rem;
  border-top: 1px solid var(--dim);
}

.member-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--dim);
}

.member-name {
  font-family: var(--display);
  font-size: 22px;
  color: var(--dirty);
  letter-spacing: 0.05em;
}

.member-role {
  font-size: var(--fs-sm);
  color: var(--mid-text);
  font-style: italic;
}

/*
================================================================
MERCH SECTION
================================================================
*/
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px;
  margin-top: 1rem;
}

.merch-card {
  background: var(--dark);
  padding: 2rem;
  border-left: 2px solid transparent;
  transition: border-color 0.15s;
}

.merch-card:hover {
  border-left-color: var(--blood);
}

/* placeholder box where a product photo will go */
.merch-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: var(--fs-sm);
  letter-spacing: 0.4em;
  color: var(--mid-text);
  margin-bottom: 1.25rem;
  border: 1px solid #222;
}

.merch-title {
  font-family: var(--display);
  font-size: 20px;
  color: var(--dirty);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.merch-desc {
  font-size: var(--fs-sm);
  color: var(--mid-text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.merch-price {
  font-family: var(--display);
  font-size: var(--fs-md);
  letter-spacing: 0.3em;
  color: var(--blood);
}

.merch-cta {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.merch-store-link {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.3em;
  color: var(--dirty);
  text-decoration: none;
  border: 1px solid var(--dirty);
  padding: 1rem 2rem;
  transition: background 0.15s, color 0.15s;
}

.merch-store-link:hover {
  background: var(--dirty);
  color: var(--black);
}

.merch-note {
  font-size: var(--fs-sm);
  color: var(--mid-text);
  font-style: italic;
}

/*
================================================================
CONTACT SECTION
================================================================
*/
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-top: 1rem;
}

.contact-block {
  margin-bottom: 2.5rem;
}

.contact-label {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.4em;
  color: var(--blood);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: var(--fs-lg);
  color: var(--dirty);
}

.contact-value a {
  color: var(--dirty);
  text-decoration: none;
  border-bottom: 1px solid var(--mid);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.contact-value a:hover {
  border-color: var(--dirty);
}

.contact-download {
  color: var(--blood);
  text-decoration: none;
  border-bottom: 1px solid var(--blood);
  padding-bottom: 1px;
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.2em;
  transition: color 0.15s, border-color 0.15s;
}

.contact-download:hover {
  color: var(--dirty);
  border-color: var(--dirty);
}

/* social platform links */
.social-links {
  display: flex;
  flex-direction: column;
}

.social-link {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.15em;
  color: var(--dirty);
  text-decoration: none;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}

.social-link:hover {
  color: var(--blood);
}

/* the ↗ arrow that appears on the right of each social link */
.social-link::after {
  content: '↗';
  font-size: var(--fs-sm);
  color: var(--mid-text);
}

/*
================================================================
FOOTER
================================================================
*/
footer {
  padding: 4rem 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--dim);
}

/* the footer logo image — small, dim, bottom-left */
.footer-logo img {
  height: 58px;                 /* CHANGE: adjust height to taste */
  opacity: 0.15;                /* very faint — increase to make more visible */
  filter: invert(1);            /* inverts colors — makes black logo white */
  transition: opacity 0.2s;
}

.footer-logo img:hover {
  opacity: 0.35;
}

.footer-right {
  text-align: right;
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--mid-text);
  letter-spacing: 0.2em;
  font-style: italic;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-family: var(--display);
  font-size: var(--fs-sm);
  letter-spacing: 0.3em;
  color: var(--dim);
}

/*
================================================================
RESPONSIVE
================================================================
*/
@media (max-width: 900px) {
  /* stack about grid to single column on tablets */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* reverse order so photos come first on mobile */
  .about-photos {
    order: -1;
  }
}

@media (max-width: 700px) {
  section {
    padding: 5rem 5vw;
  }

  /* hide ticket link on mobile (small screens) */
  .show-ticket {
    display: none;
  }

  /* show rows become two columns instead of three */
  .show-row {
    grid-template-columns: 90px 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

}

/*
  MOBILE MENU (900px and narrower) — links become a panel under the
  bar, toggled by .nav-toggle (assets/js/nav.js).
*/
@media (max-width: 900px) {
  /* EPK: QR moves from the header to the bottom of the page on phones */
  .epk-header .qr-block { display: none; }
  #epk-contact .qr-mobile { display: block; }   /* id selector: outranks the base .qr-mobile rule below */

  #nav {
    flex-wrap: wrap;             /* lets the panel drop below the logo/button row */
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--dim);
  }
  #nav.open .nav-links {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 1rem 0;             /* big tap targets */
    font-size: var(--fs-lg);
    border-bottom: 1px solid var(--dim);
  }
}

/* Reduced motion: skip the glitch animation. */
@media (prefers-reduced-motion: reduce) {
  .hero-name span {
    opacity: 1 !important;
  }
}


/*
================================================================
SHARED
================================================================
*/

/* Clears the fixed nav on pages without a hero. (section.page-top so it
   outranks the .epk-section padding shorthand.) */
section.page-top {
  padding-top: 10rem;
}

/* Sub-heading inside a section, e.g. "UPCOMING" / "PAST" on shows.html */
.section-sub {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.6em;
  color: var(--blood);
  margin: 4rem 0 1.5rem;
  display: block;
}
.section-sub:first-of-type {
  margin-top: 0;
}

/* Small text link with the underline treatment used elsewhere on the site */
.text-link {
  font-family: var(--display);
  font-size: var(--fs-sm);
  letter-spacing: 0.3em;
  color: var(--mid-text);
  text-decoration: none;
  border-bottom: 1px solid var(--mid);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.text-link:hover {
  color: var(--dirty);
  border-color: var(--dirty);
}

/* Row of links / buttons under a section */
.link-row {
  margin-top: 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Bordered button */
.btn-outline {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.3em;
  color: var(--dirty);
  text-decoration: none;
  border: 1px solid var(--dirty);
  padding: 1rem 2rem;
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover {
  background: var(--dirty);
  color: var(--black);
}

/* TODO box — content still to be supplied. Delete once it exists. */
.todo {
  border: 1px dashed var(--blood);
  padding: 1.25rem 1.5rem;
  color: var(--mid-text);
  font-size: var(--fs-md);
  font-style: italic;
  line-height: 1.8;
}
.todo::before {
  content: 'TODO';
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-size: var(--fs-lg);
  letter-spacing: 0.4em;
  color: var(--blood);
  margin-bottom: 0.5rem;
}


/*
================================================================
SECTION BACKGROUNDS — optional photo behind a section.
Each section has <div class="section-bg"></div> as its first child,
mapped to a file below. No file = plain black.
================================================================
*/
section {
  position: relative;           /* so .section-bg can sit inside it */
}
.section-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  pointer-events: none;         /* clicks go through to the content */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.25;                /* CHANGE: how visible the photo is (0-1) */
  filter: grayscale(60%);       /* CHANGE: 100% = full B&W, 0 = full colour */
}
/* fade the photo into black at the top and bottom edges */
.section-bg::before,
.section-bg::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 35%;
}
.section-bg::before {
  top: 0;
  background: linear-gradient(to bottom, var(--black), transparent);
}
.section-bg::after {
  bottom: 0;
  background: linear-gradient(to top, var(--black), transparent);
}
/* siblings after .section-bg sit above it (sibling selector so the hero layers are untouched) */
.section-bg ~ * {
  position: relative;
  z-index: 1;
}

/* CHANGE: one line per section. File goes in assets/images/. */
#about   .section-bg { background-image: url('../images/bg-about.jpg'); }
#music   .section-bg { background-image: url('../images/bg-music.jpg'); }
#live    .section-bg { background-image: url('../images/bg-live.jpg'); }
#merch   .section-bg { background-image: url('../images/bg-merch.jpg'); }
#contact .section-bg { background-image: url('../images/bg-contact.jpg'); }
/* EPK page — same idea, one per section */
#epk-top     .section-bg { background-image: url('../images/bg-epk-top.jpg'); }
#epk-bio     .section-bg { background-image: url('../images/bg-epk-bio.jpg'); }
#epk-media   .section-bg { background-image: url('../images/bg-epk-media.jpg'); }
#epk-photos  .section-bg { background-image: url('../images/bg-epk-photos.jpg'); }
#epk-logos   .section-bg { background-image: url('../images/bg-epk-logos.jpg'); }
#epk-history .section-bg { background-image: url('../images/bg-epk-history.jpg'); }
#epk-contact .section-bg { background-image: url('../images/bg-epk-contact.jpg'); }



/*
================================================================
MERCH — product cards and the order cart.
Products come from data/merch.js; see assets/js/merch.js.
================================================================
*/
.merch-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dim);
  margin-bottom: 2px;
}
.merch-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(60%);
  transition: filter 0.3s;
}
.merch-card:hover .merch-photo img { filter: grayscale(0%); }

.merch-thumbs { display: flex; gap: 2px; margin-bottom: 1.25rem; }
.merch-thumb {
  width: 44px; height: 44px;
  padding: 0; border: 1px solid transparent;
  background: none; cursor: pointer; overflow: hidden;
}
.merch-thumb.on { border-color: var(--blood); }
.merch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.6; }
.merch-thumb.on img { opacity: 1; }

.merch-card.is-out { opacity: 0.55; }

.merch-variants { display: flex; flex-wrap: wrap; gap: 4px; margin: 1rem 0 0.75rem; }
.merch-variant {
  font-family: var(--display);
  font-size: var(--fs-md);
  letter-spacing: 0.15em;
  color: var(--mid-text);
  background: none;
  border: 1px solid var(--dim);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.merch-variant[aria-pressed="true"] { color: var(--dirty); border-color: var(--dirty); }
.merch-variant.is-out {
  text-decoration: line-through;
  opacity: 0.4;
  cursor: not-allowed;
}
.merch-left {
  font-size: var(--fs-2xs);
  font-style: italic;
  color: var(--blood);
  margin-bottom: 0.5rem;
}
.merch-add {
  font-family: var(--display);
  font-size: var(--fs-md);
  letter-spacing: 0.3em;
  color: var(--dirty);
  background: none;
  border: 1px solid var(--dirty);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.merch-add:hover { background: var(--dirty); color: var(--black); }

/* bar pinned to the bottom once something is in the cart */
#cart-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 6vw;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--blood);
}
#cart-bar[hidden] { display: none; }
.cart-summary {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.2em;
  color: var(--dirty);
}

#cart-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(10,10,10,0.96);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}
#cart-overlay[hidden] { display: none; }
.cart-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--black);
  border: 1px solid var(--dim);
  padding: 2rem;
}
.cart-x {
  position: absolute;
  top: 0.75rem; right: 1rem;
  background: none; border: none;
  color: var(--dirty);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.cart-x:hover { opacity: 1; }
.cart-refline { font-size: var(--fs-md); color: var(--mid-text); margin-bottom: 1.5rem; }
.cart-refline b { color: var(--dirty); font-family: var(--display); letter-spacing: 0.15em; }

.cart-line {
  display: grid;
  grid-template-columns: 34px 1fr auto 28px;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--dim);
  font-size: var(--fs-md);
}
.cart-qty { color: var(--mid-text); }
.cart-name em { color: var(--mid-text); font-style: italic; }
.cart-price { font-family: var(--display); letter-spacing: 0.1em; }
.cart-remove {
  background: none; border: none;
  color: var(--mid-text);
  font-size: 18px; line-height: 1;
  cursor: pointer;
}
.cart-remove:hover { color: var(--blood); }
.cart-totals { padding: 1rem 0 1.5rem; }
.cart-subline {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-md);
  color: var(--mid-text);
  padding: 0.15rem 0;
}
.cart-subline[hidden] { display: none; }
.cart-subline em { font-style: italic; }
.cart-total-line {
  display: flex;
  justify-content: space-between;
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.2em;
  padding-top: 0.5rem;
}

.cart-field { display: block; margin-bottom: 1.25rem; }
.cart-field > span {
  display: block;
  font-family: var(--display);
  font-size: var(--fs-md);
  letter-spacing: 0.3em;
  color: var(--blood);
  margin-bottom: 0.4rem;
}
.cart-field select {
  width: 100%;
  background: var(--dark);
  color: var(--dirty);
  border: 1px solid var(--dim);
  font-family: var(--body);
  font-size: var(--fs-md);
  padding: 0.55rem 0.65rem;
  outline: none;
}
.cart-field input[type="text"],
.cart-field textarea {
  width: 100%;
  background: var(--dark);
  color: var(--dirty);
  border: 1px solid var(--dim);
  font-family: var(--body);
  font-size: var(--fs-md);
  padding: 0.55rem 0.65rem;
  outline: none;
}
.cart-field input:focus, .cart-field textarea:focus { border-color: var(--mid); }
.cart-field textarea { min-height: 62px; resize: vertical; }
.cart-radio {
  display: block;
  font-size: var(--fs-md);
  color: var(--dirty);
  margin-bottom: 0.25rem;
  cursor: pointer;
}
.cart-radio input { accent-color: var(--blood); margin-right: 0.5rem; }
.cart-how {
  font-size: var(--fs-sm);
  color: var(--mid-text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.cart-how a { color: var(--dirty); }
.cart-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cart-field input.bad, .cart-field textarea.bad { border-color: var(--blood); }
.cart-warn { color: var(--blood); font-style: normal; }
.cart-sent {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--blood);
  font-size: var(--fs-sm);
  color: var(--dirty);
}
.cart-sent[hidden] { display: none; }

@media (max-width: 700px) {
  #cart-bar { padding: 0.75rem 5vw; }
  .cart-two { grid-template-columns: 1fr; gap: 0; }
  .cart-panel { padding: 1.5rem 1.25rem; }
}

/*
================================================================
SHOWS PAGE
================================================================
*/

/* Instagram post links under the lineup */
.show-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.show-chip {
  font-family: var(--display);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--mid-text);
  text-decoration: none;
  border: 1px solid var(--dim);
  padding: 0.15rem 0.6rem;
  transition: color 0.15s, border-color 0.15s;
}
.show-chip:hover { color: var(--dirty); border-color: var(--mid); }

/* Festival / tour name — small red label above the venue */
.show-event {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.4em;
  color: var(--blood);
}

/* Full lineup, shown under the city on the same row */
.show-bill {
  font-size: var(--fs-sm);
  color: var(--mid-text);
  letter-spacing: 0.05em;
}

/*
  A past show with a video gets a third column on the right
  holding the player. Rows without video keep the normal layout.
*/
.show-row.has-video {
  grid-template-columns: 130px 1fr min(480px, 40%);  /* CHANGE: 480px = max player width */
  align-items: start;
  padding: 2rem 0;
}
.show-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}
/*
  PHOTO STRIP - thumbnails for a past show, full width under the
  text/video. Click opens the lightbox. Files: assets/shows/<date>/
*/
.show-photos {
  grid-column: 1 / -1;          /* span every column of the row */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 2px;
  margin-top: 0.5rem;
}
.show-photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--dim);
}
.show-photo img,
.show-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: opacity 0.2s, filter 0.2s;
  pointer-events: none;         /* the <a> takes the click, not the video */
}
.show-photo:hover img,
.show-photo:hover video {
  opacity: 1;
  filter: grayscale(0%);
}
/* play badge on video tiles (clips and YouTube) */
.show-photo.is-video { position: relative; }
.show-photo.is-video::after {
  content: '\25B6';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(10,10,10,0.7);
  border: 1px solid var(--dirty);
  color: var(--dirty);
  font-size: 13px;
  line-height: 32px;
  text-align: center;
  text-indent: 2px;
  pointer-events: none;
}

/* LIGHTBOX - created by assets/js/shows.js on first click */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;                 /* above the nav (100) */
  background: rgba(10, 10, 10, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;                /* author display:flex above would otherwise beat [hidden] */
}
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: pointer;              /* click = next */
}
.lightbox video,
.lightbox iframe {
  width: min(92vw, calc(85vh * 16 / 9));
  aspect-ratio: 16 / 9;
  max-height: 85vh;
  border: none;
  background: #000;
}
.lightbox img[hidden], .lightbox video[hidden], .lightbox iframe[hidden] { display: none; }
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: var(--dirty);
  font-family: var(--display);
  font-size: 32px;
  cursor: pointer;
  opacity: 0.5;
  padding: 1rem;
  transition: opacity 0.15s;
}
.lightbox button:hover { opacity: 1; }
.lightbox-prev  { left: 1rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 1rem; top: 1rem; }
.lightbox-credit {
  position: absolute;
  bottom: 3.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--mid-text);
  white-space: nowrap;
}
.lightbox-count {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: var(--fs-md);
  letter-spacing: 0.3em;
  color: var(--mid-text);
}

/* phones: video drops under the text, full width. Must come AFTER the rule above. */
@media (max-width: 700px) {
  .show-row.has-video {
    grid-template-columns: 90px 1fr;  /* drop the video column on phones */
  }
  .show-row.has-video .show-video {
    grid-column: 1 / -1;          /* span both columns, under the text */
    margin-top: 1rem;
  }
}


/*
================================================================
EPK PAGE
================================================================
*/

/* Logo in place of the EPK title */
/* header row: logo on the left, QR on the right */
.epk-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
}
.epk-logo {
  display: block;
  width: min(480px, 70vw);      /* CHANGE: logo size on the EPK page */
  height: auto;
}

/* Quick-facts grid under the EPK title */
.epk-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* 4 x 2 on desktop, same as the PDF */
  gap: 2px;
  border-top: 1px solid var(--dim);
  margin-bottom: 2rem;
}
.epk-fact {
  background: var(--dark);
  padding: 1.5rem;
}
.epk-fact-label {
  font-family: var(--display);
  font-size: var(--fs-lg);
  letter-spacing: 0.4em;
  color: var(--blood);
  display: block;
  margin-bottom: 0.5rem;
}
.epk-fact-value {
  font-size: var(--fs-lg);
  color: var(--dirty);
  line-height: 1.6;
}
.epk-fact-value a {
  color: var(--dirty);
  text-decoration: none;
  border-bottom: 1px solid var(--mid);
}

/* EPK sections are tighter than the fan-site sections */
.epk-section {
  padding: 4rem 6vw;
}
.epk-section .section-title {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 2rem;
}

/* Bio text */
.epk-bio p {
  font-size: var(--fs-lg);
  line-height: 2;
  color: var(--dirty);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.epk-bio p:first-child { opacity: 1; }

/* Two-column layout used for music + video side by side */
.epk-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: start;
}

/* Press photo grid — each cell is the photo plus a download line */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.press-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  margin-bottom: 0.75rem;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: opacity 0.3s, filter 0.3s;
}
.press-photo:hover img {
  opacity: 1;
  filter: grayscale(40%);
}
.press-meta {
  display: flex;
  flex-direction: column;       /* caption, then the Download link beneath it */
  align-items: flex-start;
  gap: 0.35rem;
  font-size: var(--fs-2xs);
  color: var(--mid-text);
  font-style: italic;
}
.press-meta .text-link {
  font-style: normal;
  white-space: nowrap;
}
/* filled by assets/js/credits.js; empty until the metadata is read */
.press-caption:empty::before {
  content: '\00a0';
}

/* Logo downloads — light tile so the black logo is visible */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.logo-tile {
  background: var(--dirty);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin-bottom: 0.75rem;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* QR code (sits in the EPK header) */
.qr-img {
  display: block;
  width: 160px;                 /* CHANGE: QR size on screen */
  height: 160px;
  margin-bottom: 0.5rem;
}
.qr-block .press-meta { flex-direction: row; gap: 0.75rem; }   /* the two QR download links stay side by side */
.qr-mobile { display: none; margin-top: 2rem; }                 /* phones only, see the 900px rule */

/* Elements that only show up on paper / PDF */
.print-only { display: none; }

@media (max-width: 900px) {
  .epk-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .epk-facts { grid-template-columns: 1fr; }
}


/*
================================================================
PRINT / PDF VERSION
Dark by default (site palette, backgrounds forced on).
html.print-light swaps to black-on-white.
================================================================
*/
@media print {
  /* edge-to-edge: no printer margin, the page margin lives on the body instead */
  @page { margin: 0; }

  html, body {
    background: var(--black);
    -webkit-print-color-adjust: exact;   /* print backgrounds as on screen */
    print-color-adjust: exact;
  }
  body { font-size: 9.5px; line-height: 1.4; color: var(--dirty); padding: 8mm 10mm; }

  /* keep the PDF at its tuned sizes */
  :root { --fs-2xs: 9px; --fs-xs: 10px; --fs-sm: 11px; --fs-md: 12px; --fs-lg: 13px; }

  /* LIGHT variant — set by the PDF Version (Light) button on epk.html */
  html.print-light {
    --black: #FFFFFF;
    --dirty: #111111;
    --dark:  #F2F2F2;
    --mid:   #555555;
    --mid-text: #555555;
    --dim:   #DDDDDD;
  }

  #nav, footer, .no-print, iframe, .hero-bg, .hero-overlay, .section-bg, .show-photos, .lightbox, .qr-mobile,
  #cart-bar, #cart-overlay { display: none !important; }
  .epk-header .qr-block { display: block !important; }   /* header QR prints at every width */
  .print-only { display: block; font-size: 9px; color: var(--mid); }

  /* Sections may split across pages; only small units stay whole. */
  section.page-top { padding-top: 0; }
  .epk-section { padding: 0.6rem 0; }
  .epk-section .section-label { font-size: 8px; letter-spacing: 0.4em; margin-bottom: 0.15rem; }
  .epk-section .section-title { font-size: 18px; margin-bottom: 0.5rem; break-after: avoid; }
  .section-sub { font-size: 8px; margin: 0.6rem 0 0.3rem; break-after: avoid; }
  .rule { margin: 0; }

  /* header: title small, facts in a tight 4-up grid */
  .epk-logo { width: 55mm; }
  html.print-light .epk-logo { filter: invert(1); }   /* white logo on a white page otherwise */
  .epk-facts { grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 0; }
  .epk-fact { padding: 0.4rem 0.6rem; break-inside: avoid; }
  .epk-fact-label { font-size: 7.5px; letter-spacing: 0.3em; margin-bottom: 0.15rem; }
  .epk-fact-value { font-size: 9px; line-height: 1.35; }

  /* bio: short + long flow in two text columns */
  .epk-bio { column-count: 2; column-gap: 1.5rem; max-width: none; }
  .epk-bio p { font-size: 9px; line-height: 1.45; margin-bottom: 0.5rem; max-width: none; break-inside: avoid; }

  /* music & video: embeds are hidden, only the two URL lines remain */
  .epk-grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* photos 4-up, logos 2-up on one row */
  .press-grid { grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
  .press-photo { break-inside: avoid; }
  .press-photo img { filter: none; opacity: 1; aspect-ratio: 3 / 2; margin-bottom: 0.2rem; }
  .press-meta { font-size: 7.5px; }
  .logo-grid { grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
  .logo-tile { padding: 0.4rem; border: 1px solid var(--dim); aspect-ratio: 3 / 2; margin-bottom: 0.2rem; }

  /* PDF is page 1 only: show history and booking stay on the site.
     (The email is in the facts grid and the QR is in the header.) */
  #epk-history, #epk-contact { display: none; }
  .show-list { border-top: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .show-row { padding: 0.45rem 0; grid-template-columns: 62px 1fr; gap: 0.6rem; align-items: start; break-inside: avoid; }
  .show-row:hover { padding-left: 0; }
  .show-info { gap: 0; }
  .show-date { font-size: 10px; }
  .show-venue { font-size: 11px; }
  .show-event { font-size: 7.5px; letter-spacing: 0.25em; }
  .show-location { font-size: 8.5px; }
  .show-bill { font-size: 8px; }
  .show-ticket, .show-video, .show-chips { display: none; }

  .epk-header { margin-bottom: 0.4rem; align-items: flex-end; }
  .qr-img { width: 22mm; height: 22mm; margin: 0; }

  .todo { display: none; }          /* not for bookers */

  a { color: inherit; text-decoration: none; border: none !important; }
  .text-link, .btn-outline, .link-row { display: none; }
}
