/* ============================================================
   SPIT TAKE — THE ZINE
   a photocopied cut-and-paste world. nothing sits straight.
   ============================================================ */

:root {
  --paper: #f2f0eb;
  --ink: #141210;
  --red: #d0342c;
  --yellow: #f7e654;
  --tapecol: rgba(213, 193, 143, 0.55);
  --marker: 'Permanent Marker', cursive;
  --type: 'Special Elite', monospace;
  --heavy: 'Archivo Black', sans-serif;
  --cond: 'Oswald', sans-serif;
  --tiltscale: 1; /* mobile relaxes this */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  min-height: 100%;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--type);
  overflow: hidden; /* pages scroll internally */
  /* photocopy grime: flecks + faint banding */
  background-image:
    radial-gradient(rgba(20, 18, 16, 0.055) 1px, transparent 1.4px),
    radial-gradient(rgba(20, 18, 16, 0.04) 1px, transparent 1.2px),
    repeating-linear-gradient(93deg, transparent 0 34px, rgba(20, 18, 16, 0.018) 34px 36px),
    repeating-linear-gradient(2deg, transparent 0 90px, rgba(20, 18, 16, 0.02) 90px 93px);
  background-size: 9px 11px, 23px 17px, auto, auto;
  background-position: 0 0, 4px 7px, 0 0, 0 0;
}

/* xerox grime film over everything — a real bad-copy scan, multiplied in */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.4;
  background: url("img/xerox-grime-overlay.webp") center / cover no-repeat;
  mix-blend-mode: multiply;
}

/* ---- bad-copy toner shadows ---- */
.toner { position: fixed; pointer-events: none; z-index: 91; }
.toner-corner {
  left: -14vmax; bottom: -14vmax;
  width: 44vmax; height: 44vmax;
  background: radial-gradient(circle at 30% 70%,
    rgba(10, 9, 8, 0.62) 0%, rgba(10, 9, 8, 0.34) 34%, rgba(10, 9, 8, 0.12) 55%, transparent 72%);
}
.toner-streak {
  top: 0; right: 2vw;
  width: 8px; height: 100vh;
  background: linear-gradient(rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0.16) 18%,
    rgba(10, 9, 8, 0.05) 42%, rgba(10, 9, 8, 0.2) 71%, rgba(10, 9, 8, 0) 100%);
  transform: rotate(0.6deg);
}

/* ---- photocopier flash ---- */
#flash {
  position: fixed; inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
}
#flash.on { animation: xeroxflash 0.3s ease-out 1; }
@keyframes xeroxflash {
  0%   { opacity: 0; }
  12%  { opacity: 0.96; }
  35%  { opacity: 0.55; }
  100% { opacity: 0; }
}

/* ============================================================
   PAGES — 4 spreads, no long scroll
   ============================================================ */
.page {
  position: fixed; inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: none;
  z-index: 10;
}
.page.active { display: block; }
.page.jitter { animation: pagejitter 0.26s steps(3, end) 1; }
@keyframes pagejitter {
  0%   { transform: translateY(4px) rotate(0.15deg); }
  50%  { transform: translateY(-3px) rotate(-0.1deg); }
  100% { transform: none; }
}

