/* =====================================================================
   CAPISTAN · STYLESHEET
   ---------------------------------------------------------------------
   Start with the TOKENS just below: change a color or font there and it
   changes everywhere on the site. Then each part of the site has its
   own block, in the same order as index.html.

   Concept: a photocopied zine taped to a studio wall. Condensed black
   capitals, masking-tape labels, ballpoint notes in the margins, and a
   strip of black gaffer tape at the bottom holding the player.
   ===================================================================== */

:root {
  /* ---- COLORS ---- */
  --paper:   #e8e6df;   /* page background: cheap photocopy paper  */
  --paper-2: #d9d6cc;   /* slightly darker paper for panels         */
  --toner:   #171614;   /* text and black areas: photocopier toner  */
  --ink:     #2c3ca6;   /* ballpoint pen blue, for handwritten notes */
  --tape:    #e2d197;   /* masking tape                              */
  --rec:     #c2341f;   /* the red REC light. Use sparingly!         */

  /* ---- FONTS ---- */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Courier New", monospace;
  --font-hand:    "Reenie Beanie", "Comic Sans MS", cursive;

  /* ---- TEXTURE ----
     Later: scan a sheet of real paper, save it as assets/textures/paper.jpg
     and replace the long url(...) below with:  url("assets/textures/paper.jpg")  */
  --texture: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");

  /* ---- SIZES ---- */
  --player-h: 64px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  color-scheme: light;
}

/* ---------- basics ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--toner);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  /* room so the player never covers the end of the page */
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px) + 24px);
  -webkit-font-smoothing: antialiased;
}
/* the grain/dirt layer over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--texture);
  opacity: .22;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 50;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 62%;            /* 62% = very condensed, 125% = very wide */
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.5rem, 13vw, 9rem); }
h2 { font-size: clamp(2.6rem, 8vw, 5rem); }
h3 { font-size: 1.9rem; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 40px 24px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--toner);
  padding-bottom: 10px;
  margin-bottom: 28px;
}
/* handwritten margin notes */
.note {
  font-family: var(--font-hand);
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  margin: 0 0 6px;
  transform: rotate(-2deg);
}
.lede { font-size: 1.25rem; max-width: 34em; margin: 0 0 28px; }
.mono, .label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* a strip of masking tape behind text */
.tape-label {
  background: var(--tape);
  color: var(--toner);
  padding: .1em .45em;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

/* Pieces of tape stuck on corners of photos.
   (Later these become rippable, with a sound.) */
.taped { position: relative; }
.taped::before, .taped::after {
  content: "";
  position: absolute;
  width: 96px; height: 28px;
  background: var(--tape);
  opacity: .9;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  z-index: 2;
  /* ragged torn ends */
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 100% 100%, 2% 96%, 5% 60%, 0 30%);
}
.taped::before { top: -10px; left: -24px; transform: rotate(-32deg); }
.taped::after  { bottom: -8px; right: -22px; transform: rotate(-28deg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  border: 2px solid var(--toner);
  background: var(--paper);
  padding: .35em .9em;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--toner); color: var(--paper); }
.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }


/* =====================================================================
   1. LOADING SCREEN
   ===================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  transition: opacity .9s ease;
}
.intro::after {               /* same grain as the rest of the site */
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--texture);
  opacity: .22;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.intro.leaving { opacity: 0; pointer-events: none; }
