/* jimhasadhd.fyi: a comic series, one issue per hobby. */

:root {
  --paper: #fffdf6;
  --ink: #111;
  --yellow: #ffe14d;
  --red: #e3262e;
  --red-deep: #b5121b;
  --blue: #1f5fbf;
  --line: 4px;
  --display: "Bangers", "Comic Neue", sans-serif;
  --letter: "Comic Neue", "Comic Sans MS", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --ease-slam: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: var(--ink) var(--yellow); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--letter);
  caret-color: var(--red);
  overflow-x: clip;
}

::selection { background: var(--yellow); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--red); }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 10px var(--yellow); }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.12em; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  background: var(--yellow); border: var(--line) solid var(--ink);
  padding: 8px 14px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- print texture ---------- */

.dots {
  --dot: var(--red);
  --ds: 14px;
  background-color: var(--yellow);
  background-image:
    radial-gradient(circle, var(--dot) 20%, transparent 22%),
    radial-gradient(circle, var(--dot) 20%, transparent 22%);
  background-size: var(--ds) var(--ds);
  background-position: 0 0, calc(var(--ds) / 2) calc(var(--ds) / 2);
}

/* ---------- lettering primitives ---------- */

.banner {
  font: 400 clamp(2.6rem, 7vw, 4.5rem)/0.95 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
}

.caption {
  background: var(--yellow);
  border: 3px solid var(--ink);
  padding: 10px 14px;
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
}

