/* The Little Shitehawk: retro paper styles */

:root {
  --paper: #efe6d2;
  --paper-dark: #e2d5b8;
  --ink: #16130f;
  --blue: #1e8fd6;
  --blue-dark: #0f5f97;
  --red: #c8372d;
  --shadow: 6px 6px 0 var(--ink);
  --display: "Bangers", "Impact", sans-serif;
  --body: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  background-color: var(--paper);
  /* paper grain + aged edges */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .18  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at center, transparent 55%, rgba(120, 90, 40, .18) 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-dark); }

.wrap {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ---------- Top bar ---------- */

.topbar {
  border-bottom: 3px solid var(--ink);
  background: var(--paper-dark);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
}

.issue-tag {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.nav a {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  padding: .15rem .8rem;
  border: 2.5px solid transparent;
  transition: transform .15s ease, background .15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--blue);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(-2deg);
}

/* ---------- Masthead ---------- */

.masthead { padding: 1.6rem 0 0; }

.masthead-frame {
  position: relative;
  background: #fff;
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-.6deg);
}

.masthead-frame img {
  width: 100%;
  height: auto;
  filter: contrast(1.05) saturate(1.05);
}

/* tape strips */
.tape {
  position: absolute;
  width: 120px;
  height: 34px;
  background: rgba(240, 225, 170, .78);
  border-left: 2px dashed rgba(0, 0, 0, .08);
  border-right: 2px dashed rgba(0, 0, 0, .08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  z-index: 2;
}
.tape.tl { top: -16px; left: 30px; transform: rotate(-8deg); }
.tape.tr { top: -14px; right: 40px; transform: rotate(6deg); }

/* ---------- Mailing list ---------- */

.signup {
  margin: 2.4rem auto 0;
  position: relative;
  color: #fff;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.8rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.4rem;
  align-items: center;
  transform: rotate(.4deg);
  background-color: var(--blue);
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1.4px, transparent 1.6px);
  background-size: 9px 9px;
}

.signup h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 .4rem;
  letter-spacing: .03em;
  text-shadow: 3px 3px 0 var(--ink);
}

.signup p { margin: 0; }

.signup form {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 220px;
  font: inherit;
  padding: .8rem 1rem;
  border: 3px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.signup input[type="email"]:focus { box-shadow: 0 0 0 3px #fff; }

.btn {
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: .06em;
  padding: .55rem 1.4rem;
  border: 3px solid var(--ink);
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  display: inline-block;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.btn.ink { background: var(--ink); }
.btn.blue { background: var(--blue); }

.signup .thanks {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: .04em;
}

.starburst {
  position: absolute;
  top: -34px;
  right: -22px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--ink);
  background: #ffd23f;
  clip-path: polygon(50% 0, 61% 18%, 82% 8%, 80% 31%, 100% 38%, 85% 55%, 98% 74%, 76% 76%, 72% 98%, 54% 85%, 36% 100%, 30% 78%, 7% 80%, 17% 60%, 0 44%, 20% 33%, 14% 11%, 36% 18%);
  transform: rotate(12deg);
}

/* ---------- Sections ---------- */

section { padding: 3.2rem 0 1rem; }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: .04em;
  line-height: 1;
  margin: 0 0 1.4rem;
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: .25rem 1rem .1rem;
  transform: rotate(-1.5deg);
}

/* comic panel card */
.panel {
  background: #fbf6ea;
  border: 3.5px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  position: relative;
}

.panel h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: .04em;
  line-height: 1.05;
  margin: 0 0 .5rem;
}

.caption {
  display: inline-block;
  background: #ffd23f;
  border: 2.5px solid var(--ink);
  padding: .1rem .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}

/* ---------- Front page: story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.story-grid > .panel:nth-child(2) { transform: rotate(1deg); }

.speech {
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 40px;
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}
.speech::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 50px;
  width: 30px;
  height: 30px;
  background: #fff;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: skewX(35deg) rotate(10deg);
}

/* placeholder art panel */
.art {
  aspect-ratio: 3 / 4;
  border: 3px solid var(--ink);
  background:
    radial-gradient(var(--blue) 2px, transparent 2.4px) 0 0 / 12px 12px,
    var(--paper-dark);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .05em;
  color: var(--ink);
  text-align: center;
  padding: 1rem;
}
.art span {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  padding: .3rem .8rem;
}

