/*
 * SCRÖTØM. Two looks share this file:
 *  - the public page (<body class="site">): "crunch", a photocopied punk/metal zine on ink. Torn paper,
 *    tape, stamped labels, xerox grain, choppy steps() animation. Hard offset shadows and texture
 *    gradients are fine; blurred shadows and glows are not.
 *  - admin and login (<body class="admin">): the original paper-and-ink look, unchanged.
 * Mobile first. Every animation and transition is switched off under prefers-reduced-motion (end of file).
 */

@font-face {
  font-family: "Sedgwick Ave Display";
  src: url("/static/fonts/SedgwickAveDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e9e4d6;
  --paper-dark: #d9d2bf;
  --ink: #0d0d0d;
  --yellow: #f2d300;
  --red: #a3140c;
  --heading: Impact, "Arial Narrow", "Arial Black", sans-serif;
  --border: 3px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.55 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--yellow); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

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

/* ---------- shared: buttons, tags, inputs, notices (admin look; .site overrides below) ---------- */

.button {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem 0.4rem;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  border-radius: 0;
  font: 400 1.25rem/1.2 var(--heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: var(--yellow); }
.button:active { transform: translate(2px, 2px); }

.tag {
  display: inline-block;
  padding: 0.1em 0.4em 0;
  border: 2px solid var(--ink);
  background: var(--yellow);
  font: 400 1rem/1.25 var(--heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  transform: rotate(-3deg);
}
.tag-sold_out { background: var(--paper); text-decoration: line-through; text-decoration-thickness: 2px; }
.tag-coming_soon { background: var(--paper); border-style: dashed; }

input[type="email"], input[type="text"], input[type="password"], input[type="url"], textarea, select {
  display: block;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.7rem;
  background: #f7f4ec;
  color: var(--ink);
  border: var(--border);
  border-radius: 0;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; background: #fff; }

.notice, .error { margin: 0 0 1rem; padding: 0.6rem 0.8rem; border: var(--border); font-weight: 700; }
.notice { background: var(--yellow); }
.error { background: var(--paper); border-left-width: 10px; }

/* ---------- small pages (login, errors) ---------- */

.narrow { max-width: 26rem; padding-top: 2rem; padding-bottom: 3rem; }
.narrow h1 { font-size: 2.25rem; margin: 0 0 1.25rem; }
.admin-brand { margin: 0 0 1.5rem; }
.admin-brand a:hover { background: none; }
.admin-brand img { display: block; width: 240px; transform: rotate(-2deg); }
.stack p { margin: 0 0 1.1rem; }
.stack label { display: block; margin-bottom: 0.3rem; font-weight: 700; }

main { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }


/* =====================================================================================
   PUBLIC PAGE: crunch
   ===================================================================================== */

.site {
  --ink: #0b0b0b;
  --heading: "Sedgwick Ave Display", Impact, "Arial Narrow", "Arial Black", sans-serif;
  --tape: rgba(222, 205, 140, 0.72);
  --btn-shadow: var(--paper);
  --btn-hover-bg: var(--red);
  --btn-hover-fg: var(--paper);
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip; /* tilted panels and the marquee never cause sideways scroll */
}

/* Phones rarely have Impact: ask for bold so Roboto / SF fall back heavy, but never fake-bold the
   real display faces (Impact, Sedgwick), which only have one weight. */
.site h1, .site h2, .site h3, .site .heading-font {
  font-family: var(--heading);
  font-weight: 700;
  font-synthesis: none;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}

.site a { color: inherit; }
.site a:hover { background: var(--yellow); color: var(--ink); }

/* Thick yellow ring with an ink band inside it: readable on ink and on paper. */
.site :focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ink);
}

/* The rough-edge SVG filter lives inline in the page; its own <svg> takes no space. */
.fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Xerox grain: one fixed layer over everything, jittering 4 frames at a time. */
.site::after {
  content: "";
  position: fixed;
  inset: -64px;
  z-index: 100;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 180px 180px;
  opacity: 0.15;
  animation: grain 0.6s steps(4, end) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-23px, 17px); }
  50% { transform: translate(19px, -29px); }
  75% { transform: translate(-11px, -7px); }
  100% { transform: translate(0, 0); }
}