.sheet {
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px clamp(14px, 4vw, 48px) 40px clamp(120px, 15vw, 200px); /* room for sticker nav on the left */
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   STICKER SHEET NAV (top-left cluster)
   ============================================================ */
.sticker-sheet {
  position: fixed;
  top: 10px; left: 8px;
  width: 150px; height: 420px;
  z-index: 120;
}
.sticker {
  position: absolute;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  cursor: pointer;
  border: none;
  background: #fdfdf8;
  color: var(--ink);
  font-family: var(--marker);
  line-height: 1.05;
  box-shadow: 1px 3px 8px rgba(10, 9, 8, 0.3);
  transition: scale 0.15s ease;
  padding: 6px;
  text-decoration: none;
}
.sticker:hover, .sticker:focus-visible { scale: 1.1; z-index: 5; }
.sticker:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.stk-pg { font-family: var(--type); font-size: 0.6rem; letter-spacing: 0.12em; }
.stk-word { font-size: 0.95rem; }

/* sticker shapes — irregular, white-bordered */
.stk-star {
  top: 0; left: 4px;
  width: 108px; height: 108px;
  clip-path: polygon(50% 0%, 61% 33%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 33%);
  background: var(--yellow);
  border: none;
  transform: rotate(calc(-7deg * var(--tiltscale)));
  padding-top: 30px;
}
.stk-star .stk-word { font-size: 0.85rem; }
.stk-arrow {
  top: 96px; left: 30px;
  width: 118px; height: 84px;
  clip-path: polygon(0% 32%, 62% 32%, 62% 8%, 100% 50%, 62% 92%, 62% 68%, 0% 68%);
  background: #fdfdf8;
  border: none;
  transform: rotate(calc(5deg * var(--tiltscale)));
  padding-right: 26px;
}
.stk-circle {
  top: 182px; left: 6px;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid #fdfdf8;
  background: var(--red);
  color: #fdfdf8;
  transform: rotate(calc(-4deg * var(--tiltscale)));
}
.stk-burst {
  top: 272px; left: 34px;
  width: 112px; height: 100px;
  clip-path: polygon(6% 18%, 24% 12%, 30% 0%, 46% 12%, 66% 4%, 72% 18%, 96% 20%, 88% 40%, 100% 56%, 84% 66%, 90% 88%, 68% 82%, 56% 100%, 42% 84%, 18% 94%, 20% 72%, 0% 62%, 12% 44%);
  background: var(--ink);
  color: var(--paper);
  transform: rotate(calc(6deg * var(--tiltscale)));
}
.stk-burst .stk-pg { color: var(--yellow); }
.stk-exit {
  top: 382px; left: 18px;
  width: 104px; height: 52px;
  background: #fdfdf8;
  border: 2px dashed var(--ink);
  transform: rotate(calc(-3deg * var(--tiltscale)));
  font-size: 0.72rem;
}
.stk-exit .stk-word { font-size: 0.75rem; }

/* current page marker: red grease-pencil ring */
.sticker[aria-current="page"]::after {
  content: "";
  position: absolute; inset: -7px;
  border: 3px solid var(--red);
  border-radius: 50% 45% 52% 48% / 46% 52% 44% 54%;
  transform: rotate(-3deg);
  pointer-events: none;
}

/* ============================================================
   RANSOM LETTERS
   ============================================================ */
.ransom { display: block; line-height: 1; margin: 12px 0 6px; }
.masthead { font-size: clamp(2.6rem, 9vw, 6.25rem); } /* 6.4rem is 8px too wide for the sheet at 1280 */
.pagehead { font-size: clamp(2rem, 6.5vw, 4.2rem); }
.rl {
  display: inline-block;
  padding: 0.04em 0.14em;
  margin: 0 0.045em;
}
.rl-gap { display: inline-block; width: 0.4em; }
.rl-word { white-space: nowrap; } /* ransom words may wrap between words, never mid-word */
.rl.c1 { background: var(--ink); color: var(--paper); font-family: var(--heavy); transform: rotate(calc(-3deg * var(--tiltscale))) translateY(-0.03em); }
.rl.c2 { background: var(--yellow); color: var(--ink); font-family: var(--cond); font-weight: 700; transform: rotate(calc(2.5deg * var(--tiltscale))) translateY(0.05em); }
.rl.c3 { background: #fdfdf8; color: var(--ink); font-family: var(--type); border: 2px solid var(--ink); transform: rotate(calc(-1.5deg * var(--tiltscale))); }
.rl.c4 { background: var(--red); color: #fdfdf8; font-family: var(--heavy); transform: rotate(calc(3.5deg * var(--tiltscale))) translateY(-0.06em); }
.rl.c5 { background: #fdfdf8; color: var(--red); font-family: var(--marker); border: 2px solid var(--ink); transform: rotate(calc(-5deg * var(--tiltscale))) translateY(0.04em); }

/* ============================================================
   SHARED SCRAPS
   ============================================================ */
.issue-strip {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  padding: 5px 2px;
  transform: rotate(calc(-0.5deg * var(--tiltscale)));
}

.oneliner {
  font-family: var(--type);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  margin: 10px 0 22px;
  transform: rotate(calc(-0.6deg * var(--tiltscale)));
}
.hi {
  background: linear-gradient(104deg, transparent 2%, var(--yellow) 8%, var(--yellow) 93%, transparent 97%);
  padding: 0 0.3em;
  font-family: var(--marker);
}

/* typewriter body copy */
.typed { font-family: var(--type); font-size: 0.98rem; margin-bottom: 14px; max-width: 46ch; }
.typed.small { font-size: 0.85rem; }

/* --- masking tape --- */
.tape {
  position: absolute;
  width: 92px; height: 27px;
  background: var(--tapecol);
  background-image: repeating-linear-gradient(98deg, rgba(255,255,255,0.22) 0 3px, transparent 3px 7px);
  box-shadow: 0 1px 3px rgba(10, 9, 8, 0.18);
  z-index: 3;
  pointer-events: none;
}
.tape-tl { top: -13px; left: -26px; transform: rotate(calc(-38deg * var(--tiltscale))); }
.tape-tr { top: -13px; right: -26px; transform: rotate(calc(38deg * var(--tiltscale))); }
.tape-bl { bottom: -12px; left: -24px; transform: rotate(calc(35deg * var(--tiltscale))); }
.tape-br { bottom: -12px; right: -24px; transform: rotate(calc(-35deg * var(--tiltscale))); }
.tape-top { top: -14px; left: 50%; transform: translateX(-50%) rotate(calc(-3deg * var(--tiltscale))); width: 110px; }

/* --- staples --- */
.staple {
  position: absolute;
  width: 16px; height: 5px;
  background: #3c3a36;
  border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 1px 1px rgba(10,9,8,0.4);
  z-index: 4;
}
.st-a { top: 8px; right: 22px; transform: rotate(48deg); }
.st-b { bottom: 30px; left: 14px; transform: rotate(-12deg); }

/* --- photo prints --- */
.photo {
  position: relative;
  background: #fdfdf8;
  padding: 10px 10px 12px;
  box-shadow: 2px 5px 14px rgba(10, 9, 8, 0.34);
  transform: rotate(calc(var(--r, 0deg) * var(--tiltscale)));
}
.photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.92) contrast(1.06);
}
.photo figcaption {
  font-family: var(--marker);
  font-size: 0.78rem;
  line-height: 1.25;
  margin-top: 9px;
  padding: 0 2px;
}
.cap-sub { font-family: var(--type); font-size: 0.68rem; }

/* --- handwritten marginalia --- */
.marginalia {
  position: relative;
  font-family: var(--marker);
  color: var(--red);
  font-size: 0.95rem;
  line-height: 1.15;
  max-width: 260px;
  transform: rotate(calc(var(--mr, -4deg) * var(--tiltscale)));
}
.marginalia strong { color: var(--ink); }

.scribble-arrow {
  position: absolute;
  width: 90px; height: 46px;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  fill: none;
}

/* red rough ring around key words */
.circled { position: relative; font-family: var(--marker); white-space: nowrap; padding: 0 4px; }
.scribble-ring {
  position: absolute;
  inset: -8px -10px;
  width: calc(100% + 20px); height: calc(100% + 16px);
  stroke: var(--red);
  stroke-width: 3.5;
  fill: none;
  stroke-dasharray: 320 40;
  transform: rotate(-2deg);
  pointer-events: none;
}

/* ============================================================
   PAGE 1 — NOISE
   ============================================================ */
.noise-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(260px, 0.9fr);
  gap: 30px 44px;
  align-items: start;
  flex: 1;
}

/* taped-in cassette (the fake embed) */
.cassette-block {
  position: relative;
  background: #fdfdf8;
  border: 2px solid var(--ink);
  padding: 18px 18px 14px;
  box-shadow: 3px 5px 0 rgba(10, 9, 8, 0.22);
  transform: rotate(calc(var(--r, -2deg) * var(--tiltscale)));
  margin-top: 14px;
}
.cassette {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, transparent 0 9px, rgba(20,18,16,0.05) 9px 10px),
    #efece4;
  padding: 12px 14px 20px;
}
.cassette-label {
  border: 2px solid var(--ink);
  background: #fdfdf8;
  text-align: center;
  font-family: var(--marker);
  font-size: clamp(0.8rem, 1.9vw, 1.05rem);
  padding: 5px 4px;
  transform: rotate(-0.8deg);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.cassette-window {
  margin: 12px auto 0;
  width: 72%;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: #fdfdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  position: relative;
}
.spool {
  width: 32px; height: 32px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--ink) 0 14deg, #fdfdf8 14deg 60deg);
  flex: none;
}
.tape-run { flex: 1; height: 3px; background: var(--ink); margin: 0 8px; }
.cassette-screws { position: absolute; inset: 6px; pointer-events: none; }
.cassette-screws i {
  position: absolute;
  width: 7px; height: 7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.cassette-screws i:nth-child(1) { top: 0; left: 0; }
.cassette-screws i:nth-child(2) { top: 0; right: 0; }
.cassette-screws i:nth-child(3) { bottom: 0; left: 0; }
.cassette-screws i:nth-child(4) { bottom: 0; right: 0; }

.fake-player {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 2px 4px;
  font-family: var(--type);
}
.btn-play, .btn-stop {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 30px;
  border: 2px solid var(--ink);
  background: #fdfdf8;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.8rem;
}
.btn-play { color: var(--red); }
.player-note { font-family: var(--marker); color: var(--red); font-size: 0.85rem; transform: rotate(-2deg); }

.tracklist { margin-top: 12px; font-family: var(--type); }
.side-head {
  font-family: var(--heavy);
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  margin-bottom: 8px;
}
.side-sub { font-family: var(--type); font-size: 0.7rem; letter-spacing: 0; }
.tracklist ol { list-style: none; counter-reset: trk; }
.tracklist li {
  counter-increment: trk;
  font-size: 0.92rem;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(20, 18, 16, 0.35);
  display: flex; justify-content: space-between; gap: 12px;
}
.tracklist li::before { content: counter(trk, decimal-leading-zero) " "; font-family: var(--heavy); font-size: 0.8rem; }
.tracklist li em { font-style: normal; font-family: var(--type); opacity: 0.75; }
.tracklist li:first-child { background: linear-gradient(100deg, transparent 1%, var(--yellow) 6%, var(--yellow) 94%, transparent 99%); }

.mg-neck { position: absolute; right: -8px; bottom: -58px; --mr: -6deg; text-align: right; }
.mg-neck .scribble-arrow { right: 100px; top: -34px; transform: scaleX(-1) rotate(10deg); }

.noise-copy { position: relative; padding-top: 8px; }
.mg-five { --mr: 4deg; font-size: 1.25rem; margin: 6px 0 20px 30px; }

.taped-photo { max-width: 340px; margin-left: auto; --r: 4deg; }

/* ============================================================
   PAGE 2 — SHOWS: the flyer wall
   ============================================================ */
.flyer-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 34px 26px;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 4px 30px;
  flex: 1;
}
.flyer {
  position: relative;
  width: 250px;
  min-height: 330px;
  box-shadow: 3px 6px 16px rgba(10, 9, 8, 0.35);
  transform: rotate(calc(var(--r, 0deg) * var(--tiltscale)));
}
.flyer:nth-child(2) { margin-top: 34px; }
.flyer:nth-child(3) { margin-top: -8px; }
.flyer:nth-child(4) { margin-top: 42px; }

