/* Layout: a black stage. One condensed display voice taken from the logo, content in a single column,
   hero pairs the stacked-rings mark with the band photo. Orange is the only colour that shouts. */

/* Self-hosted variable font (no request to Google). Files live in /fonts. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #000000;
  --orange: #FD7F00;      /* sampled from the logo */
  --orange-hot: #FF9A33;  /* hover */
  --ink: #F4EDE6;         /* warm off-white text */
  --mute: #A39688;        /* warm grey, secondary text */
  --line: #33271D;        /* warm dark rule */

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: 1.875rem;
  --step-3: clamp(2.25rem, 5vw, 3.25rem);
  --step-4: clamp(3.5rem, 11vw, 7.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--orange-hot); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Display voice: condensed, heavy, uppercase, like the wordmark */
.section__title, .brand__name, .nav a,
.post h3, .listen__title, .btn, .hero__genre {
  font-family: var(--display);
  font-stretch: 62%;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

/* Example strip */
.example-strip {
  margin: 0;
  padding: 0.5rem var(--gutter);
  background: var(--orange);
  color: var(--black);
  font-size: var(--step--1);
  text-align: center;
}

/* Top bar */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--orange); flex-shrink: 0; }
.brand__mark { width: 2.75rem; height: auto; }
.brand__name { font-size: var(--step-1); color: var(--orange); }
.nav { display: flex; gap: clamp(0.875rem, 2.5vw, 2rem); overflow-x: auto; margin-left: auto; }
.nav a { font-size: 1.125rem; text-decoration: none; color: var(--ink); padding-block: 0.5rem; white-space: nowrap; }
.nav a:hover { color: var(--orange); }

/* "Back to the site" shrinks to "Back" on phones */
.nav .back-short { display: none; }
@media (max-width: 40rem) {
  .nav .back-full { display: none; }
  .nav .back-short { display: inline; }
}