/* ---------- nav ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 3px solid var(--paper);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.2rem;
  margin: 0 auto;
  padding: 0.25rem 0.25rem;
  max-width: 52rem;
  list-style: none;
}

.nav a {
  display: block;
  min-height: 2.75rem;
  padding: 0.6rem 0.5rem 0.3rem;
  font: 700 1.3rem/1.1 var(--heading);
  font-synthesis: none;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.nav li:nth-child(odd) a { rotate: -2deg; }
.nav li:nth-child(even) a { rotate: 1.5deg; }
.nav a:hover, .nav a:focus-visible { background: var(--yellow); color: var(--ink); }

/* ---------- marquee: the real upcoming shows, decorative (aria-hidden) ---------- */

/* The strip is wider than the screen and tilted; the wrapper trims it sideways only. */
.marquee-wrap { overflow-x: clip; overflow-y: visible; padding-bottom: 6px; }
.marquee {
  position: relative;
  z-index: 5;
  margin: 0.9rem -1.5rem 0;
  overflow: hidden;
  background: var(--yellow);
  color: var(--ink);
  border-block: 3px solid var(--ink);
  rotate: -1.2deg;
  box-shadow: 0 5px 0 var(--red);
}
.marquee-track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0.45rem 0 0.3rem;
  font: 700 1.2rem/1 var(--heading);
  font-synthesis: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: pre;
  animation: marquee 40s steps(400, end) infinite;
}
.marquee-track span { flex: none; }
/* About 10 frames a second at any length: duration and step count grow with the text. */
.marquee-len-2 { animation-duration: 80s; animation-timing-function: steps(800, end); }
.marquee-len-3 { animation-duration: 120s; animation-timing-function: steps(1200, end); }
.marquee-len-4 { animation-duration: 160s; animation-timing-function: steps(1600, end); }
.marquee-len-5 { animation-duration: 200s; animation-timing-function: steps(2000, end); }
.marquee-len-6 { animation-duration: 240s; animation-timing-function: steps(2400, end); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- layout ---------- */

.site main { max-width: 52rem; margin: 0 auto; padding: 0 1rem; }

.section { padding: 0.25rem 0 0.5rem; scroll-margin-top: 4.5rem; }
.join { scroll-margin-top: 4.5rem; }

/* ---------- hero wordmark ---------- */

.wordmark {
  position: relative;
  isolation: isolate;
  max-width: 620px;
  margin: 2.6rem auto 2.75rem;
  rotate: -2deg;
  animation: wm-slam 0.5s steps(5, end) both;
}
.wordmark-img { display: block; width: 100%; }
.wordmark-fx { position: absolute; inset: 0; pointer-events: none; }

/* Every copy is the paper wordmark used as a mask, filled with one ink colour. */
.wm-ghost, .wm-slice {
  position: absolute;
  inset: 0;
  -webkit-mask: url("/static/img/wordmark-paper.png") center / 100% 100% no-repeat;
  mask: url("/static/img/wordmark-paper.png") center / 100% 100% no-repeat;
}
.wm-ghost-red { z-index: -1; background: var(--red); transform: translate(5px, 4px); }
.wm-ghost-yellow { z-index: -2; background: var(--yellow); opacity: 0; }
.wm-slice { background: var(--paper); opacity: 0; }
.wm-slice-a { clip-path: inset(24% 0 52% 0); }
.wm-slice-b { clip-path: inset(63% 0 15% 0); }

/* Glitch: ~180 ms out of every 6 s (3%), jumping frame to frame. */
.wm-ghost-yellow { animation: wm-yellow 6s steps(1, end) 2.2s infinite; }
.wm-ghost-red { animation: wm-red 6s steps(1, end) 2.2s infinite; }
.wm-slice-a { animation: wm-slice-a 6s steps(1, end) 2.2s infinite; }
.wm-slice-b { animation: wm-slice-b 6s steps(1, end) 2.2s infinite; }
.wordmark:hover .wm-ghost-yellow { animation: wm-yellow-loop 0.36s steps(1, end) infinite; }
.wordmark:hover .wm-ghost-red { animation: wm-red-loop 0.36s steps(1, end) infinite; }
.wordmark:hover .wm-slice-a { animation: wm-slice-a-loop 0.36s steps(1, end) infinite; }
.wordmark:hover .wm-slice-b { animation: wm-slice-b-loop 0.36s steps(1, end) infinite; }

@keyframes wm-slam {
  0% { transform: scale(1.12) rotate(-4deg); opacity: 0; }
  20% { transform: scale(1.12) rotate(-4deg); opacity: 1; }
  40% { transform: scale(0.97) rotate(1.5deg); }
  60% { transform: scale(1.02) rotate(-0.8deg); }
  80% { transform: scale(1) rotate(0.3deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes wm-slice-a {
  0% { opacity: 1; transform: translateX(8px); }
  1% { opacity: 1; transform: translateX(-6px); }
  2% { opacity: 1; transform: translateX(4px); }
  3%, 100% { opacity: 0; transform: none; }
}
@keyframes wm-slice-b {
  0% { opacity: 1; transform: translateX(-6px); }
  1% { opacity: 0; transform: none; }
  2% { opacity: 1; transform: translateX(7px); }
  3%, 100% { opacity: 0; transform: none; }
}
@keyframes wm-yellow {
  0% { opacity: 1; transform: translate(-7px, -2px); }
  1.5% { opacity: 1; transform: translate(6px, 3px); }
  3%, 100% { opacity: 0; transform: none; }
}
@keyframes wm-red {
  0% { transform: translate(9px, 1px); }
  1.5% { transform: translate(-5px, 5px); }
  3%, 100% { transform: translate(5px, 4px); }
}
@keyframes wm-slice-a-loop {
  0% { opacity: 1; transform: translateX(8px); }
  33% { opacity: 1; transform: translateX(-6px); }
  66% { opacity: 0; transform: none; }
}
@keyframes wm-slice-b-loop {
  0% { opacity: 1; transform: translateX(-6px); }
  33% { opacity: 0; transform: none; }
  66% { opacity: 1; transform: translateX(5px); }
}
@keyframes wm-yellow-loop {
  0% { opacity: 1; transform: translate(-7px, -2px); }
  50% { opacity: 1; transform: translate(6px, 3px); }
}
@keyframes wm-red-loop {
  0% { transform: translate(9px, 1px); }
  50% { transform: translate(-5px, 5px); }
}

/* ---------- stamped section headings ---------- */

.site .section > h2, .site .join > h2 {
  display: inline-block;
  margin: 0 0 1.4rem;
  padding: 0.14em 0.32em 0.04em;
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(2.1rem, 9.6vw, 3.6rem);
  letter-spacing: -0.02em;
  text-shadow: 2px 1px 0 rgba(163, 20, 12, 0.45);
  box-shadow: 5px 5px 0 var(--red);
  rotate: -2.2deg;
  filter: url(#rough);
}
#bio > h2 { rotate: 1.6deg; }
#merch > h2 { rotate: -1.2deg; background: var(--yellow); }
#book > h2 { rotate: 2deg; }
/* Inside a paper panel the label flips to ink. */
.site .join > h2 { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--yellow); text-shadow: none; rotate: 1.4deg; }

.site .empty {
  display: inline-block;
  margin: 0.25rem 0 1.5rem;
  padding: 0.25em 0.45em 0.1em;
  border: 3px dashed var(--paper);
  font: 700 clamp(1.7rem, 8vw, 2.4rem)/1 var(--heading);
  font-synthesis: none;
  text-transform: uppercase;
  rotate: -1deg;
}

/* ---------- empty states: a torn panel with a stamped line, never a bare sentence ---------- */

.panel-empty { max-width: 34rem; }
.site .panel-empty .empty {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 0.95;
  rotate: -1.5deg;
}
.empty-hint { margin: 0.9rem 0 0; font-weight: 700; }
.empty-hint a { display: inline-block; min-height: 2.75rem; padding-top: 0.6rem; }
.panel-empty-merch { display: grid; gap: 1.1rem; align-items: center; --tilt: 0.9deg; }
.panel-empty-merch .merch-photo { border: 3px solid var(--ink); }
.panel-empty-book { --tilt: -1.1deg; max-width: 30rem; }
/* Tape on the right, so it never sits on the stamped heading just above. */
.panel.panel-empty::after { left: auto; right: 1.25rem; margin: 0; rotate: 5deg; }
.panel.panel-empty-book::after { right: 2.5rem; rotate: -4deg; }
@media (min-width: 40rem) {
  .panel-empty { max-width: 38rem; }
  .panel-empty-merch { grid-template-columns: 15rem 1fr; }
  .panel-empty-book { max-width: 36rem; }
}

/* ---------- torn paper panels ---------- */

.panel {
  --tilt: -0.6deg;
  position: relative;
  isolation: isolate;
  margin: 0 0 2rem;
  padding: 1.6rem 1rem 1.7rem;
  color: var(--ink);
  rotate: var(--tilt);
  --btn-shadow: var(--ink);
  --btn-hover-bg: var(--ink);
  --btn-hover-fg: var(--yellow);
}
/* The paper itself: torn top and bottom, a halftone patch fading into the bottom-right corner. */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(140deg, var(--paper) 74%, rgba(233, 228, 214, 0) 94%),
    radial-gradient(circle, rgba(11, 11, 11, 0.5) 1.3px, transparent 1.8px) 0 0 / 6px 6px,
    var(--paper);
  clip-path: polygon(
    0 7px, 4% 2px, 9% 8px, 13% 3px, 18% 9px, 24% 1px, 29% 7px, 35% 3px, 41% 10px, 46% 2px,
    52% 6px, 57% 0, 63% 8px, 68% 3px, 74% 9px, 80% 2px, 85% 7px, 91% 1px, 96% 8px, 100% 3px,
    100% calc(100% - 6px), 95% calc(100% - 1px), 90% calc(100% - 9px), 84% calc(100% - 2px),
    78% calc(100% - 8px), 73% calc(100% - 1px), 67% calc(100% - 7px), 61% 100%, 55% calc(100% - 9px),
    49% calc(100% - 3px), 44% calc(100% - 8px), 38% calc(100% - 1px), 32% calc(100% - 6px),
    26% calc(100% - 2px), 20% calc(100% - 10px), 15% calc(100% - 3px), 9% calc(100% - 7px),
    4% calc(100% - 1px), 0 calc(100% - 8px)
  );
}
/* A strip of masking tape over the top edge, ragged at both ends. */
.panel::after {
  content: "";
  position: absolute;
  top: -0.85rem;
  left: 50%;
  width: 7.5rem;
  height: 1.7rem;
  margin-left: -3.75rem;
  background: var(--tape);
  rotate: -3deg;
  clip-path: polygon(0 8%, 4% 0, 96% 5%, 100% 18%, 97% 40%, 100% 62%, 96% 100%, 3% 94%, 0 76%, 4% 52%, 1% 30%);
}
.section > .panel:last-child { margin-bottom: 0.5rem; }
.panel-shows { --tilt: 0.5deg; }
.panel-shows::after { left: 12%; rotate: -6deg; }
.panel-bio { --tilt: -0.9deg; }
.panel-bio::after { left: auto; right: 0.5rem; margin: 0; rotate: 7deg; }
.join.panel { --tilt: -0.7deg; }
.join.panel::after { left: 80%; rotate: 4deg; }

/* ---------- buttons on the public page ---------- */

.site .button {
  position: relative;
  min-height: 2.9rem;
  padding: 0.6rem 1.15rem 0.35rem;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--btn-shadow);
  font: 700 1.4rem/1 var(--heading);
  font-synthesis: none;
  letter-spacing: 0.03em;
  transition: transform 0.12s steps(2, end), box-shadow 0.12s steps(2, end);
}
.site .button:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.site .button:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--btn-shadow); }
.site .button:focus-visible { box-shadow: 0 0 0 3px var(--ink); }