.bubble {
  position: relative;
  max-width: 34ch;
  padding: 2.9em 3.1em;
  margin: 0;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.35;
}
.bubble p { position: relative; margin: 0; }
.balloon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.balloon ellipse, .balloon .tail { fill: #fff; }
.balloon ellipse, .balloon path { stroke: var(--ink); stroke-width: 4px; vector-effect: non-scaling-stroke; }
.balloon path { fill: none; stroke-linejoin: miter; }

.burst { position: relative; display: grid; place-items: center; }
.burst-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.burst-shape polygon { fill: #fff; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: miter; }
.burst span {
  position: relative;
  font: 400 clamp(1.5rem, 3.4vw, 2.3rem)/0.9 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-align: center;
  transform: rotate(-8deg);
  max-width: 78%;
  text-wrap: balance;
}

.panel-btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--ink); color: var(--yellow);
  font: 400 1.6rem/1 var(--display); letter-spacing: 0.05em; text-transform: uppercase;
  padding: 14px 22px 12px;
  border: var(--line) solid var(--ink);
  text-decoration: none;
  transition: transform .18s var(--ease-slam), background-color .18s;
}
.panel-btn:hover { color: var(--ink); background: #fff; transform: rotate(-2deg) scale(1.04); }

.seal {
  display: inline-block;
  font: 700 0.8rem/1 var(--letter); text-transform: uppercase; letter-spacing: 0.04em;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink);
  padding: 6px 8px;
}
.seal-live { background: var(--red); color: #fff; }
.seal-tinkering { background: var(--blue); color: #fff; }
.seal-paused { background: var(--yellow); }
.seal-abandoned { background: #fff; color: #444; text-decoration: line-through 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px 10px; font-weight: 700; font-size: 0.85rem; }

/* ---------- top bar ---------- */

.topbar {
  position: relative; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--ink); color: #fff;
  padding: 10px var(--gutter);
}
.wordmark {
  font: 400 1.7rem/1 var(--display); letter-spacing: 0.04em;
  color: var(--yellow); text-decoration: none;
}
.wordmark span { color: var(--red); -webkit-text-stroke: 0; }
.wordmark:hover { color: #fff; }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a {
  font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: 0.95rem;
  padding: 6px 12px; border: 3px solid transparent;
}
.topbar nav a:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- speed-line flash overlay ---------- */

.speedlines {
  --x: 50%; --y: 50%;
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(from 0deg at var(--x) var(--y), var(--ink) 0deg 1.3deg, transparent 1.3deg 6.5deg);
  -webkit-mask: radial-gradient(circle at var(--x) var(--y), transparent 0 26%, #000 70%);
          mask: radial-gradient(circle at var(--x) var(--y), transparent 0 26%, #000 70%);
}
.speedlines.flash { animation: lines-flash .42s ease-out; }
@keyframes lines-flash { 0% { opacity: 0; } 10% { opacity: .75; } 100% { opacity: 0; } }

main.shake { animation: shake .28s steps(6); }
main.shake-big { animation: shake-big .4s steps(8); }
@keyframes shake-big {
  0%, 100% { transform: none; }
  15% { transform: translate(-12px, 6px) rotate(-.4deg); }
  35% { transform: translate(10px, -8px) rotate(.3deg); }
  55% { transform: translate(-7px, -4px); }
  75% { transform: translate(5px, 6px); }
}
@keyframes shake {
  0%, 100% { transform: none; }
  20% { transform: translate(-7px, 4px); }
  40% { transform: translate(6px, -5px); }
  60% { transform: translate(-4px, -3px); }
  80% { transform: translate(3px, 4px); }
}

/* ---------- hero ---------- */

.hero {
  --dot: var(--red);
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--ink);
  min-height: min(92svh, 880px);
  display: grid; align-items: center;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 110px);
}
.hero-lines {
  position: absolute; inset: -20%;
  background: repeating-conic-gradient(from 0deg at 38% 48%, var(--ink) 0deg 0.45deg, transparent 0.45deg 9deg);
  -webkit-mask: radial-gradient(circle at 38% 48%, transparent 0 30%, #000 30.5%);
          mask: radial-gradient(circle at 38% 48%, transparent 0 30%, #000 30.5%);
  translate: 0 var(--py, 0px);
}
.hero-grid {
  position: relative;
  width: min(100%, 1240px); margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "t t t t t t t t . b b b"
    "t t t t t t t t . s s s"
    "c c c c c c . . . s s s"
    "a a a a . . . . . p p p";
  gap: 28px 24px;
  align-items: end;
}
.hero-title { grid-area: t; margin: 0; text-transform: uppercase; }
.hero-title .t1 {
  display: block;
  font: 400 clamp(4rem, 12vw, 9.5rem)/0.84 var(--display);
  letter-spacing: 0.01em;
  color: var(--red);
  -webkit-text-stroke: clamp(3px, .6vw, 6px) var(--ink);
  paint-order: stroke fill;
  text-shadow: clamp(4px, .9vw, 10px) clamp(4px, .9vw, 10px) 0 var(--ink);
  transform: rotate(-3deg);
  transform-origin: left bottom;
}
.hero-title .t2 {
  display: inline-block; margin-top: 22px;
  font: 400 clamp(1.5rem, 3.4vw, 2.6rem)/1 var(--display); letter-spacing: 0.04em;
  background: var(--ink); color: #fff; padding: 8px 14px 6px;
  transform: rotate(-1.5deg);
}
.hero-bubble { grid-area: s; align-self: center; justify-self: end; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-caption { grid-area: c; max-width: 44ch; font-size: 1.05rem; transform: rotate(.6deg); }
.hero-cta { grid-area: a; justify-self: start; }
.pricebox {
  grid-area: p; justify-self: end; margin: 0;
  background: #fff; border: var(--line) solid var(--ink);
  padding: 10px 14px; text-transform: uppercase; font-weight: 700; font-size: .85rem; line-height: 1.2;
  display: grid; grid-template-columns: auto auto; gap: 0 8px; align-items: baseline;
}
.pricebox strong { font: 400 2rem/1 var(--display); color: var(--red); }
.hero-burst { grid-area: b; width: min(100%, 300px); aspect-ratio: 4 / 3; justify-self: end; transform: rotate(6deg); }
.hero-burst span { font-size: clamp(1.3rem, 2.1vw, 1.75rem); max-width: 70%; }

.lost .hero-title .t1 { font-size: clamp(3rem, 9vw, 7rem); }

/* ---------- the issues ---------- */

.issues {
  padding: clamp(56px, 8vw, 110px) var(--gutter) clamp(72px, 10vw, 140px);
  width: min(100%, 1320px); margin-inline: auto;
}
.issues-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 28px; margin-bottom: 26px; }
.issues-head .caption { transform: rotate(-1deg); max-width: 36ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(36px, 5vw, 60px); }
.filters button {
  font: 700 .9rem/1 var(--letter); text-transform: uppercase;
  color: var(--ink); background: #fff;
  border: 3px solid var(--ink); padding: 8px 12px; cursor: pointer;
  transition: transform .15s var(--ease-slam);
}
.filters button:hover { transform: rotate(-3deg); background: var(--yellow); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

/* The rack packs like a comic page: rows always fill, and the newest issue is a double-width splash. */
.rack {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: clamp(40px, 5vw, 64px) clamp(28px, 3.5vw, 48px);
}
.rack-slot { flex: 1 1 320px; min-width: 0; translate: 0 var(--py, 0px); will-change: translate; }
.rack-slot.lead { flex: 2 1 620px; }
.rack-slot[hidden] { display: none; }

.cover {
  --c: var(--yellow); --c-ink: var(--ink); --dot: var(--red);
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: var(--line) solid var(--ink);
  outline: 6px solid #fff;
  transform: rotate(var(--rot, 0deg));
  transition: transform .25s var(--ease-slam);
}
.cover.ink-red  { --c: var(--red);  --c-ink: #fff; --dot: var(--yellow); }
.cover.ink-blue { --c: var(--blue); --c-ink: #fff; --dot: #fff; }
.cover:hover, .cover:focus-within { transform: rotate(0deg) scale(1.025); z-index: 2; }

.masthead {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--c); color: var(--c-ink);
  border-bottom: var(--line) solid var(--ink);
  padding: 8px 12px 6px;
}
.masthead-logo {
  font: 400 1.9rem/0.9 var(--display); letter-spacing: 0.03em; text-transform: uppercase;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
.ink-yellow .masthead-logo { color: var(--red); }
.masthead-meta {
  display: grid; justify-items: end;
  font: 700 .72rem/1.15 var(--letter); text-transform: uppercase; letter-spacing: .05em;
}
.masthead-meta span:first-child { font: 400 1.25rem/1 var(--display); letter-spacing: .06em; }
.lead .masthead-logo { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

/* Cover art is the majority of the cover; the title is lettered over it. */
.cover-art {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3.4; max-height: 520px;
  background-color: var(--c);
  border-bottom: var(--line) solid var(--ink);
  display: grid; grid-template-rows: 1fr auto;
  padding: 18px 16px 16px;
}
.lead .cover-art { aspect-ratio: 16 / 10; }
.cover-art::before {
  content: ""; position: absolute; inset: -10%;
  background: repeating-conic-gradient(from 0deg at 50% 40%, var(--ink) 0deg .5deg, transparent .5deg 10deg);
  -webkit-mask: radial-gradient(circle at 50% 40%, transparent 0 34%, #000 34.5%);
          mask: radial-gradient(circle at 50% 40%, transparent 0 34%, #000 34.5%);
}
.cover-art .burst {
  justify-self: center; align-self: center;
  width: min(74%, 340px); aspect-ratio: 4 / 3;
  transform: rotate(-4deg);
}
.lead .cover-art .burst { width: min(52%, 400px); justify-self: end; margin-right: 4%; }
.lead .cover-art .burst span { font-size: clamp(2rem, 4vw, 3.2rem); }
.cover-art h3 {
  position: relative; margin: 0;
  font: 400 clamp(2rem, 3vw, 2.6rem)/0.92 var(--display);
  letter-spacing: 0.025em; text-transform: uppercase;
  color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--ink);
  text-wrap: balance;
}
.lead .cover-art h3 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 14ch; }
.cover-art h3 a { text-decoration: none; }
.cover-art h3 a:hover { color: var(--yellow); }
.cover h3 a::after { content: ""; position: absolute; inset: -2000px; z-index: 1; }
.cover { overflow: clip; overflow-clip-margin: 12px; }

/* Attract state: the burst lights up on hover or focus, and wiggles when motion is welcome. */
.cover:hover .burst-shape polygon, .cover:focus-within .burst-shape polygon { fill: var(--yellow); stroke-width: 5; }
.fx .cover.landed:hover .cover-art .burst, .fx .cover.landed:focus-within .cover-art .burst { animation: attract 1s steps(2) infinite; }
@keyframes attract { 50% { transform: rotate(3deg) scale(1.08); } }

.cover .seal { position: absolute; top: 58px; right: -8px; transform: rotate(4deg); z-index: 2; }
.lead .seal { font-size: .95rem; padding: 8px 12px; top: 72px; }

.cover .caption { margin: 16px 16px 0; font-size: 1rem; }
.cover-foot {
  margin-top: auto; padding: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
}
.host {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--yellow);
  font-weight: 700; font-size: .9rem; text-decoration: none;
  padding: 6px 10px;
}
.host:hover { background: var(--red); color: #fff; }
.host-soon { background: #fff; color: var(--ink); border: 3px dashed var(--ink); padding: 4px 8px; }
.host-soon:hover { background: #fff; color: var(--ink); }

/* ---------- the impact entrance ---------- */

.fx .cover.pending { opacity: 0; }
.fx .cover.slam[data-side="left"]  { animation: slam-l .62s var(--ease-slam) backwards; }
.fx .cover.slam[data-side="right"] { animation: slam-r .62s var(--ease-slam) backwards; }
/* The lead issue gets the big hit: a wind-up, a freeze-frame beat, then the slam. */
.fx .lead .cover.slam { animation: slam-lead 1.05s linear backwards; }
@keyframes slam-l {
  0%   { opacity: 1; transform: translate(-115vw, -12vh) rotate(-32deg) scale(1.35); filter: blur(10px); }
  62%  { transform: translate(2.5%, 0) rotate(calc(var(--rot) + 4deg)) scale(.96); filter: blur(0); }
  82%  { transform: translate(-1%, 0) rotate(calc(var(--rot) - 1deg)) scale(1.02); }
  100% { opacity: 1; transform: rotate(var(--rot)); }
}
@keyframes slam-r {
  0%   { opacity: 1; transform: translate(115vw, -12vh) rotate(32deg) scale(1.35); filter: blur(10px); }
  62%  { transform: translate(-2.5%, 0) rotate(calc(var(--rot) - 4deg)) scale(.96); filter: blur(0); }
  82%  { transform: translate(1%, 0) rotate(calc(var(--rot) + 1deg)) scale(1.02); }
  100% { opacity: 1; transform: rotate(var(--rot)); }
}
@keyframes slam-lead {
  0%   { opacity: 1; transform: translate(-120vw, 8vh) rotate(-24deg) scale(.7); filter: blur(12px); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  38%  { transform: translate(-6%, 2%) rotate(-9deg) scale(.92); filter: blur(2px); animation-timing-function: steps(1); }
  56%  { transform: translate(-6.5%, 2%) rotate(-9.5deg) scale(.91); filter: blur(0); animation-timing-function: cubic-bezier(.7, 0, .9, .6); }
  70%  { transform: translate(1.5%, 0) rotate(calc(var(--rot) + 3deg)) scale(1.06); animation-timing-function: var(--ease-slam); }
  86%  { transform: translate(-.5%, 0) rotate(calc(var(--rot) - 1deg)) scale(.99); }
  100% { opacity: 1; transform: rotate(var(--rot)); }
}
/* One inverted impact frame per hit. */
.cover::after {
  content: ""; position: absolute; inset: calc(-1 * var(--line)); z-index: 3;
  background: #fff; mix-blend-mode: difference; opacity: 0; pointer-events: none;
}
.cover.frame::after { animation: impact-frame .16s steps(1) both; }
@keyframes impact-frame { 0% { opacity: 1; } 60%, 100% { opacity: 0; } }
.fx .cover.pending .cover-art .burst, .fx .cover.slam:not(.impact) .cover-art .burst { transform: scale(0) rotate(-40deg); }
.cover.impact .cover-art .burst { animation: burst-pop .55s cubic-bezier(.2, 1.8, .4, 1) backwards; }
@keyframes burst-pop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: rotate(-4deg); } }

/* hero lands the same way, once, on load */
.fx .hero-title .t1 { animation: hero-slam .7s var(--ease-slam) .1s both; }
.fx .hero-title .t2 { animation: hero-slam .6s var(--ease-slam) .35s both; }
.fx .hero-bubble { animation: pop-in .5s cubic-bezier(.2, 1.6, .4, 1) .7s both; }
.fx .hero-burst  { animation: burst-hero .55s cubic-bezier(.2, 1.8, .4, 1) .95s both; }
.fx .hero-caption, .fx .hero-cta, .fx .pricebox { animation: fade-up .5s var(--ease-slam) 1.1s both; }
@keyframes hero-slam {
  0% { opacity: 0; transform: translateX(-60vw) rotate(-14deg) scale(1.4); filter: blur(8px); }
  70% { opacity: 1; transform: translateX(1.5%) rotate(-2deg) scale(.98); filter: blur(0); }
}
@keyframes pop-in { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: none; } }
@keyframes burst-hero { 0% { transform: scale(0) rotate(-60deg); } 100% { transform: rotate(6deg); } }
@keyframes fade-up { 0% { opacity: 0; transform: translateY(24px); } }

/* ---------- letters page (about) ---------- */

.letters {
  --dot: #fff;
  --ds: 16px;
  background-color: var(--blue);
  border-block: 6px solid var(--ink);
  padding: clamp(56px, 8vw, 110px) var(--gutter);
}
.letters-page {
  width: min(100%, 1080px); margin-inline: auto;
  background: var(--paper);
  border: var(--line) solid var(--ink);
  padding: clamp(24px, 5vw, 56px);
  transform: rotate(-.6deg);
}
.letters-page .banner { color: var(--red); margin-bottom: 28px; }
.letters-body { columns: 2 320px; column-gap: 48px; column-rule: 3px solid var(--ink); }
.letters-body > * { break-inside: avoid; }
.letters-body h2, .letters-body h3 { break-after: avoid; }

/* ---------- prose ---------- */

.prose { max-width: 72ch; }
.letters-body.prose { max-width: none; }
.prose p { margin: 0 0 1em; }
.prose h2, .prose h3 {
  font: 400 1.9rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase;
  margin: 1.2em 0 .4em;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.prose li { background: var(--yellow); border: 3px solid var(--ink); padding: 8px 12px; font-weight: 700; }
.prose li:nth-child(even) { transform: rotate(.8deg); }
.prose li:nth-child(odd) { transform: rotate(-.6deg); }
.prose code { font: 700 .95em var(--letter); background: #fff; border: 2px solid var(--ink); padding: 0 5px; }
.prose .bubble { margin: 1.4em auto 3.4em; font-size: 1.05rem; }

/* ---------- single issue ---------- */

.issue { --c: var(--yellow); --c-ink: var(--ink); --dot: var(--red); }
.issue.ink-red  { --c: var(--red);  --c-ink: #fff; --dot: var(--yellow); }
.issue.ink-blue { --c: var(--blue); --c-ink: #fff; --dot: #fff; }
.issue-cover { border-bottom: 6px solid var(--ink); }
.issue-cover .masthead { padding: 10px var(--gutter) 8px; }
.issue-cover .masthead-logo { font-size: clamp(2rem, 5vw, 3rem); }
.issue.ink-yellow .masthead-logo { color: var(--red); }
.issue-splash {
  position: relative; overflow: hidden;
  background-color: var(--c);
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; gap: 20px; justify-items: start;
}
.issue-splash > * { position: relative; }
.issue-splash .back {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 3px solid var(--ink); padding: 6px 10px;
  font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: .9rem;
}
.issue-splash .back:hover { background: var(--ink); color: var(--yellow); }
.issue-splash h1 {
  margin: 0; max-width: 16ch;
  font: 400 clamp(2.8rem, 8vw, 6rem)/0.9 var(--display); letter-spacing: 0.02em; text-transform: uppercase;
  color: #fff; -webkit-text-stroke: clamp(2px, .45vw, 4px) var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  text-wrap: balance;
}
.issue-splash .caption { max-width: 52ch; font-size: 1.1rem; }
.issue-splash .panel-btn { font-size: 1.3rem; }
.issue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.issue-actions .seal { font-size: 1rem; padding: 9px 12px; transform: rotate(-5deg); }
.issue-burst { position: absolute !important; right: max(var(--gutter), 4%); top: 24px; width: clamp(160px, 26vw, 320px); aspect-ratio: 4 / 3; transform: rotate(8deg); }
.fx .issue-burst { animation: burst-hero .55s cubic-bezier(.2, 1.8, .4, 1) .2s both; }
.fx .issue-splash h1 { animation: hero-slam .7s var(--ease-slam) both; }

.strip {
  width: min(100% - 2 * var(--gutter), 820px); margin: clamp(40px, 6vw, 72px) auto 0;
  display: grid; gap: clamp(28px, 4vw, 44px);
  max-width: none;
}
.strip .panel {
  background: #fff; border: var(--line) solid var(--ink);
  padding: clamp(20px, 4vw, 36px);
}
.strip .panel:nth-child(odd) { transform: rotate(-.5deg); }
.strip .panel:nth-child(even) { transform: rotate(.5deg); }
.strip .panel h2 { color: var(--red); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; font-size: 2.2rem; }
.issue-tags { width: min(100% - 2 * var(--gutter), 820px); margin: 32px auto 0; }

/* ---------- the end ---------- */

.the-end {
  padding: clamp(48px, 7vw, 90px) var(--gutter) 56px;
  text-align: center;
  font-weight: 700;
}
.the-end p { margin: 0 auto; max-width: 52ch; }
.end-mark {
  font: 400 clamp(3rem, 8vw, 5.5rem)/1 var(--display) !important; letter-spacing: .04em; text-transform: uppercase;
  color: var(--yellow); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 14px !important;
  transform: rotate(-3deg);
}

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .hero { min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "t t"
      "s s"
      "c c"
      "a p"
      "b b";
    gap: 24px 16px;
  }
  .hero-bubble { margin: 0 6% 20px; }
  .hero-burst { justify-self: center; width: min(80%, 280px); margin-top: 8px; }
  .pricebox { align-self: center; }
  .issue-burst { position: relative !important; right: auto; top: auto; justify-self: end; margin-top: -10px; }
}
@media (max-width: 420px) {
  .panel-btn { font-size: 1.35rem; }
  .hero-burst span { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Scoped to :not(.fx) so the `?fx` test override can still play the motion. */
  html:not(.fx) *, html:not(.fx) *::before, html:not(.fx) *::after { animation: none !important; transition: none !important; }
  html:not(.fx) .rack-slot, html:not(.fx) .hero-lines { translate: none !important; }
}