/* Burger menu (phones): the nav collapses into a dropdown under the top bar */
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 0.4rem; cursor: pointer; flex-shrink: 0; }
.menu-toggle svg { width: 1.75rem; height: 1.75rem; display: block; }
.menu-toggle:hover { color: var(--orange); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-burger { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 40rem) {
  .menu-toggle { display: block; }
  .nav--collapsible {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0; overflow-x: visible;
    background: var(--black); border-bottom: 1px solid var(--line);
    padding: 0.25rem var(--gutter) 0.75rem; margin-left: 0;
  }
  .nav--collapsible.nav--open { display: flex; }
  .nav--collapsible a { font-size: 1.375rem; padding-block: 0.8rem; border-top: 1px solid var(--line); }
  .nav--collapsible a:first-child { border-top: 0; }
}

/* Language toggle (shows the language you can switch to) */
.lang {
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: 1rem; line-height: 1;
  background: none; border: 2px solid var(--line); color: var(--ink);
  padding: 0.4rem 0.55rem 0.3rem; cursor: pointer; flex-shrink: 0;
}
.lang:hover { border-color: var(--orange); color: var(--orange); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2rem, 6vw, 5rem);
}
.hero__id { display: grid; gap: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.hero__mark { width: 100%; max-width: 34rem; height: auto; color: var(--orange); overflow: visible; }
.hero__word { margin: 0; max-width: 34rem; }
.hero__genre { margin: 0; font-size: clamp(1.375rem, 5vw, 1.875rem); color: var(--ink); font-weight: 700; text-transform: none; letter-spacing: 0.02em; text-wrap: balance; }
.hero__photo { margin: 0; min-width: 0; }
.hero__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero__coverlink { display: block; position: relative; }
.hero__badge {
  position: absolute; top: 0.8rem; right: 0.8rem; rotate: 3deg;
  background: var(--orange); color: #000;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--step--1);
  padding: 0.25rem 0.65rem; border-radius: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.hero__release { margin: 0.6rem 0 0; color: var(--mute); font-size: var(--step--1); }

/* Phones: rings and band photo sit side by side on the first row, like on desktop */
@media (max-width: 52rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem clamp(1rem, 4vw, 2rem);
    align-items: center;
  }
  .hero__id { display: contents; }
  .hero__mark { grid-column: 1; grid-row: 1; max-width: none; }
  .hero__photo { grid-column: 2; grid-row: 1; }
  .hero__word, .hero__genre, .hero__next, .hero__cta { grid-column: 1 / -1; }
  .hero__word { max-width: 26rem; }
}
@media (max-width: 23rem) { .brand__mark { width: 2.25rem; } .brand__name { display: none; } }

/* The one moment: three pancakes stack up on load. Clicking the stack replays it (main.js). */
@media (prefers-reduced-motion: no-preference) {
  .hero .ring--1 { animation: stack-top 1.2s cubic-bezier(.2, 1.35, .35, 1) .2s both; }
  .hero .ring--3 { animation: stack-bottom 1.2s cubic-bezier(.2, 1.35, .35, 1) .2s both; }
  .hero .ring--2 { animation: thump .5s ease-out 1.05s both; }
  .hero__mark { cursor: pointer; transition: transform 0.35s ease; }
  .hero__mark:hover { transform: rotate(-2deg) scale(1.02); }
  .hero__mark.restack .ring--1 { animation: stack-top 1.2s cubic-bezier(.2, 1.35, .35, 1) 0s both; }
  .hero__mark.restack .ring--3 { animation: stack-bottom 1.2s cubic-bezier(.2, 1.35, .35, 1) 0s both; }
  .hero__mark.restack .ring--2 { animation: thump .5s ease-out .85s both; }
}
@keyframes stack-top    { from { transform: translateY(152px); } }
@keyframes stack-bottom { from { transform: translateY(-151px); } }
@keyframes thump { 0% { stroke-width: 54; } 35% { stroke-width: 90; } 100% { stroke-width: 54; } }

/* Next show, filled from Bandsintown */
.hero__next { margin: 0; font-size: var(--step-0); }
.hero__next a { text-decoration: none; }
.hero__next a:hover { color: var(--orange-hot); }
.hero__next strong {
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  color: var(--orange); margin-right: 0.5rem;
}

/* Hero buttons */
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; border-top: 3px solid var(--orange); padding-top: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.55rem 1.1rem 0.45rem;
  font-size: 1.25rem; text-decoration: none;
  background: var(--orange); color: var(--black);
  border: 2px solid var(--orange); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--orange-hot); border-color: var(--orange-hot); color: var(--black); }
.btn--ghost { background: transparent; color: var(--orange); }
.btn--ghost:hover { background: var(--orange); color: var(--black); }
.btn--small { min-height: 2.25rem; font-size: 1.05rem; padding: 0.4rem 0.8rem 0.3rem; }

/* Phones: buttons stretch across the column so they anchor to their section
   instead of floating loosely in the whitespace */
@media (max-width: 40rem) {
  .hero__cta .btn,
  .listen__body > p:has(.btn) .btn,
  #past-shows-btn, #flyers-btn, #news-more,
  .post .btn {
    width: 100%;
  }
}

/* Sections */
.section { padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.section__title { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); font-size: var(--step-4); color: var(--orange); text-wrap: balance; }

/* Shows (Bandsintown widget) */
.bit { min-height: 6rem; }
.bit-fallback { margin: 0; color: var(--mute); }
.bit-fallback a { color: var(--orange); }
.bit-follow { margin: 1.5rem 0 0; }
.empty { color: var(--mute); margin: 0; }

