/* ====================================================================
   LOUDER — Disability Justice Collage Zine
   Full-bleed spreads. Idle-loop animations everywhere. Hover intensifies.
   prefers-reduced-motion preserves the static "broken" look.
   ==================================================================== */

:root {
  /* paper + ink palette */
  --ink: #111;
  --paper: #f5f1e6;
  --paper-cream: #fffbe9;
  --paper-cool: #f1eee0;
  --hot: #ff2d55;
  --acid: #c4ff2d;
  --bruise: #6f3cff;
  --sun: #fce96a;
  --pink: #ffd1dc;
  --tape: rgba(252, 233, 106, .68);
  --tape-edge: rgba(245, 209, 66, .9);
  --shadow: rgba(0, 0, 0, .22);

  /* font stacks for ransom-note variety */
  --f-display: "Anton", "Impact", system-ui, sans-serif;
  --f-marker: "Permanent Marker", "Caveat", cursive;
  --f-hand: "Caveat", "Reenie Beanie", cursive;
  --f-loose: "Reenie Beanie", "Shadows Into Light", cursive;
  --f-typed: "Special Elite", "Courier New", monospace;
  --f-shade: "Bungee Shade", system-ui, sans-serif;
  --f-block: "Bowlby One SC", "Rubik Mono One", system-ui;
  --f-ultra: "Ultra", "Anton", serif;
  --f-body: Georgia, "Iowan Old Style", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0,0,0,.04) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,.03) 0 1px, transparent 2px);
  background-size: 7px 7px, 11px 11px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: .5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10000; }

/* ====================================================================
   AMBIENT page-level effects (always on)
   #20 marquee · #41 grain · #43 heartbeat
   ==================================================================== */

/* #41 GRAIN-SHIFT — fixed film-grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: -10px;
  z-index: 1000;
  pointer-events: none;
  opacity: .07;
  background-image:
    repeating-radial-gradient(circle at 50% 50%, rgba(0,0,0,.7) 0 .5px, transparent 1px 2px),
    repeating-radial-gradient(circle at 30% 70%, rgba(0,0,0,.6) 0 .4px, transparent 1px 3px);
  animation: grain .4s steps(4) infinite;
  mix-blend-mode: multiply;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2px, 1px); }
  50%  { transform: translate(1px, -2px); }
  75%  { transform: translate(2px, 2px); }
  100% { transform: translate(0,0); }
}

/* #20 MARQUEE-CHANT — sticky top */
.marquee {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--f-block);
  letter-spacing: .14em;
  overflow: hidden;
  border-bottom: 3px solid var(--hot);
}
.marquee__track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 38s linear infinite;
  padding: .4rem 0;
  font-size: .95rem;
  white-space: nowrap;
}
.marquee:hover .marquee__track { animation-duration: 10s; }

/* fixed top-left nav button */
.nav-button {
  position: fixed;
  top: 3rem;
  left: 1rem;
  z-index: 200;
  font-family: var(--f-block);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  padding: .55rem .9rem;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--hot);
  transform: rotate(-2deg);
  transition: transform .15s, box-shadow .15s;
}
.nav-button:hover,
.nav-button:focus-visible {
  transform: rotate(-2deg) translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--hot);
  outline: none;
}
@media (max-width: 720px) {
  .nav-button { top: 2.5rem; left: .5rem; font-size: .75rem; padding: .35rem .6rem; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====================================================================
   SPREAD layout — full-bleed, dense
   ==================================================================== */
.spread {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  padding: 5rem 4vw 4rem;
  overflow: hidden;
  isolation: isolate;
  /* #43 HEARTBEAT-SHAKE on each spread */
  animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 30%, 60%, 100% { transform: translate(0, 0); }
  10% { transform: translate(0, -1px); }
  40% { transform: translate(0, -1.5px); }
}

.spread + .spread { border-top: 1px dashed rgba(0,0,0,.18); }

.spread h2 {
  font-family: var(--f-display);
  text-transform: lowercase;
  letter-spacing: .01em;
  margin: 0 0 1rem;
}

/* per-spread paper backgrounds */
.spread--cover     { background: var(--paper); }
.spread--what      { background: #fff; }
.spread--stats     { background: var(--paper); }
.spread--slam      {
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(0,0,0,.045) 28px 29px),
    #fff7f0;
  border-left: 8px solid var(--hot);
  border-right: 8px solid var(--hot);
}
.spread--loud      { background: #fff; }
.spread--cites     { background: var(--paper); }
.spread--colophon  {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  min-height: 80vh;
}

/* ====================================================================
   PRIMITIVE: ransom-note text
   #1 RANSOM-JITTER idle, ramps on hover
   ==================================================================== */
.ransom {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 9vw, 5rem);
  line-height: 1;
  display: inline-block;
}
.ransom--huge { font-size: clamp(4rem, 16vw, 10rem); }

/* per-letter spans assigned by JS */
.ransom .l {
  display: inline-block;
  background: var(--bg, var(--sun));
  color: var(--color, var(--ink));
  padding: 0 .12em .04em;
  margin: 0 .03em;
  transform: rotate(var(--rot, 0deg));
  font-family: var(--font, var(--f-display));
  box-shadow: 1px 1px 0 rgba(0,0,0,.18);
  animation: ransomJitter .9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -.13s);
  cursor: default;
  transition: transform .12s, background .12s;
}
.ransom .l:hover,
.ransom .l:focus-visible {
  animation: ransomJitterBig .25s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.35));
  outline: none;
}
@keyframes ransomJitter {
  from { transform: rotate(calc(var(--rot, 0deg) - 6deg)) translateY(-1px); }
  to   { transform: rotate(calc(var(--rot, 0deg) + 6deg)) translateY(1px); }
}
@keyframes ransomJitterBig {
  from { transform: rotate(calc(var(--rot, 0deg) - 18deg)) translateY(-3px) scale(1.08); }
  to   { transform: rotate(calc(var(--rot, 0deg) + 18deg)) translateY(3px) scale(1.08); }
}