/* push-pin */
.pin {
  position: absolute;
  top: -9px; left: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7a72, var(--red) 55%, #7c1712);
  box-shadow: 0 3px 4px rgba(10, 9, 8, 0.45);
  transform: translateX(-50%);
  z-index: 5;
}
.pin-2 { left: 24px; transform: none; }

/* flyer 1 — brutal all-caps */
.flyer-brutal {
  background: #fdfdf8;
  border: 4px solid var(--ink);
  padding: 16px 12px;
  text-align: center;
  --r: -3deg;
}
.fb-date {
  font-family: var(--cond); font-weight: 700;
  letter-spacing: 0.22em;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  padding: 3px 0; font-size: 0.85rem;
}
.fb-head {
  font-family: var(--heavy);
  font-size: 4rem;
  line-height: 0.88;
  margin: 14px 0 10px;
  letter-spacing: -0.02em;
}
.fb-with { font-family: var(--cond); font-weight: 500; font-size: 1.02rem; letter-spacing: 0.14em; }
.fb-venue {
  font-family: var(--heavy);
  font-size: 1.5rem;
  margin: 12px 0 10px;
  background: var(--ink); color: var(--paper);
  display: inline-block;
  padding: 2px 10px;
}
.fb-fine { font-family: var(--type); font-size: 0.63rem; letter-spacing: 0.08em; }