.intro-enter {
  background: none;
  border: 0;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.intro-logo {
  width: min(72vw, 440px);
  animation: stamp 3.2s steps(1) infinite;
}
.intro-hint {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.intro-hint::before {
  content: "";
  display: inline-block;
  width: .7em; height: .7em;
  border-radius: 50%;
  background: var(--rec);
  margin-right: .6em;
  vertical-align: -.05em;
  animation: blink 1.2s steps(1) infinite;
}
.intro-quiet {
  background: none;
  border: 0;
  font-family: var(--font-hand);
  color: var(--ink);
  font-size: 1.5rem;
  text-decoration: underline;
}
/* the logo shifts a hair, like a rubber stamp pressed again */
@keyframes stamp {
  0%   { transform: rotate(-1deg) translate(0, 0); }
  33%  { transform: rotate(.6deg) translate(1px, -1px); }
  66%  { transform: rotate(-.3deg) translate(-1px, 1px); }
}
@keyframes blink { 50% { opacity: 0; } }


/* =====================================================================
   TOP BAR
   ===================================================================== */
body::before {               /* paints behind the phone's status bar */
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--paper);
  z-index: 10;
}
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 8px;
  background: var(--paper);
  border-bottom: 3px solid var(--toner);
}
.topbar-logo img { height: 46px; width: auto; }
.menu {
  display: flex;
  gap: 4px 18px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu a {
  font-family: var(--font-display);
  font-stretch: 70%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.35rem;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 0 .3em;
  white-space: nowrap;
}
.menu a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.menu a[aria-current="page"] {
  background: var(--tape);
  transform: rotate(-2deg);
  display: inline-block;
}


/* =====================================================================
   VIEWS (the "pages")
   ===================================================================== */
.view.entering { animation: view-in .45s ease both; }
@keyframes view-in {
  from { opacity: .2; transform: translateY(8px); }
  to   { opacity: 1;  transform: none; }
}


/* =====================================================================
   2. HOME · slideshow
   ===================================================================== */
.slideshow {
  position: relative;
  aspect-ratio: 16 / 8;
  max-height: calc(100vh - 160px);
  min-height: 360px;
  width: 100%;
  overflow: hidden;
  background: var(--toner);
  border-bottom: 3px solid var(--toner);
  touch-action: pan-y;          /* lets us catch left/right swipes */
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img, .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* crops the photo to fill: that's your mobile crop */
}
.slide-name {
  position: absolute;
  left: var(--gutter-l);
  bottom: 54px;
  z-index: 3;
  max-width: min(560px, calc(100% - 32px));
}
.slide-name a {
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: .95;
  text-decoration: none;
}
.slide-name a span { background: var(--paper); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* the little paragraph that appears on hover */
.slide-text {
  margin: 10px 0 0;
  max-width: 30em;
  background: var(--tape);
  padding: 10px 14px;
  font-size: 1rem;
  transform: rotate(-1deg) translateY(6px);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.slide-name:hover .slide-text,
.slide-name:focus-within .slide-text,
.slide-name.open .slide-text { opacity: 1; transform: rotate(-1deg); }

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: var(--paper);
  border: 2px solid var(--toner);
  font-size: 1.4rem;
  line-height: 1;
}
.slide-arrow:hover { background: var(--toner); color: var(--paper); }
.slide-arrow.prev { left: var(--gutter-l); }
.slide-arrow.next { right: var(--gutter-r); }
.slide-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 18px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.slide-dots button {
  width: 14px; height: 14px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: transparent;
}
.slide-dots button[aria-current="true"] { background: var(--paper); }


/* =====================================================================
   HOME · "What we do" strips
   ===================================================================== */
.strips {
  display: flex;
  gap: 14px;
  height: 460px;
}
.strip {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 3px solid var(--toner);
  background: var(--paper-2);
  transition: flex .5s cubic-bezier(.3, .7, .2, 1);
  cursor: pointer;
}
.strip:hover, .strip:focus-within, .strip.open { flex: 3.2; }
.strip-short {
  position: absolute;
  inset: 14px auto 14px 10px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 4.2rem;
  line-height: 1;
  text-align: right;
}
.strip-body {
  position: absolute;
  inset: 0 0 0 84px;
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  transition: opacity .3s .1s;
}
.strip:hover .strip-body, .strip:focus-within .strip-body, .strip.open .strip-body { opacity: 1; }
.strip-body img { width: 100%; height: 100%; object-fit: cover; min-height: 0; filter: grayscale(.4) contrast(1.1); }
.strip-body div { padding: 16px 18px 18px; background: var(--paper); border-top: 3px solid var(--toner); }
.strip-body h3 { margin-bottom: 6px; }
.strip-body p { margin: 0; max-width: 34em; }
.strip button.strip-toggle {          /* invisible full-size button = keyboard & tap access */
  position: absolute; inset: 0; z-index: 2;
  background: transparent; border: 0;
}
@media (hover: hover) {
  .strip:hover button.strip-toggle { pointer-events: none; }   /* lets you select the text */
}

.next-up {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  text-decoration: none;
  border: 3px solid var(--toner);
  padding: 14px 18px;
  background: var(--paper);
}
.next-up:hover { background: var(--toner); color: var(--paper); }
.next-up strong {
  font-family: var(--font-display);
  font-stretch: 70%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1;
}


/* =====================================================================
   CATALOG · the crate of records
   ===================================================================== */
.crate {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* 3 records per row */
  gap: 48px 40px;
}
.record {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}
.record-art {
  position: relative;
  aspect-ratio: 1;
  width: 82%;          /* leaves room for the vinyl to slide out */
}
.record-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 3px 3px 0 var(--toner);
  transition: transform .3s;
}
/* the black disc hiding behind the sleeve */
.record-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--tape) 0 14%, var(--toner) 15% 16%, transparent 17%),
    repeating-radial-gradient(circle, #222 0 2px, #0d0d0c 2px 4px);
  transition: transform .45s cubic-bezier(.3, .7, .2, 1);
}
.record:hover .record-art::after, .record:focus-visible .record-art::after { transform: translateX(22%) rotate(40deg); }
.record:hover .record-art img { transform: rotate(-2deg); }
.record-meta { display: grid; gap: 2px; }
.record-meta .label { color: var(--ink); }
.record-title {
  font-family: var(--font-display);
  font-stretch: 70%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.45rem;
  line-height: 1;
}