/* Past shows (behind the button) */
.past { margin-top: 2.5rem; }
.past__title {
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: var(--step-2); line-height: 0.9; margin: 0 0 1rem;
}
.past-list { list-style: none; margin: 0; padding: 0; max-width: 42rem; }
.past-list li {
  display: grid; grid-template-columns: 10rem minmax(0, 1fr);
  gap: 0.25rem clamp(1rem, 3vw, 2rem);
  padding-block: 0.6rem; border-top: 1px solid var(--line);
}
.past-list li:last-child { border-bottom: 1px solid var(--line); }
.past-list time { color: var(--mute); font-size: var(--step--1); font-variant-numeric: tabular-nums; padding-top: 0.15rem; }
.past-list__empty { color: var(--mute); }
@media (max-width: 36rem) { .past-list li { grid-template-columns: minmax(0, 1fr); } }
#past-shows-btn { margin-top: 1.5rem; }
#past-shows-error { margin-top: 1.5rem; }

/* Flyer gallery (under past shows) */
#flyers-btn { margin-top: 1.5rem; }
.flyers { margin-top: 2.5rem; }
.flyer-grid { columns: 14rem auto; column-gap: 1rem; }
.flyer__open {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  background: none; cursor: zoom-in; overflow: hidden;
  break-inside: avoid; margin: 0 0 1rem;
  transition: border-color 0.2s;
}
.flyer__open img { transition: transform 0.25s; }
.flyer__open:hover, .flyer__open:focus-visible { border-color: var(--orange); }
.flyer__open:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .flyer__open img { transition: none; } }
/* Phones: keep the grid effect with three smaller columns instead of one big one */
@media (max-width: 36rem) {
  .flyer-grid { columns: 3; column-gap: 0.5rem; }
  .flyer__open { margin-bottom: 0.5rem; }
}

/* Full-screen flyer view */
.flyer-lightbox[hidden] { display: none; } /* the class's display:flex would otherwise beat the hidden attribute */
.flyer-lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(0, 0, 0, 0.92); padding: 1rem;
}
.flyer-lightbox figure { margin: 0; min-width: 0; text-align: center; }
.flyer-lightbox img {
  /* 100% of the figure, which flexes between the prev/next buttons: stays centred on phones */
  max-width: min(100%, 44rem); max-height: 82vh;
  width: auto; margin-inline: auto; border: 1px solid var(--line);
}
@media (max-width: 36rem) {
  .flyer-lightbox { padding: 0.5rem; gap: 0; }
  .flyer-lightbox__nav { padding: 0.5rem 0.3rem; }
}
.flyer-lightbox__caption { color: var(--mute); font-size: var(--step--1); margin-top: 0.6rem; }
.flyer-lightbox__nav, .flyer-lightbox__close {
  background: none; border: none; color: var(--ink); cursor: pointer;
  font-size: 2.2rem; line-height: 1; padding: 0.5rem 0.75rem;
}
.flyer-lightbox__nav:hover, .flyer-lightbox__close:hover { color: var(--orange); }
.flyer-lightbox__close { position: absolute; top: 0.75rem; right: 0.75rem; }

/* News */
.news { display: grid; }
.post {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.5rem clamp(1rem, 3vw, 2rem);
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}
.post:last-child { border-bottom: 1px solid var(--line); }
.post time { color: var(--mute); font-size: var(--step--1); padding-top: 0.35rem; font-variant-numeric: tabular-nums; }
.post__body { max-width: 40rem; }
.post h3 { margin: 0 0 0.6rem; font-size: var(--step-2); text-wrap: balance; }
.post p { margin: 0 0 0.75rem; }
.post .btn { margin-top: 0.25rem; }
@media (max-width: 36rem) { .post { grid-template-columns: minmax(0, 1fr); } }
#news-more { margin-top: 1.5rem; }