/* hover the parent → all letters wave */
.ransom:hover .l {
  animation-duration: .35s;
}

/* slam-in on viewport entry (via JS .is-slamming class) */
.ransom.is-slamming .l {
  animation: ransomSlam .7s cubic-bezier(.2, 1.6, .3, 1) both;
  animation-delay: calc(var(--i) * .04s);
}
@keyframes ransomSlam {
  0%   { transform: translate(0, -120vh) rotate(-30deg) scale(.6); opacity: 0; }
  60%  { transform: translate(0, 8%) rotate(var(--rot, 0deg)) scale(1.08); opacity: 1; }
  100% { transform: rotate(var(--rot, 0deg)) scale(1); }
}

/* cover ransom: position center-top */
.spread--cover .ransom {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90vw;
}
.spread--slam .ransom {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  width: max-content;
  max-width: none;
}

/* ====================================================================
   PRIMITIVE: marker handwriting
   #12 INK-BLEED idle
   ==================================================================== */
.marker {
  font-family: var(--f-marker);
  color: var(--hot);
  font-size: 1.4rem;
  line-height: 1.25;
  position: absolute;
  top: var(--top); left: var(--left);
  width: var(--w, auto);
  transform: rotate(var(--rot, 0deg));
  transform-origin: center;
  filter: blur(0);
  animation: inkBleed 5s ease-in-out infinite alternate;
  z-index: 5;
}
.marker--big   { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
.marker--small { font-size: 1rem; }
.marker:hover {
  filter: blur(1.5px) contrast(1.5);
  transition: filter .3s;
}
@keyframes inkBleed {
  to { filter: blur(.5px) contrast(1.15); }
}

/* pull-quote variant */
.pull-quote {
  font-family: var(--f-marker);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--ink);
}
.spread--cover .pull-quote { color: var(--hot); }

/* photoJitter shared by .polaroid + .cutout */
@keyframes photoJitter {
  from { transform: rotate(calc(var(--rot, 0deg) - .4deg)) translate(-1px, 0); }
  to   { transform: rotate(calc(var(--rot, 0deg) + .4deg)) translate(1px, 1px); }
}

/* ====================================================================
   PRIMITIVE: polaroid
   ==================================================================== */
.polaroid {
  position: absolute;
  top: var(--top); left: var(--left);
  width: var(--w, 220px);
  background: #fff;
  padding: .5rem .5rem 2.2rem;
  box-shadow: 0 6px 14px var(--shadow);
  transform: rotate(var(--rot, 0deg));
  animation: photoJitter .7s ease-in-out infinite alternate, shadowBreathe 4s ease-in-out infinite alternate;
  z-index: 6;
  transition: transform .35s, box-shadow .35s;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ddd;
  filter: saturate(1) contrast(1.05);
}
.polaroid figcaption {
  position: absolute;
  bottom: .35rem;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--f-hand);
  font-size: 1rem;
  color: var(--ink);
}
.polaroid:hover {
  transform: rotate(var(--rot, 0deg)) translateY(-12px) scale(1.04);
  box-shadow: 0 22px 32px rgba(0,0,0,.35);
  z-index: 60;
}
@keyframes shadowBreathe {
  to { box-shadow: 0 12px 22px var(--shadow); }
}