/* =====================================================================
   POP-UP SHEETS (release details, video)
   ===================================================================== */
.sheet {
  width: min(960px, calc(100% - 24px));
  max-height: calc(100% - 100px);
  border: 3px solid var(--toner);
  background: var(--paper);
  color: var(--toner);
  padding: 0;
  box-shadow: 8px 8px 0 var(--toner);
}
.sheet::backdrop { background: rgba(23, 22, 20, .55); }
.sheet-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 28px;
}
.sheet-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
}
.sheet h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 4px 0 6px; }
.sheet .artist { font-size: 1.3rem; font-weight: 700; margin: 0 0 14px; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 18px 0; font-size: .95rem; }
.credits dt { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .2em; color: var(--ink); }
.credits dd { margin: 0; }
.tracklist { list-style: none; padding: 0; margin: 0 0 18px; border-top: 2px solid var(--toner); }
.tracklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--toner);
  font-variant-numeric: tabular-nums;
}
.tracklist .num { font-family: var(--font-mono); font-size: .8rem; width: 2ch; }
.tracklist .t { flex: 1; min-width: 0; }
.tracklist .playing { color: var(--rec); font-weight: 700; }
.tracklist button { padding: .2em .6em; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.video-sheet video { width: 100%; display: block; background: #000; }


/* =====================================================================
   INTERVIEWS
   ===================================================================== */
.itw-list { display: grid; gap: 34px; }
.itw {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.itw:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.itw:nth-child(even) .itw-thumb { order: 2; }
.itw-thumb {
  position: relative;
  display: block;
  border: 3px solid var(--toner);
  border-radius: 18px;              /* old TV screen corners */
  overflow: hidden;
  background: var(--toner);
  padding: 0;
  aspect-ratio: 16 / 9;
}
.itw-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.itw-thumb:hover img { transform: scale(1.04); }
.itw-thumb .play-mark {
  position: absolute;
  left: 16px; bottom: 16px;
  background: var(--paper);
  color: var(--toner);
}
.itw h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 6px 0 10px; }
.itw p { margin: 0 0 14px; }


/* =====================================================================
   3. EVENTS · the big ticket + the stubs
   ===================================================================== */
.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: var(--paper-2);
  border-block: 3px solid var(--toner);
  /* perforated edges, like a torn-off ticket */
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) 0 0 / 51% 22px repeat-y,
                radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) 100% 0 / 51% 22px repeat-y;
          mask: radial-gradient(circle 7px at 0 50%, transparent 98%, #000) 0 0 / 51% 22px repeat-y,
                radial-gradient(circle 7px at 100% 50%, transparent 98%, #000) 100% 0 / 51% 22px repeat-y;
  margin-bottom: 40px;
}
.ticket-info {
  padding: 28px 28px 28px 40px;
  display: grid;
  align-content: start;
  gap: 16px;
  border-right: 3px dashed var(--toner);
}
.ticket-date {
  display: inline-block;
  justify-self: start;
  border: 3px solid var(--toner);
  padding: 8px 14px 4px;
  font-family: var(--font-display);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: .9;
}
.ticket-date small { display: block; font-family: var(--font-mono); font-size: .85rem; font-weight: 600; letter-spacing: .08em; padding: 6px 0 4px; }
.ticket h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.ticket-details { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.ticket-details dt { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding-top: .3em; color: var(--ink); }
.ticket-details dd { margin: 0; }
.ticket-pic { margin: 0; min-height: 280px; }
.ticket-pic img { width: 100%; height: 100%; object-fit: cover; }

.stubs { display: grid; gap: 10px; }
.stubs h3 { margin: 18px 0 6px; font-size: 1.6rem; }
.stub {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 2px solid var(--toner);
  border-left-width: 8px;
  padding: 10px 16px;
  background: var(--paper);
  text-decoration: none;
}
.stub-date { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.stub-title { font-family: var(--font-display); font-stretch: 70%; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.05; }
.stub-venue { display: block; font-family: var(--font-body); font-stretch: 100%; text-transform: none; font-weight: 400; font-size: .95rem; }
.stub.past { opacity: .62; }
.stub.past .stub-name { text-decoration: line-through; text-decoration-thickness: 2px; }
.stamp {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .1em;
  border: 2px solid var(--rec);
  color: var(--rec);
  padding: 2px 6px;
  transform: rotate(-6deg);
}


/* =====================================================================
   4. CONTACT
   ===================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.email-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}
.email-text {
  background: var(--tape);
  padding: 8px 16px;
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  transform: rotate(-1.2deg);
  user-select: all;
  overflow-wrap: anywhere;
  min-width: 0;
}
.socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  max-width: 520px;
}
.social {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  background: var(--toner);
  color: var(--paper);
  text-decoration: none;
  transition: transform .15s;
}
.social:nth-child(3n+1) { transform: rotate(-2deg); }
.social:nth-child(3n+2) { transform: rotate(1.5deg); }
.social:hover { transform: rotate(0) scale(1.06); background: var(--ink); }
.social b { font-family: var(--font-display); font-stretch: 62%; font-weight: 900; font-size: 2.6rem; line-height: 1; }
.social span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.social.empty { background: transparent; color: var(--toner); border: 2px dashed var(--toner); opacity: .45; pointer-events: none; }

/* the crew, written like a studio track sheet */
.tracksheet {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.tracksheet caption { text-align: left; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px; }
.tracksheet th, .tracksheet td { border: 1.5px solid var(--toner); padding: 6px 10px; text-align: left; }
.tracksheet th { background: var(--toner); color: var(--paper); font-weight: 600; }
.tracksheet td:first-child { width: 3.5em; font-variant-numeric: tabular-nums; }
.tracksheet td:nth-child(2) { font-family: var(--font-hand); color: var(--ink); font-size: 1.45rem; line-height: 1; }
.team-photo { margin: 12px 0 0; border: 3px solid var(--toner); }
.team-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }


/* =====================================================================
   THE PLAYER · a strip of black gaffer tape at the bottom
   ===================================================================== */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  min-height: var(--player-h);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: var(--toner);
  background-image: var(--texture);
  color: var(--paper);
  border-top: 2px solid var(--toner);
}
.player-controls { display: flex; gap: 4px; }
.pbtn {
  width: 40px; height: 40px;
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: 1rem;
}
.pbtn.play {
  background: var(--paper);
  color: var(--toner);
  border-radius: 50%;
}
.pbtn.play.waiting { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(232, 230, 223, .25); } }
.pbtn:hover { color: var(--tape); }
.pbtn.play:hover { background: var(--tape); color: var(--toner); }
.player-info { min-width: 0; }
.player-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  font-size: .95rem;
}
.player-artist { font-weight: 400; opacity: .7; }
.player-bar {
  height: 14px;
  margin-top: 4px;
  position: relative;
  cursor: pointer;
}
.player-bar::before {            /* the "tape" track */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 2px;
  background: rgba(232, 230, 223, .3);
}
.player-fill {
  position: absolute;
  left: 0; top: 4px;
  height: 6px;
  width: 0;
  background: var(--tape);
}
.player-time { font-family: var(--font-mono); font-size: .8rem; font-variant-numeric: tabular-nums; opacity: .8; }