/* Listen */
.listen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}
.listen .section__title { grid-column: 1 / -1; margin-bottom: 0; }
.listen__cover { width: 100%; max-width: 30rem; aspect-ratio: 1 / 1; object-fit: cover; }
.listen__body { min-width: 0; }
.listen__kicker { margin: 0; color: var(--mute); font-size: var(--step--1); }
.listen__title { margin: 0.2rem 0 0.5rem; font-size: var(--step-3); }
.listen__desc { margin: 0 0 1.25rem; }
.listen__body > p:has(.btn) { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.75rem; }
.listen__coverlink { display: block; max-width: 30rem; }
.platforms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.platforms a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 0.9rem; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-2); line-height: 1; text-decoration: none;
}
.platforms a::after {
  content: ""; width: 0.6em; height: 0.6em; flex-shrink: 0;
  border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: rotate(45deg);
}
.platforms a:hover { color: var(--orange); }
@media (max-width: 44rem) { .listen { grid-template-columns: minmax(0, 1fr); } }

/* Music video: local thumbnail first, the YouTube player loads only after a click */
.listen__video { grid-column: 1 / -1; }
.listen__video iframe { display: block; width: 100%; max-width: 60rem; aspect-ratio: 16 / 9; border: 0; }
.video-facade {
  position: relative; display: block; width: 100%; max-width: 60rem;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.video-facade img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-facade__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 4.5rem; height: 3.25rem; border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.7); display: grid; place-items: center;
  transition: background 0.2s;
}
.video-facade__play::after {
  content: "";
  border-style: solid; border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent #fff;
}
.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play { background: var(--orange); }

/* Spotify player: local preview card first, the real player loads only after a click */
.listen__player { grid-column: 1 / -1; }
.listen__player iframe { display: block; width: 100%; height: 352px; border: 0; }
.player-facade {
  display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 60rem;
  padding: 1rem; border: 1px solid var(--line); background: none;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.player-facade img { width: 4.5rem; height: 4.5rem; object-fit: cover; flex-shrink: 0; }
.player-facade__body { display: grid; gap: 0.15rem; min-width: 0; }
.player-facade__name {
  font-family: var(--display); font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-1); line-height: 1;
}
.player-facade__hint { color: var(--mute); font-size: var(--step--1); }
.player-facade__play {
  margin-left: auto; flex-shrink: 0;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); display: grid; place-items: center;
  transition: background 0.2s;
}
.player-facade__play::after {
  content: "";
  margin-left: 0.2rem;
  border-style: solid; border-width: 0.5rem 0 0.5rem 0.85rem;
  border-color: transparent transparent transparent currentColor;
}
.player-facade:hover .player-facade__play,
.player-facade:focus-visible .player-facade__play { background: var(--orange); }
.player-facade:hover .player-facade__name { color: var(--orange); }

/* Discography grid */
.listen__discog { grid-column: 1 / -1; }
.discog__title {
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: var(--step-2); line-height: 0.9; margin: 0 0 1.25rem;
}
.discog {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.5rem;
}
.discog a, .discog__item { display: block; text-decoration: none; }
.discog__cover {
  display: grid; place-items: center; aspect-ratio: 1 / 1;
  background: #0D0A07; border: 1px solid var(--line); overflow: hidden;
}
.discog__cover img { width: 100%; height: 100%; object-fit: cover; }
.discog__cover svg { width: 55%; height: auto; color: var(--line); }
.discog a:hover .discog__cover { border-color: var(--orange); }
.discog a:hover .discog__cover svg { color: var(--orange); }
.discog__name {
  display: block; margin-top: 0.6rem;
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: var(--step-1); line-height: 0.95;
}
.discog__year { display: block; margin-top: 0.25rem; color: var(--mute); font-size: var(--step--1); font-variant-numeric: tabular-nums; }

/* Merch (merch.html) */
.merch-page { padding-block: clamp(2rem, 6vw, 4rem); }
.merch-page h1 { margin-top: 0; }
.merch-page .contact__mail { margin-top: 3rem; }
.merch-intro { max-width: 46rem; color: var(--mute); margin: 0 0 1.2rem; }