/* ====================================================================
   PRIMITIVE: tape
   #34 TAPE-PEEL idle
   ==================================================================== */
.tape {
  position: absolute;
  top: var(--top); left: var(--left);
  width: var(--w, 110px);
  height: 22px;
  background:
    repeating-linear-gradient(45deg, var(--tape) 0 6px, var(--tape-edge) 6px 12px);
  transform: rotate(var(--rot, 0deg));
  transform-origin: 0 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  z-index: 8;
  animation: tapePeel 5s ease-in-out infinite alternate;
}
@keyframes tapePeel {
  to { transform: rotate(calc(var(--rot, 0deg) + 1.5deg)); }
}
.tape:hover {
  transform: rotate(calc(var(--rot, 0deg) + 12deg)) translateY(-3px);
  transition: transform .35s;
}

/* ====================================================================
   PRIMITIVE: sticker
   #37 WOBBLE idle, #39 PULSE-GLOW on hover
   ==================================================================== */
.sticker {
  position: absolute;
  top: var(--top); left: var(--left);
  background: var(--bg, var(--hot));
  color: var(--color, #fff);
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 50%;
  width: 130px; height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--f-block);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .04em;
  padding: .6rem;
  line-height: 1;
  transform: rotate(var(--rot, 0deg));
  box-shadow: 4px 4px 0 var(--ink);
  cursor: default;
  z-index: 10;
  animation: stickerWobble 1.6s ease-in-out infinite alternate;
}
.sticker:hover,
.sticker:focus-visible {
  animation: stickerWobble .4s ease-in-out infinite alternate, pulseGlow 1.2s ease-in-out infinite alternate;
  transform: rotate(var(--rot, 0deg)) scale(1.18);
  outline: none;
  z-index: 70;
}
@keyframes stickerWobble {
  from { transform: rotate(calc(var(--rot, 0deg) - 4deg)); }
  to   { transform: rotate(calc(var(--rot, 0deg) + 4deg)); }
}
@keyframes pulseGlow {
  from { box-shadow: 4px 4px 0 var(--ink), 0 0 0 0 currentColor; }
  to   { box-shadow: 4px 4px 0 var(--ink), 0 0 32px 6px currentColor; }
}
.sticker--final { width: 280px; height: 280px; font-size: 2.5rem; line-height: .95; font-family: var(--f-shade); }
.sticker--spin { animation: stickerSpin 14s linear infinite; }
.sticker--spin:hover { animation-duration: 2s; }
@keyframes stickerSpin { to { transform: rotate(calc(var(--rot, 0deg) + 360deg)); } }
.sticker--magnet { transition: transform .15s ease-out; }

/* ====================================================================
   PRIMITIVE: torn-paper card
   ==================================================================== */