/* the little VU meter */
.vu { width: 78px; height: 46px; background: var(--tape); border-radius: 4px; padding: 2px 4px 0; }
.vu svg { width: 100%; height: 100%; display: block; }
.vu-scale { fill: none; stroke: var(--toner); stroke-width: 1.6; }
.vu-red { fill: none; stroke: var(--rec); stroke-width: 3.2; }
.vu text { font-family: var(--font-mono); font-size: 9px; font-weight: 600; text-anchor: middle; fill: var(--toner); }
.vu-needle { stroke: var(--toner); stroke-width: 1.8; stroke-linecap: round; transform-origin: 50px 52px; transform: rotate(-48deg); }


/* =====================================================================
   PHONES & SMALL SCREENS
   ===================================================================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { flex-wrap: wrap; gap: 4px 12px; }
  .topbar-logo img { height: 38px; }
  .menu { margin-left: 0; width: 100%; flex-wrap: wrap; overflow: visible; gap: 2px 10px; }
  .menu a { font-size: 1.1rem; }

  .slideshow { aspect-ratio: 4 / 5; max-height: 72vh; }   /* portrait crop on phones */
  .slide-arrow { width: 42px; height: 42px; top: auto; bottom: 10px; transform: none; }
  .slide-name { bottom: 70px; }

  .strips { flex-direction: column; height: auto; }
  .strip { min-height: 86px; flex: none; transition: min-height .4s; }
  .strip:hover, .strip:focus-within { flex: none; }
  .strip.open { min-height: 380px; }
  .strip-short { writing-mode: horizontal-tb; transform: none; inset: 12px auto auto 14px; font-size: 3rem; }
  .strip-body { inset: 74px 0 0 0; }
  .strip:not(.open) .strip-body { opacity: 0; }

  .sheet-inner { grid-template-columns: 1fr; padding: 20px; }
  .crate { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; }
  .record-title { font-size: 1.2rem; }
  .itw, .itw:nth-child(even) { grid-template-columns: 1fr; gap: 14px; }
  .itw:nth-child(even) .itw-thumb { order: 0; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-info { border-right: 0; border-bottom: 3px dashed var(--toner); padding: 22px 26px; }
  .stub { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .stub-date { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; }

  .player { gap: 10px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .player-time { display: none; }
  .vu { width: 60px; height: 36px; }
  .pbtn { width: 34px; height: 34px; }
  .pbtn.play { width: 40px; height: 40px; }
}

.touch-only { display: none; }
@media (hover: none) {
  .touch-only { display: inline; }
  .hover-only { display: none; }
}

/* people who asked their computer for less motion get less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