/* Deal banner, like a shop promo */
.merch-deal {
  display: flex; align-items: center; gap: 0.8rem; width: fit-content;
  margin: 0 0 1.6rem; padding: 0.7rem 1rem 0.7rem 0.85rem;
  border: 1px solid rgba(253, 127, 0, 0.45); border-radius: 0.45rem;
  background: linear-gradient(100deg, rgba(253, 127, 0, 0.16), rgba(253, 127, 0, 0.04) 70%);
  color: var(--ink);
}
.merch-deal__icon { width: 1.5rem; height: 1.5rem; flex: none; color: var(--orange); }

/* Toolbar above the grid: product count left, stock switch right */
.merch-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem 1.2rem; flex-wrap: wrap;
  margin: 0 0 1.2rem; padding: 0.55rem 0.9rem;
  border: 1px solid var(--line); border-radius: 0.45rem;
}
.merch-count { color: var(--mute); font-size: var(--step--1); font-variant-numeric: tabular-nums; }

/* The stock filter looks like a switch; the real checkbox is visually hidden */
.merch-filter {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--mute); font-size: var(--step--1); cursor: pointer; user-select: none;
}
.merch-filter:hover, .merch-filter:has(input:checked) { color: var(--ink); }
.merch-filter input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.merch-filter__switch {
  position: relative; flex: none; width: 2.1rem; height: 1.15rem; border-radius: 1rem;
  background: rgba(244, 237, 230, 0.25); transition: background 0.2s;
}
.merch-filter__switch::after {
  content: ""; position: absolute; top: 0.125rem; left: 0.125rem;
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: var(--ink); transition: translate 0.2s;
}
.merch-filter input:checked + .merch-filter__switch { background: var(--orange); }
.merch-filter input:checked + .merch-filter__switch::after { translate: 0.95rem 0; }
.merch-filter input:focus-visible + .merch-filter__switch { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .merch-filter__switch, .merch-filter__switch::after { transition: none; } }
.merch-note { max-width: 46rem; color: var(--mute); font-size: var(--step--1); margin: 1.5rem 0 0; }

/* Bento grid: every tile is square, products with several pictures span 2x2.
   The name sits on the picture, so tile height == tile width and the rows line up. */