/* ---------- Issues strip ---------- */

.issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.issues .panel:nth-child(odd) { transform: rotate(-1deg); }
.issues .panel:nth-child(even) { transform: rotate(1.2deg); }

/* ---------- Shop ---------- */

.shop-intro { max-width: 720px; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1.6rem;
}

.product {
  display: flex;
  flex-direction: column;
  transition: transform .18s ease;
}

.product:nth-child(3n+1) { transform: rotate(-.8deg); }
.product:nth-child(3n+2) { transform: rotate(.6deg); }
.product:nth-child(3n) { transform: rotate(-.3deg); }
.product:hover { transform: rotate(0) translateY(-4px); }

.product .art { aspect-ratio: 1 / 1; margin-bottom: 1rem; }

.product .price {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .04em;
  margin: auto 0 .8rem;
  padding-top: .6rem;
}

.product .btn { align-self: flex-start; }

.sold-out .btn {
  background: #8c8476;
  cursor: not-allowed;
}

.basket-bar {
  position: sticky;
  bottom: 1rem;
  margin-top: 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
  padding: .8rem 1.2rem;
}

.basket-bar strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: .05em;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 4rem;
  border-top: 3px solid var(--ink);
  background: var(--paper-dark);
  padding: 1.6rem 0;
  font-size: .9rem;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Annual details ---------- */

/* clip-out coupon around the signup */
.coupon-wrap {
  margin-top: 2.6rem;
  padding: 14px;
  border: 3px dashed var(--ink);
  position: relative;
}
.coupon-wrap .signup { margin: 0; }
.cut-here {
  position: absolute;
  top: -.85rem;
  left: 1.6rem;
  background: var(--paper);
  padding: 0 .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}

/* printed ink misregistration on display type */
.misreg {
  text-shadow: -2px 0 0 rgba(30, 143, 214, .55), 2px 1px 0 rgba(200, 55, 45, .45);
}

/* mail-order catalogue ad */
.mailorder {
  border: 4px double var(--ink);
  padding: 1.4rem 1.6rem;
  background: #fbf6ea;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
}
.mailorder .big {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: .9;
  color: var(--red);
}
.mailorder p { margin: 0; }

.product .ref {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  opacity: .7;
}

.basket-bar[hidden] { display: none; }

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

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