.torn {
  position: absolute;
  top: var(--top); left: var(--left);
  width: var(--w, 240px);
  background: var(--bg, #fff);
  color: var(--color, var(--ink));
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 10px var(--shadow);
  transform: rotate(var(--rot, 0deg));
  clip-path: polygon(
    1% 3%, 8% 0, 18% 4%, 32% 1%, 50% 3%, 68% 0, 82% 4%, 95% 1%, 100% 5%,
    99% 28%, 100% 50%, 98% 72%, 100% 96%,
    93% 100%, 78% 97%, 62% 100%, 44% 98%, 26% 100%, 10% 97%, 0 99%,
    2% 75%, 0 50%, 3% 25%
  );
  animation: pageFlutter 5s ease-in-out infinite alternate;
  z-index: 5;
}
@keyframes pageFlutter {
  from {
    clip-path: polygon(1% 3%, 8% 0, 18% 4%, 32% 1%, 50% 3%, 68% 0, 82% 4%, 95% 1%, 100% 5%,
      99% 28%, 100% 50%, 98% 72%, 100% 96%,
      93% 100%, 78% 97%, 62% 100%, 44% 98%, 26% 100%, 10% 97%, 0 99%,
      2% 75%, 0 50%, 3% 25%);
  }
  to {
    clip-path: polygon(0 4%, 8% 1%, 18% 3%, 32% 0, 50% 4%, 68% 1%, 82% 3%, 95% 0, 100% 4%,
      100% 28%, 99% 50%, 100% 72%, 99% 95%,
      93% 100%, 78% 96%, 62% 100%, 44% 97%, 26% 100%, 10% 96%, 1% 100%,
      3% 75%, 1% 50%, 4% 25%);
  }
}
.torn:hover {
  animation-duration: 1.5s;
  transform: rotate(var(--rot, 0deg)) scale(1.02);
  z-index: 40;
}
.torn--stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  width: 18vw;
  padding: 1.25rem 1rem;
}
.lined-paper {
  background:
    linear-gradient(transparent calc(1.5em - 1px), rgba(0,0,0,.18) 1.5em),
    var(--bg, #fffef8);
  background-size: 100% 1.5em;
  background-attachment: local;
}

/* ====================================================================
   POEM (slam spread)
   #2 BASELINE-WAVE letters · #24 STUTTER hover · #25 MIC-DROP click
   ==================================================================== */
.poem .line {
  position: absolute;
  top: var(--top); left: var(--left);
  font-family: var(--f-ultra);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: var(--ink);
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  background: rgba(255,255,255,.85);
  padding: .35em .8em;
  box-shadow: 2px 2px 0 var(--ink);
  max-width: 50vw;
  z-index: 5;
  transition: transform .9s cubic-bezier(.4,0,.6,1), opacity .9s;
}
.poem .line .l {
  display: inline-block;
  animation: baselineWave 2.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * .07s);
}
@keyframes baselineWave {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.poem .line:hover .l,
.poem .line:focus-visible .l {
  animation-duration: 1.1s;
}
.poem .line:hover,
.poem .line:focus-visible {
  background: var(--sun);
  box-shadow: 4px 4px 0 var(--hot);
}
.poem .line.is-dropped {
  transform: translateY(140vh) rotate(12deg);
  opacity: 0;
  pointer-events: none;
}

/* #28 ALL-CAPS-YELL inline */
[data-fx="yell"] {
  display: inline-block;
  color: var(--hot);
  font-weight: 900;
  animation: vibrato .25s ease-in-out infinite alternate;
  transition: transform .15s, color .15s, letter-spacing .15s;
}
@keyframes vibrato {
  from { transform: translate(-1px, 0); }
  to   { transform: translate(1px, 0); }
}
[data-fx="yell"]:hover,
[data-fx="yell"]:focus-visible {
  text-transform: uppercase;
  transform: scale(1.35);
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--hot);
  padding: 0 .15em;
  outline: none;
}

/* #24 STUTTER inline */
[data-fx="stutter"] {
  display: inline-block;
  position: relative;
}
[data-fx="stutter"]::before,
[data-fx="stutter"]::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  pointer-events: none;
  opacity: 0;
}
[data-fx="stutter"]:hover::before {
  opacity: .45;
  color: var(--bruise);
  transform: translate(-6px, 2px);
  transition: .15s;
}
[data-fx="stutter"]:hover::after {
  opacity: .45;
  color: var(--hot);
  transform: translate(6px, -2px);
  transition: .15s;
}

/* #26 SHATTER inline (JS adds .letter spans) */
[data-fx="shatter"] {
  display: inline-block;
}
[data-fx="shatter"] .letter {
  display: inline-block;
  transition: transform .45s ease, opacity .45s;
}
[data-fx="shatter"]:hover .letter,
[data-fx="shatter"]:focus-within .letter {
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--dr, 0));
  opacity: .85;
}

/* ====================================================================
   STATS (spread 4)
   pulse on .stat-num
   ==================================================================== */
.stat-num {
  display: block;
  font-family: var(--f-shade);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  color: var(--hot);
  line-height: 1;
  animation: statPulse 1.6s ease-in-out infinite alternate;
}
.stat-cap {
  font-family: var(--f-typed);
  font-size: .9rem;
  display: block;
  margin-top: .4rem;
  text-align: center;
  color: var(--ink);
}
@keyframes statPulse {
  to { transform: scale(1.1); }
}
.torn--stat:hover .stat-num { animation-duration: .55s; color: var(--bruise); }

/* ====================================================================
   WHAT spread — principles list
   ==================================================================== */
.principles { list-style: none; padding: 0; margin: 0; }
.principles li.torn {
  font-family: var(--f-marker);
  font-size: 1rem;
  width: 14vw;
  min-height: 70px;
  padding: .8rem .9rem;
  display: flex;
  align-items: center;
}
.principles li strong {
  font-family: var(--f-shade);
  font-size: 1.6rem;
  margin-right: .4rem;
  color: var(--hot);
}

/* ====================================================================
   SEE ALSO spread — resources
   ==================================================================== */