/* ---------- countdown chip ---------- */

.countdown { margin: 0 0 1.6rem; }
.countdown-text {
  display: inline-block;
  padding: 0.28em 0.5em 0.12em;
  background: var(--yellow);
  color: var(--ink);
  font: 700 clamp(1.5rem, 7vw, 2.1rem)/1 var(--heading);
  font-synthesis: none;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--red);
  rotate: 1.8deg;
  animation: chip-pulse 1.4s steps(1, end) infinite;
}
@keyframes chip-pulse {
  0% { transform: scale(1); }
  70% { transform: scale(1.05) rotate(-1deg); }
  85% { transform: scale(1); }
}

/* ---------- shows ---------- */

.shows { margin: 0; padding: 0; list-style: none; }

.show {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0.6rem 1.05rem;
  border-top: 3px solid var(--ink);
}
.show:first-child { border-top: 0; }
.show p { margin: 0; }
.show-date { font: 700 1.15rem/1.2 var(--heading); font-synthesis: none; letter-spacing: 0.03em; text-transform: uppercase; }
.show-venue { font: 700 clamp(1.8rem, 8.5vw, 2.5rem)/0.95 var(--heading); font-synthesis: none; text-transform: uppercase; }
.show-city { font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.show-note { font-size: 0.95rem; }
.show-tickets { margin-top: 0.75rem !important; }

.show:hover, .show:focus-within {
  background: var(--yellow);
  animation: row-shake 0.25s steps(1, end) 1;
}
.show:hover .button, .show:focus-within .button { background: var(--ink); color: var(--yellow); }
/* The row turns yellow when focused, so the ring flips to ink there. */
.site .show .button:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }
@keyframes row-shake {
  0% { transform: translateX(3px); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: none; }
}