@media (max-width: 820px) {
  .mailorder { grid-template-columns: 1fr; }
}

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .signup { grid-template-columns: 1fr; padding: 1.4rem; }
  .story-grid { grid-template-columns: 1fr; }
  .issues { grid-template-columns: 1fr; }
  .starburst { width: 82px; height: 82px; font-size: .95rem; right: -8px; top: -30px; }
  .topbar .wrap { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   Pass 2: cover mock-up, strip, watch, socials
   ========================================================= */

:root {
  --body: "Bitter", Georgia, serif;
  --letter: "Comic Neue", "Comic Sans MS", sans-serif;
  --yellow: #ffd23f;
}

::selection { background: var(--yellow); color: var(--ink); }
html { scrollbar-color: var(--ink) var(--paper-dark); caret-color: var(--red); }
a { text-underline-offset: .18em; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 1rem; flex-wrap: wrap; font-weight: 700; }
.socials a { color: var(--ink); }
.socials a:hover { color: var(--red); }

/* ---------- Comic cover (scales to any width) ---------- */
.cover {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 210 / 297;
  background: #f7f0de;
  border: 3px solid var(--ink);
  box-shadow: 8px 10px 18px rgba(40, 28, 10, .35);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  color: var(--ink);
  font-family: var(--body);
}
.cover-strap {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 4.6cqw;
  letter-spacing: .06em;
  text-align: center;
  padding: .8cqw 2cqw .4cqw;
}
.cover-mast img { width: 100%; height: auto; border-bottom: .8cqw solid var(--ink); }
.cover-body {
  position: relative;
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 0;
}
.cover-lines {
  list-style: none;
  margin: 0;
  padding: 2.4cqw 2cqw;
  display: flex;
  flex-direction: column;
  gap: 2cqw;
  background: var(--blue);
  border-right: .8cqw solid var(--ink);
}
.cover-lines li {
  background: #f7f0de;
  border: .6cqw solid var(--ink);
  padding: 1.4cqw 1.6cqw;
  font-family: var(--display);
  font-size: 4.4cqw;
  line-height: 1;
  letter-spacing: .03em;
}
.cover-lines li:nth-child(2) { background: var(--yellow); transform: rotate(-2deg); }
.cover-lines li:nth-child(3) { background: var(--red); color: #fff; }
.cover-lines small { display: block; font-family: var(--body); font-size: 2.6cqw; letter-spacing: 0; margin-top: .6cqw; }
.cover-art { position: relative; overflow: hidden; background: #fff; }
.cover-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% 14%;
  transform: scale(1.9);
  transform-origin: 82% 18%;
}
.cover-balloon {
  position: absolute;
  left: 6cqw;
  bottom: 9cqw;
  right: 4cqw;
  background: #fff;
  border: .7cqw solid var(--ink);
  border-radius: 50%;
  padding: 4cqw 4cqw;
  font-family: var(--letter);
  font-weight: 700;
  font-size: 4.6cqw;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}
.cover-balloon::after {
  content: "";
  position: absolute;
  top: -5cqw;
  right: 12cqw;
  border: 3cqw solid transparent;
  border-bottom: 5cqw solid var(--ink);
  border-top: 0;
  transform: skewX(-25deg);
}
.cover-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2cqw;
  padding: 1.6cqw 2.4cqw;
  border-top: .8cqw solid var(--ink);
  background: var(--yellow);
}
.cover-splash {
  font-family: var(--display);
  font-size: 5.6cqw;
  line-height: .95;
  letter-spacing: .02em;
}
.cover-price {
  background: var(--red);
  color: #fff;
  border: .6cqw solid var(--ink);
  font-family: var(--display);
  font-size: 4.8cqw;
  line-height: 1;
  padding: 1cqw 1.6cqw .6cqw;
  text-align: center;
}
.cover-price small { display: block; font-size: 2.8cqw; }
.barcode {
  width: 16cqw;
  height: 10cqw;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 .5cqw, transparent .5cqw .8cqw, var(--ink) .8cqw 1.6cqw, transparent 1.6cqw 2cqw, var(--ink) 2cqw 2.3cqw, transparent 2.3cqw 3.1cqw) #fff;
  border: .6cqw solid #fff;
  outline: .3cqw solid var(--ink);
}
.cover-stamp {
  position: absolute;
  top: 34%;
  right: -4cqw;
  transform: rotate(14deg);
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 7cqw;
  letter-spacing: .06em;
  padding: 1cqw 8cqw .6cqw;
  border-block: .6cqw solid var(--ink);
  z-index: 3;
}

/* ---------- Hero layout: cover beside signup ---------- */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 2.6rem;
  align-items: start;
  margin-top: 2.6rem;
}
.lead .coupon-wrap { margin-top: 0; }
.lead .cover { transform: rotate(2deg); }
.lead-copy p { max-width: 60ch; }
.lead-copy .btn { margin-top: .6rem; }