/* flyer 2 — hand-drawn frame */
.flyer-drawn {
  background: #fdfdf8;
  padding: 26px 20px;
  text-align: center;
  --r: 2deg;
  min-height: 348px;
}
.drawn-frame {
  position: absolute; inset: 4px;
  width: calc(100% - 8px); height: calc(100% - 8px);
  stroke: var(--ink);
  stroke-width: 3;
  pointer-events: none;
}
.fd-date { font-family: var(--marker); font-size: 1rem; color: var(--red); transform: rotate(-2deg); }
.fd-head { font-family: var(--marker); font-size: 2.6rem; line-height: 1; margin: 12px 0; }
.fd-with { font-family: var(--marker); font-size: 1.05rem; line-height: 1.5; }
.fd-venue {
  font-family: var(--marker); font-size: 1.5rem;
  margin: 14px 0 8px;
  text-decoration: underline wavy var(--red) 2.5px;
  text-underline-offset: 6px;
}
.fd-fine { font-family: var(--type); font-size: 0.66rem; margin-top: 12px; }

/* flyer 3 — photocopied-photo background */
.flyer-photo {
  background: var(--ink);
  overflow: hidden;
  --r: -1.5deg;
  min-height: 348px;
}
.fp-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.75) brightness(0.82);
  opacity: 0.85;
}
.fp-ink {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center;
  padding: 18px 12px 26px;
  color: #fdfdf8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.fp-date { font-family: var(--cond); font-weight: 700; letter-spacing: 0.3em; font-size: 0.8rem; }
.fp-head { font-family: var(--heavy); font-size: 2.6rem; line-height: 0.95; margin: 8px 0 6px; color: var(--yellow); }
.fp-with { font-family: var(--cond); font-weight: 500; letter-spacing: 0.2em; font-size: 0.95rem; }
.fp-venue { font-family: var(--heavy); font-size: 1.35rem; margin: 10px 0 6px; color: var(--red); background: #fdfdf8; padding: 1px 10px; }
.fp-fine { font-family: var(--type); font-size: 0.6rem; }
.fp-credit {
  position: absolute;
  z-index: 3;
  bottom: 4px; right: 6px;
  font-family: var(--type);
  font-size: 0.52rem;
  color: rgba(253, 253, 248, 0.75);
}

/* flyer 4 — house-show index card */
.flyer-card {
  background: repeating-linear-gradient(#fdfdf8 0 26px, rgba(208, 52, 44, 0.25) 26px 27px);
  border: 1px solid rgba(20, 18, 16, 0.4);
  padding: 30px 18px 20px;
  text-align: center;
  --r: 3.5deg;
  min-height: 300px;
  /* torn bottom edge */
  clip-path: polygon(0 0, 100% 0, 100% 96%, 92% 99%, 84% 95%, 74% 100%, 63% 96%, 52% 100%, 41% 95%, 30% 99%, 19% 95%, 9% 100%, 0 96%);
}
.fc-date { font-family: var(--type); letter-spacing: 0.14em; font-size: 0.8rem; }
.fc-head { font-family: var(--marker); font-size: 1.9rem; margin: 14px 0 8px; transform: rotate(-1.5deg); }
.fc-venue { font-family: var(--type); font-size: 0.95rem; }
.fc-ask {
  font-family: var(--marker);
  font-size: 1.7rem;
  color: var(--red);
  margin: 14px 0 10px;
  transform: rotate(-3deg);
}
.fc-fine { font-family: var(--type); font-size: 0.68rem; }

.mg-earplugs { --mr: -5deg; margin: -6px 0 0 8%; font-size: 1.1rem; }
.mg-allages { --mr: 3deg; margin: 10px 0 0 55%; }

/* ============================================================
   PAGE 3 — PICS: the collage
   ============================================================ */
.collage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 0 40px;
  flex: 1;
}
.collage .photo { z-index: 1; }
.collage .photo:hover { z-index: 6; }
.collage .photo:nth-child(1) { width: 34%; margin-right: -3%; margin-top: 6px; }
.collage .photo:nth-child(2) { width: 30%; margin-right: -2.5%; margin-top: 44px; }
.collage .photo:nth-child(3) { width: 37%; margin-top: 16px; }
.collage .photo:nth-child(4) { width: 27%; margin-right: -3%; margin-top: -30px; }
.collage .photo:nth-child(5) { width: 33%; margin-right: -2%; margin-top: 8px; }
.collage .photo:nth-child(6) { width: 35%; margin-top: -44px; }
.collage .photo:nth-child(7) { width: 31%; margin-top: -18px; margin-left: 4%; }

.mg-honest { --mr: -2deg; max-width: 420px; margin: -14px auto 8px; text-align: center; font-size: 1rem; }
.mg-honest .arrow-up { left: -70px; top: -26px; }
.mg-sweat { --mr: 5deg; margin: 4px 0 0 68%; font-size: 1.05rem; }

/* ============================================================
   PAGE 4 — WRITE US
   ============================================================ */
.write-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(240px, 0.95fr);
  gap: 34px 48px;
  align-items: start;
  flex: 1;
  padding-top: 10px;
}

.coupon {
  position: relative;
  border: 3px dashed var(--ink);
  background: #fdfdf8;
  padding: 26px 22px 20px;
  transform: rotate(calc(var(--r, -1.5deg) * var(--tiltscale)));
  box-shadow: 3px 5px 0 rgba(10, 9, 8, 0.18);
}
.scissors {
  position: absolute;
  top: -16px; left: 26px;
  font-size: 1.6rem;
  transform: rotate(-90deg);
  background: var(--paper);
  padding: 0 4px;
  line-height: 1;
}
.coupon-head {
  font-family: var(--heavy);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.coupon-line { font-family: var(--type); font-size: 0.92rem; margin-bottom: 12px; }
.blank { letter-spacing: 0.05em; opacity: 0.85; }
.tickbox { font-size: 1.05rem; }
.coupon-btn {
  display: inline-block;
  font-family: var(--heavy);
  font-size: 1rem;
  color: var(--paper);
  background: var(--red);
  padding: 10px 18px;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-1deg);
  margin-top: 6px;
}
.coupon-btn:hover, .coupon-btn:focus-visible { background: var(--ink); }
.mg-demo { --mr: 3deg; position: absolute; right: 10px; bottom: -46px; text-align: right; font-size: 0.85rem; }

.write-side { position: relative; padding-top: 6px; }
.sticker-row { display: flex; gap: 16px; margin: 18px 0 22px; flex-wrap: wrap; }
.mini-sticker {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  font-family: var(--heavy);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  background: #fdfdf8;
  border: 3px solid #fdfdf8;
  box-shadow: 1px 3px 7px rgba(10, 9, 8, 0.3);
  transition: scale 0.15s ease;
}
.mini-sticker:hover, .mini-sticker:focus-visible { scale: 1.14; }
.ms-1 { border-radius: 50%; background: var(--yellow); transform: rotate(calc(-6deg * var(--tiltscale))); }
.ms-2 { clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); background: var(--red); color: #fdfdf8; border: none; width: 62px; }
.ms-2 { transform: rotate(calc(4deg * var(--tiltscale))); }
.ms-3 { background: var(--ink); color: var(--paper); transform: rotate(calc(-3deg * var(--tiltscale))); }
.ms-4 { border-radius: 50% 46% 54% 50%; background: #fdfdf8; color: var(--red); transform: rotate(calc(7deg * var(--tiltscale))); }
.mg-stamps { --mr: -4deg; margin-top: 6px; }

/* the drummer's doodle sheet, taped in */
.doodle-scrap { max-width: 220px; margin: 20px auto 14px; }
.doodle-scrap img { mix-blend-mode: multiply; }

/* received: one spit-take, redeemed */
.coupon-stamp {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 88px;
  height: auto;
  transform: rotate(9deg);
  mix-blend-mode: multiply;
  opacity: 0.9;
  pointer-events: none;
}

/* ============================================================
   FOOTER STAMP STRIP (every page)
   ============================================================ */
.stamp-strip {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stamp-link {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border: 2.5px solid var(--red);
  border-radius: 4px;
  padding: 6px 14px;
  transform: rotate(calc(-1.2deg * var(--tiltscale)));
  opacity: 0.85;
  box-shadow: inset 0 0 14px rgba(208, 52, 44, 0.12);
  /* uneven ink */
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,0.72) 100%);
          mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0,0,0,0.72) 100%);
}
.stamp-link:hover, .stamp-link:focus-visible { opacity: 1; background: rgba(208, 52, 44, 0.08); }
.stamp-pg {
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

/* ============================================================
   MOBILE — collage relaxes, nav drops to bottom bar
   ============================================================ */
@media (max-width: 780px) {
  :root { --tiltscale: 0.45; }

  .sheet {
    padding: 18px 16px 120px 16px; /* room for bottom nav */
  }

  .sticker-sheet {
    top: auto; left: 0; right: 0; bottom: 0;
    width: 100%; height: 86px;
    background: rgba(242, 240, 235, 0.96);
    border-top: 3px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 4px;
    padding: 8px 6px;
    box-shadow: 0 -4px 14px rgba(10, 9, 8, 0.18);
  }
  .sticker { position: static; flex: none; }
  .stk-star { width: 64px; height: 64px; padding-top: 18px; }
  .stk-star .stk-word { font-size: 0.62rem; }
  .stk-arrow { width: 74px; height: 54px; padding-right: 20px; }
  .stk-arrow .stk-word { font-size: 0.72rem; }
  .stk-circle { width: 60px; height: 60px; }
  .stk-circle .stk-word { font-size: 0.66rem; }
  .stk-burst { width: 68px; height: 62px; }
  .stk-burst .stk-word { font-size: 0.6rem; }
  .stk-exit { width: 66px; height: 46px; }
  .stk-exit .stk-word { font-size: 0.58rem; }
  .stk-pg { font-size: 0.5rem; }
  .sticker[aria-current="page"]::after { inset: -4px; }

  .noise-grid, .write-grid { grid-template-columns: 1fr; }
  .taped-photo { margin: 0 auto; }
  .mg-neck { position: static; margin: 10px 0 0 40%; }
  .mg-neck .scribble-arrow { display: none; }
  .mg-demo { position: static; margin-top: 14px; text-align: left; }

  .flyer-wall { gap: 30px 14px; }
  .flyer:nth-child(n) { margin-top: 0; }
  .mg-earplugs, .mg-allages, .mg-sweat { margin-left: 6%; }

  .collage { gap: 26px 0; }
  .collage .photo:nth-child(n) {
    width: min(88%, 420px);
    margin: 0 0 6px 0;
  }
  .collage .photo:nth-child(even) { margin-left: 6%; }
  .collage .photo:nth-child(odd) { margin-right: 6%; }
  .mg-honest { margin-top: 6px; }
  .mg-honest .arrow-up { display: none; }

  .toner-corner { width: 60vmax; height: 60vmax; left: -22vmax; bottom: -22vmax; opacity: 0.8; }
}

/* very small screens: shrink masthead chips a touch more */
@media (max-width: 380px) {
  .masthead { font-size: 2.2rem; }
  .flyer { width: 100%; }
}

/* ============================================================
   REDUCED MOTION — no flash, no jitter, no wiggle
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  #flash.on { animation: none; }
  .page.jitter { animation: none; }
  .sticker, .mini-sticker { transition: none; }
  .sticker:hover, .sticker:focus-visible,
  .mini-sticker:hover, .mini-sticker:focus-visible { scale: none; }
}