@media (min-width: 40rem) {
  .show {
    grid-template-columns: 13.5rem 1fr auto;
    grid-template-areas: "date venue tickets" "date city tickets" "date note tickets";
    column-gap: 1.25rem;
    align-items: start;
    padding-inline: 1rem;
  }
  .show-date { grid-area: date; padding-top: 0.35rem; }
  .show-date .tag { display: table; margin-top: 0.45rem; }
  .show-venue { grid-area: venue; }
  .show-city { grid-area: city; }
  .show-note { grid-area: note; }
  .show-tickets { grid-area: tickets; align-self: center; margin-top: 0 !important; }
}

/* ---------- tags (stamped) ---------- */

.site .tag {
  padding: 0.18em 0.42em 0.04em;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font: 700 1rem/1.2 var(--heading);
  font-synthesis: none;
  letter-spacing: 0.06em;
  transform: none;
  rotate: -4deg;
  filter: url(#rough);
}
.site .tag-sold_out { background: var(--red); color: var(--paper); border-color: var(--red); }
.site .tag-coming_soon { background: transparent; border-style: dashed; }

/* ---------- join the pit ---------- */

.site .join { margin: 1.25rem 0 1rem; padding: 1.8rem 1.1rem 1.8rem; }
.join > p { margin: 0 0 1rem; }

.join-form label[for="join-email"] {
  display: block;
  margin-bottom: 0.35rem;
  font: 700 1.25rem/1.1 var(--heading);
  font-synthesis: none;
  text-transform: uppercase;
}

/* Hand-drawn box: thick, slightly wobbly ink line and a hard shadow. */
.site .join-form input[type="email"] {
  min-height: 3.1rem;
  background: #f7f4ec;
  border: 4px solid var(--ink);
  border-radius: 3px 14px 4px 10px / 12px 3px 14px 4px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.1rem;
}
.site .join-form input[type="email"]:focus-visible { background: #fff; box-shadow: 0 0 0 3px var(--ink); }

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 1.3rem 0 1.4rem;
  font-size: 0.95rem;
}
/* Big square box with a fat marker tick. */
.site .consent input {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  background: #f7f4ec center / 85% no-repeat;
  border: 4px solid var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  rotate: -3deg;
}
.site .consent input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='rgb(11,11,11)' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='7' d='M5 21 L15 31 L36 5'/%3E%3Cpath stroke-width='2.5' d='M8 19 L16 28 L34 9'/%3E%3C/svg%3E"); }
.consent label { padding-top: 0.2rem; cursor: pointer; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.6rem 0 0;
  padding: 1rem 0 0;
  border-top: 3px dashed var(--ink);
  list-style: none;
}
.socials a {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.55rem 0.2rem 0;
  font: 700 1.4rem/1.2 var(--heading);
  font-synthesis: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site .notice { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); }
.site .error { background: #f7f4ec; color: var(--ink); border: 3px solid var(--red); border-left-width: 12px; }

/* ---------- bio ---------- */

.bio-text { max-width: 38rem; font-size: 1.125rem; }
.bio-text p { margin: 0 0 1rem; }
.bio-text p:last-child { margin-bottom: 0; }

.band-photo { position: relative; margin: 1.5rem 0 0; }
.band-photo img { display: block; width: 100%; border: 4px solid var(--ink); rotate: 0.8deg; }

/* ---------- merch ---------- */

.merch {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2.25rem 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0.75rem 0 0;
  list-style: none;
}
.merch-item {
  --tilt: -1.2deg;
  position: relative;
  isolation: isolate;
  padding: 1.1rem 0.85rem 1.2rem;
  color: var(--ink);
  rotate: var(--tilt);
  transition: rotate 0.2s steps(3, end), translate 0.2s steps(3, end);
  --btn-shadow: var(--ink);
  --btn-hover-bg: var(--ink);
  --btn-hover-fg: var(--yellow);
}
.merch-item:nth-child(3n + 2) { --tilt: 1.4deg; }
.merch-item:nth-child(3n + 3) { --tilt: -0.5deg; }
.merch-item:nth-child(4n + 4) { --tilt: 2deg; }
.merch-item:hover, .merch-item:focus-within { rotate: 0deg; translate: 0 -6px; }

.merch-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(320deg, var(--paper) 76%, rgba(233, 228, 214, 0) 94%),
    radial-gradient(circle, rgba(11, 11, 11, 0.5) 1.3px, transparent 1.8px) 0 0 / 6px 6px,
    var(--paper);
  clip-path: polygon(
    0 4px, 8% 0, 17% 6px, 27% 1px, 38% 7px, 47% 2px, 58% 5px, 69% 0, 79% 6px, 90% 1px, 100% 5px,
    100% calc(100% - 3px), 89% calc(100% - 8px), 80% 100%, 70% calc(100% - 6px), 59% calc(100% - 1px),
    49% calc(100% - 7px), 39% calc(100% - 2px), 28% calc(100% - 8px), 18% calc(100% - 1px),
    9% calc(100% - 6px), 0 calc(100% - 2px)
  );
}
.merch-item::after {
  content: "";
  position: absolute;
  top: -0.8rem;
  left: 1.2rem;
  width: 5rem;
  height: 1.5rem;
  background: var(--tape);
  rotate: -8deg;
  clip-path: polygon(0 10%, 5% 0, 95% 6%, 100% 24%, 96% 50%, 100% 80%, 95% 100%, 4% 92%, 0 70%, 3% 40%);
}
.merch-item:nth-child(even)::after { left: auto; right: 1rem; rotate: 6deg; }

.merch-item p { margin: 0.4rem 0 0; }
.merch-figure { position: relative; overflow: hidden; container-type: inline-size; }
.merch-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--ink);
}
.merch-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(35deg, var(--ink) 58%, rgba(11, 11, 11, 0) 92%),
    radial-gradient(circle, rgba(233, 228, 214, 0.5) 1.3px, transparent 1.9px) 0 0 / 6px 6px,
    var(--ink);
}
.merch-photo-empty img { width: 84px; transform: rotate(-8deg); }
/* Rubber stamp across the photo. Its text is decoration; the "Sold out" tag is the real label. */
.merch-figure-sold_out::after {
  content: "SOLD OUT" / "";
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  padding: 0.12em 0 0;
  border-block: 5px solid var(--red);
  background: rgba(233, 228, 214, 0.9);
  color: var(--red);
  font: 700 2rem/1 var(--heading);
  font-size: 15cqi; /* sized to the card, so the stamp fits a narrow desktop card and a wide phone one */
  font-synthesis: none;
  letter-spacing: 0.06em;
  text-align: center;
  translate: 0 -50%;
  rotate: -18deg;
  filter: url(#rough);
}
.merch-name { margin: 0.8rem 0 0; font-size: 1.9rem; }
.merch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.merch-price { font: 700 1.5rem/1 var(--heading); font-synthesis: none; }
.merch-item .button { margin-top: 0.6rem; }

/* ---------- booking ---------- */

#book p { margin: 0 0 1rem; }
#book > p:first-of-type { font-size: 1.15rem; }
.button-big { max-width: 100%; font-size: clamp(1.1rem, 5.4vw, 1.6rem) !important; text-transform: none !important; }

/* ---------- dividers: a scratchy hand-drawn double line ---------- */

.rip {
  height: 26px;
  margin: 1.75rem -1rem 2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='26' fill='none' stroke='rgb(233,228,214)' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='3.2' d='M0 10 L22 8.5 L41 11.5 L66 7.5 L90 10.5 L117 8 L138 12.5 L163 9 L190 10 L211 6.5 L236 11 L262 8.5 L284 12 L313 7.5 L339 10 L364 8 L391 11.5 L420 10'/%3E%3Cpath stroke-width='1.6' opacity='.75' d='M0 17 L33 16 L54 19 L96 15.5 L127 18.5 L170 16 L208 19.5 L249 15 L291 18 L333 16 L377 19 L420 17'/%3E%3Cpath stroke-width='1.4' opacity='.6' d='M74 4 L81 21 M196 3 L189 20 M301 5 L309 22 M388 2 L384 15'/%3E%3C/svg%3E") 0 50% / 420px 26px repeat-x;
  rotate: -0.6deg;
}
.rip:nth-of-type(even) { rotate: 0.8deg; background-position-x: -137px; }

/* ---------- footer ---------- */

.site .footer {
  margin-top: 3rem;
  padding: 2.25rem 1rem 3rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='26' fill='none' stroke='rgb(233,228,214)' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='3.2' d='M0 10 L22 8.5 L41 11.5 L66 7.5 L90 10.5 L117 8 L138 12.5 L163 9 L190 10 L211 6.5 L236 11 L262 8.5 L284 12 L313 7.5 L339 10 L364 8 L391 11.5 L420 10'/%3E%3Cpath stroke-width='1.6' opacity='.75' d='M0 17 L33 16 L54 19 L96 15.5 L127 18.5 L170 16 L208 19.5 L249 15 L291 18 L333 16 L377 19 L420 17'/%3E%3Cpath stroke-width='1.4' opacity='.6' d='M74 4 L81 21 M196 3 L189 20 M301 5 L309 22 M388 2 L384 15'/%3E%3C/svg%3E") 0 0 / 420px 26px repeat-x;
  text-align: center;
  font-size: 0.9rem;
}
.footer p { max-width: 38rem; margin: 0 auto 0.75rem; }
.stamp { display: block; width: 72px; margin: 0 auto 1.25rem; transform: rotate(-10deg); }
.copyright { font: 700 1.1rem/1.2 var(--heading); font-synthesis: none; letter-spacing: 0.06em; }

/* ---------- scroll reveals (only when reveal.js has marked <html class="js">) ---------- */

.js .reveal:not(.is-in) { opacity: 0; }
.js .reveal.is-in { animation: slam 0.25s steps(3, end) both; }
.js .site .section > h2.reveal.is-in {
  animation: slam 0.25s steps(3, end) both, flicker 0.5s steps(1, end) 0.25s 1;
}
@keyframes slam {
  0% { opacity: 0; transform: translateY(24px) rotate(2.5deg); }
  34% { opacity: 1; transform: translateY(10px) rotate(-1.5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes flicker {
  0% { opacity: 0.25; }
  20% { opacity: 1; }
  40% { opacity: 0.45; }
  60% { opacity: 1; }
  80% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ---------- wider screens ---------- */

@media (min-width: 48rem) {
  .site main { padding: 0 2rem; }
  .wordmark { margin-top: 3.5rem; margin-bottom: 3.75rem; }
  .panel { padding: 2rem 1.75rem 2.1rem; }
  .site .join { padding: 2.2rem 2rem; }
  .marquee-track { font-size: 1.45rem; }
  .nav a { font-size: 1.55rem; padding-inline: 0.8rem; }
}

/* Big screens: break the centre line like a pasted-up page. */
@media (min-width: 64rem) {
  .site main { max-width: 60rem; }
  .panel-shows { margin-right: 2.5rem; }
  .site .join { margin-left: 5rem; margin-right: -1rem; }
  #bio { padding-left: 8rem; }
  #bio > h2 { margin-left: -3rem; }
  .merch { margin-right: 3rem; }
  #book { padding-left: 4rem; }
}

/* ---------- reduced motion: same look, nothing moves ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal:not(.is-in) { opacity: 1; }
  .marquee-track { transform: none; }
}