.resources { list-style: none; padding: 0; margin: 0; }
.resources li.torn {
  font-family: var(--f-marker);
  font-size: 1rem;
  width: 22vw;
  padding: 1rem 1.2rem;
}
.resources li strong {
  font-family: var(--f-shade);
  display: block;
  font-size: 1.3rem;
  margin-bottom: .25rem;
  color: var(--hot);
}
.resources a {
  color: var(--bruise);
  text-decoration: underline wavy;
  word-break: break-all;
}

/* ====================================================================
   CITATIONS spread
   ==================================================================== */
.cites {
  font-family: var(--f-typed);
  font-size: .9rem;
  line-height: 1.4;
  margin: 0;
  padding-left: 1.5rem;
}
.cites li { margin: .35rem 0; }
.cites a { color: var(--bruise); }

/* ====================================================================
   COVER cutout (SVG flag)
   ==================================================================== */
.cutout {
  position: absolute;
  top: var(--top); left: var(--left);
  width: var(--w, 160px);
  transform: rotate(var(--rot, 0deg));
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,.25));
  animation: photoJitter 1s ease-in-out infinite alternate;
  z-index: 5;
}

/* ====================================================================
   COLOPHON
   ==================================================================== */
.spread--colophon .marker { color: var(--paper); }
.spread--colophon .sticker--final { z-index: 5; }
.spread--colophon code {
  font-family: var(--f-typed);
  background: rgba(255,255,255,.1);
  padding: 0 .3em;
}
.colophon-credit {
  position: absolute;
  top: 72%;
  left: 50%;
  width: max-content;
  max-width: 90vw;
  text-align: center;
  transform: translateX(-50%) rotate(var(--rot, 0deg));
  color: var(--paper);
}

/* ====================================================================
   USER-ADDED LINES (slam spread)
   editable inline comment + drag-to-move on every poem line
   ==================================================================== */
.poem .line {
  cursor: grab;
  user-select: none;
  touch-action: none;  /* let pointer events drive drag instead of native scroll */
}
.poem .line.user-added {
  background: var(--sun);
  box-shadow: 3px 3px 0 var(--bruise);
  z-index: 6;
}
.poem .line.line--editable {
  cursor: text;
  user-select: text;
  background: #fff;
  outline: 2px dashed var(--hot);
  outline-offset: 2px;
  caret-color: var(--hot);
  z-index: 100;
  min-width: 6ch;
  min-height: 1.4em;
}
.poem .line.line--editable.is-placeholder {
  color: rgba(0, 0, 0, .45);
  font-style: italic;
}
.poem .line.line--editable:focus {
  outline: 3px solid var(--hot);
  background: var(--sun);
  cursor: text;
}
/* dragging — applies last so it lifts the dragged item above static peers
   while still staying below the live editable (z=100) */
.poem .line.is-dragging:not(.line--editable) {
  cursor: grabbing;
  transition: none !important;
  z-index: 90;
}
.poem .line.line--editable.is-dragging {
  cursor: grabbing;
  transition: none !important;
}

@media (max-width: 720px) {
  .colophon-credit {
    position: relative;
    top: auto; left: auto;
    transform: rotate(var(--rot, 0deg));
    margin: 2rem auto 0;
  }
}

/* ====================================================================
   FOCUS STYLES (accessibility)
   ==================================================================== */
:focus-visible {
  outline: 3px dashed var(--hot);
  outline-offset: 3px;
}

/* ====================================================================
   REDUCED MOTION — preserve "broken" static look without animating
   ==================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee__track { animation: none; transform: translateX(0); }
  body::before { animation: none; }
  .spread { animation: none; }
  .ransom .l { animation: none; }
  /* keep the chaos visible: random rotations/jitter remain via JS-set vars */
}

/* ====================================================================
   MOBILE — collapse absolute positioning to readable column
   ==================================================================== */
@media (max-width: 720px) {
  .spread {
    padding: 4rem 1rem 3rem;
    min-height: auto;
  }
  /* drop absolute positioning for content primitives */
  .spread > .marker,
  .spread > .torn,
  .spread > .polaroid,
  .spread > .resources li.torn,
  .spread > .principles li.torn,
  .poem .line {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 1rem 0 !important;
    transform: rotate(var(--rot, 0deg));
  }
  .spread > .ransom {
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    width: auto;
    text-align: left;
    white-space: normal;
  }
  .spread > .sticker {
    position: relative;
    margin: 1rem auto;
    top: auto; left: auto;
    transform: rotate(var(--rot, 0deg));
  }
  /* hide pure decoration on mobile */
  .tape, .cutout { display: none; }
  .torn--stat { width: auto; }
  .principles li.torn { width: 100%; }
  .resources li.torn { width: 100%; }
}