/* ---------- Comic strip ---------- */
.strip-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: .03em;
  margin: 0 0 1rem;
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--ink);
  border: 6px solid var(--ink);
}
.frame {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbf6ea;
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame .narr {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 85%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-width: 0 3px 3px 0;
  padding: 2.4cqw 3.4cqw;
  font-family: var(--letter);
  font-weight: 700;
  font-size: max(13px, 5.2cqw);
  line-height: 1.15;
  text-transform: uppercase;
  z-index: 2;
}
.frame .say {
  position: absolute;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  padding: 5cqw 6cqw;
  font-family: var(--letter);
  font-weight: 700;
  font-size: max(13px, 6cqw);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
}
.frame .sfx {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 26cqw;
  color: var(--yellow);
  -webkit-text-stroke: 1.4cqw var(--ink);
  paint-order: stroke fill;
  text-shadow: 2cqw 2cqw 0 var(--ink);
  transform: rotate(-10deg);
  z-index: 2;
}
.frame.dots {
  background:
    radial-gradient(rgba(22, 19, 15, .22) 1.6px, transparent 2px) 0 0 / 10px 10px,
    var(--blue);
}
.frame.red {
  background:
    radial-gradient(rgba(22, 19, 15, .2) 1.6px, transparent 2px) 0 0 / 10px 10px,
    var(--red);
}
.frame.pale { background: #fbf6ea; }

.strip-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.strip-more h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  letter-spacing: .03em;
  margin: 0 0 .3rem;
  border-bottom: 3px solid var(--ink);
  padding-bottom: .3rem;
}
.strip-more p { margin: 0; }
.strip-more .pg { font-weight: 700; color: var(--red); }

/* ---------- Watch ---------- */
.watch {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 3rem;
  align-items: center;
}
.phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 10px solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 8px 10px 20px rgba(40, 28, 10, .35);
}
.reel { position: absolute; inset: 0; }
.reel .frame {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  opacity: 0;
  animation: reel 12s infinite;
}
.reel .frame:nth-child(2) { animation-delay: 3s; }
.reel .frame:nth-child(3) { animation-delay: 6s; }
.reel .frame:nth-child(4) { animation-delay: 9s; }
@keyframes reel {
  0% { opacity: 0; transform: scale(1.08); clip-path: inset(0 0 100% 0); }
  4% { opacity: 1; clip-path: inset(0 0 0 0); }
  25% { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }
  29%, 100% { opacity: 0; transform: scale(1); }
}
.platforms { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .9rem; }
.platforms a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .8rem 1.1rem;
  border: 3px solid var(--ink);
  background: #fbf6ea;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.platforms a:hover { background: var(--yellow); transform: translateX(4px); }
.platforms strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; letter-spacing: .04em; }