.merch {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense; gap: 0.9rem;
}
@media (max-width: 56rem) { .merch { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 36rem) { .merch { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }
.product--big { grid-column: span 2; grid-row: span 2; }

/* Sold-out products are dimmed a little */
.product--out .product__zoom img { opacity: 0.6; filter: grayscale(50%); }
.product--out .product__media:hover .product__zoom img { opacity: 0.8; }

.product {
  position: relative; min-width: 0; /* long names must not widen the grid column */
  border: 1px solid var(--line); background: #0D0A07;
  transition: border-color 0.2s;
}
.product:hover, .product:focus-within { border-color: var(--orange); }
.product__media { position: relative; overflow: hidden; }
.product__slides {
  list-style: none; margin: 0; padding: 0;
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.product__slides::-webkit-scrollbar { display: none; }
.product__slides li { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.product__zoom { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.product__zoom img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.35s; }
.product__media:hover .product__zoom img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .product__zoom img { transition: none; } }

.product__arrow {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 1;
  background: rgba(0, 0, 0, 0.55); border: none; color: var(--ink); cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: 0.3rem 0.55rem;
}
.product__arrow--prev { left: 0; }
.product__arrow--next { right: 0; }
.product__arrow:hover { color: var(--orange); }
.product__dots {
  position: absolute; left: 0; right: 0; top: 0.6rem;
  display: flex; justify-content: center; gap: 0.4rem; pointer-events: none;
}
.product__dots i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: rgba(244, 237, 230, 0.5); }
.product__dots i.on { background: var(--orange); }

/* Name, price and mail link on a dark gradient over the lower edge of the picture.
   On narrow screens the tiles are small, so the info moves below the picture instead. */
.product__info {
  position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 2.6rem 0.7rem 0.55rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 30%, transparent);
}
@media (max-width: 36rem) {
  .product__info {
    position: static; pointer-events: auto;
    padding: 0.45rem 0.55rem 0.5rem;
    background: none;
  }
}
.product__name {
  margin: 0;
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: var(--step-0); line-height: 0.95;
}
.product--big .product__name { font-size: var(--step-1); }
.product__meta { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.15rem; }
.product__price { color: var(--ink); font-size: var(--step--1); font-variant-numeric: tabular-nums; }

/* Green dot = in stock, red dot = sold out */
.product__stock { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--mute); font-size: var(--step--1); }
.product__stock::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; flex: none; }
.product__stock--in::before { background: #3FB56B; }
.product__stock--out::before { background: #D64545; }

/* Sizes of shirts and hoodies; sold-out sizes are greyed and struck through */
.product__sizes {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin: 0.3rem 0 0; padding: 0;
}
.product__sizes li {
  font-size: var(--step--1); line-height: 1.3; padding: 0 0.4rem;
  border: 1px solid rgba(244, 237, 230, 0.4); border-radius: 0.3rem;
}
.product__sizes li.product__size--out {
  color: var(--mute); opacity: 0.45; text-decoration: line-through;
  border-color: rgba(244, 237, 230, 0.2);
}

/* Only read out loud by screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.product__add {
  pointer-events: auto; display: inline-block; margin-top: 0.35rem;
  background: none; border: 1px solid var(--orange); color: var(--orange);
  font: inherit; font-size: var(--step--1); padding: 0.15rem 0.6rem;
  border-radius: 0.3rem; cursor: pointer;
}
.product__add:hover, .product__add.ok { background: var(--orange); color: #000; }

/* Available sizes are picked by clicking; the picked one turns orange */
.product__sizes li.product__size--pick { padding: 0; }
.product__sizes li.product__size--pick button {
  font: inherit; background: none; border: none; color: inherit;
  padding: 0 0.4rem; cursor: pointer; pointer-events: auto;
}
.product__sizes li.on { border-color: var(--orange); color: var(--orange); }

/* Small shopping cart, floating bottom right (below the lightbox, z-index 60) */
.cart { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; }
.cart__toggle {
  display: flex; align-items: center; gap: 0.45rem; margin-left: auto;
  background: var(--orange); color: #000; border: none; border-radius: 2rem;
  padding: 0.55rem 0.95rem; cursor: pointer; font: inherit; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}
.cart__toggle svg { width: 1.3rem; height: 1.3rem; }
.cart__panel {
  position: absolute; right: 0; bottom: calc(100% + 0.7rem);
  width: min(22rem, calc(100vw - 2rem));
  background: #0D0A07; border: 1px solid var(--line); border-radius: 0.45rem;
  padding: 0.9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.cart__title {
  margin: 0 0 0.4rem;
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: var(--step-1);
}
.cart__items { list-style: none; margin: 0; padding: 0; max-height: 40vh; overflow-y: auto; }
.cart__items li { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.cart__name { flex: 1; min-width: 0; font-size: var(--step--1); }
.cart__size { display: block; color: var(--mute); }
.cart__qty { display: inline-flex; align-items: center; gap: 0.45rem; font-variant-numeric: tabular-nums; }
.cart__qty button, .cart__remove {
  flex: none; width: 1.5rem; height: 1.5rem; padding: 0; line-height: 1;
  background: none; border: 1px solid var(--line); border-radius: 0.3rem;
  color: var(--ink); font: inherit; cursor: pointer;
}
.cart__remove { border: none; font-size: 1.15rem; color: var(--mute); }
.cart__qty button:hover, .cart__remove:hover { border-color: var(--orange); color: var(--orange); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0.6rem 0; color: var(--mute); font-size: var(--step--1); }
.cart__total strong { color: var(--ink); font-size: var(--step-0); font-variant-numeric: tabular-nums; }
.cart__order {
  display: block; text-align: center;
  background: var(--orange); color: #000; font-weight: 700;
  padding: 0.55rem 0.8rem; border-radius: 0.35rem;
}
.cart__order:hover { filter: brightness(1.12); }

/* About */
/* Text and band photo side by side on wide screens, stacked on phones */
.about__layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .about__layout { grid-template-columns: minmax(0, 42rem) minmax(0, 1fr); } }
.about__photo { margin: 0.5rem 0.7rem 0.7rem 0; }
.about__photo img {
  display: block; width: 100%; height: auto;
  rotate: 1.5deg;
  box-shadow: 0.7rem 0.7rem 0 var(--orange);
}
.about__text { max-width: 42rem; }
.about__text p { margin: 0 0 1rem; }
.lead { font-size: var(--step-1); line-height: 1.45; }

/* Contact */
.contact__body { max-width: 42rem; }
.contact__body p { margin: 0 0 0.75rem; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.contact__mail a { font-size: clamp(1rem, 4.6vw, 1.875rem); font-weight: 700; color: var(--orange); overflow-wrap: anywhere; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.copybtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  background: transparent; border: 2px solid var(--orange); color: var(--orange); cursor: pointer;
}
.copybtn:hover { background: var(--orange); color: var(--black); }
.copybtn svg { width: 1.2rem; height: 1.2rem; }
.copy-status { color: var(--mute); font-size: var(--step--1); white-space: nowrap; }
.contact__press { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.socials { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.socials a { font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); color: var(--mute); font-size: var(--step--1); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.footer__inner p { margin: 0; }
.footer__mark { width: 2.5rem; height: auto; color: var(--orange); }
.footer__socials { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer__socials a { display: block; color: inherit; }
.footer__socials a:hover, .footer__socials a:focus-visible { color: var(--orange); }
.footer__socials svg { width: 1.5rem; height: 1.5rem; display: block; }

/* Press page */
.press { padding-block: clamp(2rem, 6vw, 4rem); max-width: 60rem; }
.press h1 { margin-top: 0; }
.press h2 {
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: var(--step-2); color: var(--orange); margin: 3rem 0 1rem;
}
.press p { max-width: 42rem; }
.facts { list-style: none; margin: 0; padding: 0; max-width: 42rem; }
.facts li {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.5rem 1.5rem;
  padding-block: 0.6rem; border-bottom: 1px solid var(--line);
}
.facts li:first-child { border-top: 1px solid var(--line); }
.facts .facts__label { color: var(--mute); font-size: var(--step--1); padding-top: 0.15rem; }
@media (max-width: 30rem) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.downloads {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.5rem;
}
.downloads a { display: block; text-decoration: none; }
.downloads .downloads__preview {
  display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 1rem;
  background: #0D0A07; border: 1px solid var(--line); overflow: hidden;
}
.downloads .downloads__preview img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.downloads a:hover .downloads__preview { border-color: var(--orange); }
.downloads .downloads__name {
  display: block; margin-top: 0.6rem;
  font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase;
  font-size: var(--step-1); line-height: 0.95;
}
.downloads .downloads__note { display: block; margin-top: 0.25rem; color: var(--mute); font-size: var(--step--1); }
.press .btn { margin-top: 0.5rem; }

/* Easter egg: it's raining pancakes */
.pancake-rain { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 999; }
.pancake-rain span { position: absolute; top: -7rem; animation: pancake-fall linear both; }
@keyframes pancake-fall { to { transform: translateY(130vh) rotate(300deg); } }

/* Legal page */
.legal { padding-block: clamp(2rem, 6vw, 4rem); max-width: 46rem; }
.legal h2 { font-family: var(--display); font-stretch: 62%; font-weight: 850; text-transform: uppercase; font-size: var(--step-2); color: var(--orange); margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: var(--step-0); margin: 1.5rem 0 0.25rem; }
.legal p, .legal address { margin: 0 0 0.75rem; font-style: normal; }
.legal .todo { color: var(--orange); }
