:root {
  --ink: #111;
  --paper: #FFF8E7;
  --sun: #FFD23F;
  --coral: #FF4F5E;
  --sea: #2EC4B6;
  --deep: #0B6E78;
  --white: #fff;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 18px;
  --display: "Luckiest Guy", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  /* crayon-dot paper texture */
  background-image: radial-gradient(rgba(17, 17, 17, .07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}

h2 { font-size: clamp(2rem, 5vw, 3.25rem); text-align: center; }
h3 { font-size: 1.5rem; }

section { padding: clamp(3rem, 8vw, 6rem) 16px; }

.section-sub {
  text-align: center;
  max-width: 34rem;
  margin: -.5rem auto 2.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--ink);
  background: var(--sun);
  border: 4px solid var(--ink);
  border-radius: 999px;
  padding: .7em 1.4em .55em;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover, .btn:focus-visible {
  transform: translate(-2px, -2px) rotate(-1.5deg);
  box-shadow: 7px 7px 0 var(--ink);
  background: var(--coral);
  color: var(--white);
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.btn-big { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.btn-small { font-size: 1rem; padding: .55em 1em .4em; border-width: 3px; }
.btn-light { background: var(--white); }

:focus-visible { outline: 4px dashed var(--coral); outline-offset: 4px; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 16px;
  background: var(--sea);
  border-bottom: 4px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--white);
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
.brand img { transition: transform .4s ease; }
.brand:hover img { transform: rotate(-20deg) scale(1.1); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1180px;
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3em .9em;
  font-weight: 900;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-2deg);
}

.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); }

.warm {
  color: var(--coral);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--sun);
  display: inline-block;
  animation: wobble 2.8s ease-in-out infinite;
}

.lede { font-size: 1.25rem; max-width: 32rem; margin: 0 0 2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.price-note { font-weight: 800; }
.price-note b { color: var(--coral); font-size: 1.3em; }

.hero-art {
  position: relative;
  display: block;
  border: 5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2deg);
  transition: transform .2s ease;
}
.hero-art img { border-radius: 12px; }
.hero-art:hover { transform: rotate(0deg) scale(1.02); }

.sticker {
  position: absolute;
  top: -34px;
  right: -26px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  padding-top: .4rem;
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: .9;
  color: var(--white);
  text-align: center;
  text-shadow: 2px 2px 0 var(--ink);
  background: var(--coral);
  border: 4px solid var(--ink);
  /* starburst */
  clip-path: polygon(50% 0%, 61% 12%, 77% 6%, 80% 22%, 96% 26%, 89% 41%, 100% 54%, 86% 63%, 89% 80%, 73% 81%, 65% 96%, 51% 87%, 37% 98%, 29% 82%, 12% 84%, 13% 67%, 0% 57%, 10% 43%, 2% 28%, 18% 22%, 21% 6%, 38% 11%);
  filter: drop-shadow(0 0 0 var(--ink));
  animation: spin-pulse 4s ease-in-out infinite;
}
.sticker small { font-size: 1rem; display: block; }

.tag {
  position: absolute;
  left: 18px;
  bottom: -20px;
  padding: .25em .8em .1em;
  font-family: var(--display);
  font-size: 1.1rem;
  background: var(--sun);
  border: 3px solid var(--ink);
  border-radius: 10px;
  transform: rotate(-4deg);
}

/* ---------- Marquee ---------- */

.marquee {
  display: block;
  overflow: hidden;
  text-decoration: none;
  background: var(--coral);
  color: var(--white);
  border-block: 4px solid var(--ink);
  transform: rotate(-1.5deg);
  margin: 1rem -20px;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  padding: .8rem 0 .6rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 2px 2px 0 var(--ink);
  animation: marquee 22s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Peek inside ---------- */

.peek { max-width: 1180px; margin: 0 auto; }

.pages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.page-card img {
  border: 3px solid var(--ink);
  border-radius: 8px;
  aspect-ratio: 600 / 776;
  object-fit: cover;
}
.page-card.tilt-l { transform: rotate(-2.5deg); }
.page-card.tilt-r { transform: rotate(2.5deg); }
.page-card:hover, .page-card:focus-visible {
  transform: rotate(0) translateY(-8px) scale(1.03);
  box-shadow: 10px 14px 0 var(--ink);
}
.page-num {
  position: absolute;
  top: -16px;
  left: -12px;
  z-index: 1;
  padding: .2em .7em .05em;
  font-family: var(--display);
  background: var(--sea);
  color: var(--white);
  text-shadow: 1px 1px 0 var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  transform: rotate(-6deg);
}
.page-title {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 1rem 0 .35rem;
  line-height: 1.1;
}
.page-cta { font-weight: 900; color: var(--deep); }
.page-card:hover .page-cta { color: var(--coral); }

/* ---------- Why $3.99 ---------- */

.cheap {
  text-align: center;
  background: var(--sun);
  border-block: 4px solid var(--ink);
}
.cheap h2 { max-width: 46rem; margin-inline: auto; }

.squiggle {
  color: var(--coral);
  text-decoration: underline wavy var(--sea);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 2.5rem auto 3rem;
}
.reason {
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
}
.reason:nth-child(2) { transform: translateY(14px) rotate(1deg); }
.reason p { margin: 0; }
.emoji { font-size: 3rem; line-height: 1; margin-bottom: .75rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--deep);
  text-align: center;
  /* wave pattern */
  background-image:
    radial-gradient(circle at 50% 120%, transparent 18px, rgba(255,255,255,.08) 19px, rgba(255,255,255,.08) 24px, transparent 25px);
  background-size: 60px 30px;
}
.cta-band a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
  color: var(--white);
}
.cta-line {
  font-family: var(--display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  text-shadow: 3px 3px 0 var(--ink);
}
.cta-line.big {
  font-size: clamp(2.75rem, 10vw, 6rem);
  color: var(--sun);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 1.5rem;
  transform: rotate(-2deg);
}
.cta-band a:hover .btn {
  transform: translate(-2px, -2px) rotate(-1.5deg);
  box-shadow: 7px 7px 0 var(--ink);
  background: var(--coral);
  color: var(--white);
}

/* ---------- About ---------- */

.about-card {
  max-width: 44rem;
  margin: 0 auto;
  background: var(--white);
  border: 4px dashed var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}
.about-card a { color: var(--deep); }
.about-card a:hover { color: var(--coral); }
.about-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2rem;
  font-weight: 900;
  margin-bottom: 0;
}

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

.footer {
  text-align: center;
  padding: 2rem 16px 3rem;
  font-size: .95rem;
  border-top: 4px solid var(--ink);
  background: var(--sea);
  color: var(--ink);
}
.footer p { margin: .25rem 0; }

/* ---------- Animations ---------- */

@keyframes marquee { to { transform: translateX(-50%); } }

@keyframes wobble {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg) translateY(-3px); }
}

@keyframes spin-pulse {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { max-width: 560px; margin: 1rem auto 0; }
  .pages, .reasons { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .reason:nth-child(2) { transform: rotate(1deg); }
}

@media (max-width: 480px) {
  body { font-size: 1.05rem; }
  .brand span { font-size: 1.1rem; }
  .kicker { font-size: .75rem; letter-spacing: .03em; }
  .sticker { width: 100px; height: 100px; font-size: 1.6rem; top: -26px; right: -10px; }
}