/* ---------- Shop thumbs ---------- */
.thumb { margin-bottom: 1rem; }
.thumb .cover { box-shadow: none; }
.thumb-tee, .thumb-badge, .thumb-print {
  container-type: inline-size;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.thumb-tee { background: var(--ink); }
.thumb-tee .tee-print {
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1.4cqw solid var(--paper);
  position: relative;
}
.thumb-tee .tee-print img { width: 100%; height: 100%; object-fit: cover; object-position: 90% 18%; transform: scale(2.2); transform-origin: 84% 20%; }
.thumb-tee .tee-text {
  position: absolute;
  bottom: 6cqw;
  font-family: var(--display);
  font-size: 9cqw;
  letter-spacing: .05em;
  color: var(--yellow);
}
.thumb-print { background: #fff; padding: 8cqw; }
.thumb-print img { border: 1cqw solid var(--ink); box-shadow: 2cqw 2cqw 0 rgba(0,0,0,.2); }
.thumb-badge { background: var(--paper-dark); }
.thumb-badge .badge {
  width: 66%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 3cqw solid #c9a227;
  outline: 1cqw solid var(--ink);
  overflow: hidden;
  background: var(--blue);
}
.thumb-badge .badge img { width: 100%; height: 100%; object-fit: cover; object-position: 96% 20%; transform: scale(2.8); transform-origin: 88% 22%; }
.product .ref { margin-top: .2rem; }

@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; }
  .lead .cover { max-width: 360px; margin: 0 auto; }
  .watch { grid-template-columns: 1fr; }
  .phone { max-width: 280px; margin: 0 auto; }
  .strip-more { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .reel .frame { animation: none; }
  .reel .frame:first-child { opacity: 1; }
}

/* ---------- Cover variants + greetings cards ---------- */
.cover { --accent: var(--blue); }
.cover-lines { background: var(--accent); }
.cover.v2 { --accent: var(--red); }
.cover.v2 .cover-art img { object-position: 70% 10%; transform: scale(2.4); transform-origin: 72% 16%; }
.cover.v3 { --accent: #2f8f4e; }
.cover.v3 .cover-art img { object-position: 98% 92%; transform: scale(2.6); transform-origin: 92% 86%; }
.cover.v4 { --accent: var(--yellow); }
.cover.v4 .cover-art img { object-position: 60% 20%; transform: scale(1.6) scaleX(-1); transform-origin: 60% 20%; }

.section-sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: .03em;
  margin: 3rem 0 0;
  border-bottom: 4px double var(--ink);
  padding-bottom: .3rem;
}

.gcard {
  container-type: inline-size;
  aspect-ratio: 1 / 1;
  border: 3px solid var(--ink);
  background: var(--paper-dark);
  display: grid;
  place-items: center;
}
.gcard .card-face {
  width: 64%;
  aspect-ratio: 5 / 7;
  background: #fbf6ea;
  border: .8cqw solid var(--ink);
  box-shadow: 3cqw 3cqw 4cqw rgba(40, 28, 10, .3);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  transform: rotate(-3deg);
}
.gcard .card-art { position: relative; overflow: hidden; background: var(--blue); }
.gcard .card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 88% 16%; transform: scale(2.4); transform-origin: 84% 18%; }
.gcard .card-line {
  font-family: var(--display);
  font-size: 7cqw;
  line-height: 1;
  letter-spacing: .03em;
  text-align: center;
  padding: 2.4cqw 2cqw 1.6cqw;
  border-top: .8cqw solid var(--ink);
}
.gcard.c2 .card-art { background: var(--red); }
.gcard.c2 .card-art img { object-position: 70% 10%; transform: scale(2.6); transform-origin: 72% 14%; }
.gcard.c3 .card-art { background: #2f8f4e; }
.gcard.c3 .card-face { transform: rotate(2deg); }
.gcard.c4 .card-art { background: var(--yellow); }
.gcard.c4 .card-art img { transform: scale(2.4) scaleX(-1); }
.lead .signup { grid-template-columns: 1fr; gap: 1rem; }

/* precise crops of the banner art: --x, --y = source px of crop top-left, --cw = crop width in source px */
.crop { position: absolute; inset: 0; overflow: hidden; }
.crop.flip { transform: scaleX(-1); }
.crop img {
  position: absolute;
  top: 0; left: 0;
  inset: auto;
  max-width: none;
  height: auto;
  object-fit: fill;
  transform: none;
  width: calc(2000 / var(--cw) * 100%);
  margin-left: calc(var(--x) / var(--cw) * -100%);
  margin-top: calc(var(--y) / var(--cw) * -100%);
}

/* =========================================================
   Motion pass. Content stays visible without JS:
   hidden states only apply under html.js.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 1. Masthead slaps onto the page, tape lands after */
@keyframes slap {
  from { opacity: 0; transform: translateY(-28px) rotate(-4deg) scale(1.04); }
  to   { opacity: 1; transform: rotate(-.6deg); }
}
@keyframes tape-tl { from { opacity: 0; transform: translateY(-14px) rotate(-20deg) scale(1.2); } to { opacity: 1; transform: rotate(-8deg); } }
@keyframes tape-tr { from { opacity: 0; transform: translateY(-14px) rotate(18deg) scale(1.2); } to { opacity: 1; transform: rotate(6deg); } }
.js .masthead-frame { animation: slap 620ms var(--ease-out) both; }
.js .tape.tl { animation: tape-tl 360ms var(--ease-pop) 520ms both; }
.js .tape.tr { animation: tape-tr 360ms var(--ease-pop) 640ms both; }

/* 2. Cover drops in beside the coupon */
@keyframes cover-in {
  from { opacity: 0; transform: translateY(40px) rotate(9deg); }
  to   { opacity: 1; transform: rotate(2deg); }
}
.js .lead .cover { animation: cover-in 700ms var(--ease-out) 300ms both; }
@media (hover: hover) and (pointer: fine) {
  .lead .cover, .thumb .cover { transition: transform 260ms var(--ease-out); }
  .lead .cover:hover { transform: rotate(0) translateY(-6px) scale(1.015); }
  .lead .cover:hover .cover-balloon { animation: wobble 420ms var(--ease-out); }
}
@keyframes wobble { 30% { transform: rotate(-3deg) scale(1.05); } 60% { transform: rotate(2deg); } }

/* 3. Starburst spins in once */
@keyframes burst-in { from { opacity: 0; transform: rotate(-160deg) scale(.4); } to { opacity: 1; transform: rotate(12deg) scale(1); } }
.js .signup .starburst { animation: burst-in 520ms var(--ease-pop) 760ms both; }

/* 4. Scroll reveals: generic, plus a print-in for strip panels */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 500ms var(--ease-out), translate 600ms var(--ease-out), transform 180ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; translate: 0 0; transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }

/* section title: ink slides into registration */
.js .section-title[data-reveal] { translate: -30px 0; }
.js .section-title[data-reveal].in { translate: 0 0; animation: register 700ms var(--ease-out) both; }
@keyframes register {
  from { text-shadow: -10px 0 0 rgba(30,143,214,.7), 10px 3px 0 rgba(200,55,45,.6); }
  to   { text-shadow: -2px 0 0 rgba(30,143,214,.55), 2px 1px 0 rgba(200,55,45,.45); }
}

/* strip panels print in one by one, then balloons pop from their tails */
.js .strip .frame {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: scale(.96);
  transition: opacity 260ms var(--ease-out), clip-path 520ms var(--ease-out), transform 520ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .strip.in .frame { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
.js .strip .say, .js .strip .narr, .js .strip .sfx {
  opacity: 0;
  transform: scale(.7);
  transition: opacity 200ms var(--ease-out), transform 360ms var(--ease-pop);
  transition-delay: calc(var(--d, 0ms) + 380ms);
}
.js .strip .narr { transform: translateX(-12px); transform-origin: left top; }
.js .strip .sfx { transform: rotate(-30deg) scale(.3); }
.js .strip.in .say, .js .strip.in .narr { opacity: 1; transform: none; }
.js .strip.in .sfx { opacity: 1; transform: rotate(-10deg); }
.js .strip.in .sfx { animation: shake 400ms var(--ease-out) calc(var(--d, 0ms) + 760ms); }
@keyframes shake { 20% { translate: -6px 2px; } 40% { translate: 5px -3px; } 60% { translate: -3px 1px; } 80% { translate: 2px 0; } }

/* 5. Mailing list success: rubber stamp slam */
@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.8) rotate(-12deg); }
  60%  { opacity: 1; transform: scale(.94) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(-5deg); }
}
.signup .thanks {
  display: inline-block;
  margin: 0;
  padding: .3rem 1rem .1rem;
  border: 4px solid #fff;
  color: #fff;
  text-transform: uppercase;
  animation: stamp 480ms var(--ease-pop) both;
}

/* 6. Basket: bar rises from bottom edge, count bumps, button stamps */
.basket-bar { transition: transform 320ms var(--ease-out), opacity 220ms var(--ease-out); }
.basket-bar.hiding { transform: translateY(140%); opacity: 0; }
@keyframes bump { 40% { transform: scale(1.12) rotate(-2deg); } }
.basket-bar strong.bump { display: inline-block; animation: bump 300ms var(--ease-pop); }
.btn.added { background: #2f8f4e; animation: bump 300ms var(--ease-pop); }

/* 7. Buttons: press feedback */
.btn:active { transition-duration: 100ms; }

@media (prefers-reduced-motion: reduce) {
  .js .masthead-frame, .js .tape, .js .lead .cover, .js .signup .starburst,
  .js .section-title[data-reveal].in, .signup .thanks, .js .strip.in .sfx { animation: none !important; }
  .js .strip .frame, .js .strip .say, .js .strip .narr, .js .strip .sfx {
    transform: none !important; clip-path: none !important; transition: opacity 300ms linear !important;
  }
}
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { translate: none !important; } }
.signup .thanks { justify-self: start; width: fit-content; }
