/* Pickle the Classroom Guinea Pig — picklethebook.com
   House style: no build, no frameworks, no external requests. Mobile first.
   Design concept: a picture-book spread of classroom moments on warm cream paper.
   Signature: Pickle's pawprint + pink-glitter trail wandering down the page.
   Type roles (strict): Chewy = hero title + section headings ONLY.
   Literata 700 = all interface text. Caveat = small handwritten asides. */

/* ---------- Fonts (self-hosted; keeps the "no tracking" promise honest) ---------- */
@font-face {
  font-family: 'Chewy';
  src: url('../assets/fonts/chewy-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('../assets/fonts/literata-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('../assets/fonts/literata-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('../assets/fonts/literata-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../assets/fonts/caveat-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #fff6e9;        /* base page: warm paper cream */
  --apricot: #ffe3a1;      /* Books band */
  --chalk-green: #6f8b77;  /* Meet the Class panel (muted, warm) */
  --chalk-text: #fdf6e5;   /* light text on the chalkboard */
  --cork: #d3a878;         /* Art Wall corkboard */
  --paper: #fffdf6;        /* paper sheets / cards */
  --ink: #4a332a;          /* pencil brown */
  --tutu: #ee6fa5;         /* tutu pink */
  --tutu-deep: #d94e8c;
  --teal: #2e8b87;         /* classroom door teal */
  --red: #8c3a2f;          /* storybook cover-title red */
  --gold: #f2a93b;         /* gold star */
  --shadow: 0 3px 12px rgba(74, 51, 42, 0.16);
  --display: 'Chewy', 'Comic Sans MS', cursive;
  --body: 'Literata', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}

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

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

body {
  font-family: var(--body);
  font-size: 1.06rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

a:focus-visible, button:focus-visible {
  outline: 3px dashed var(--tutu-deep);
  outline-offset: 3px;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--red);
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.pink { color: var(--tutu); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1rem;
  background: rgba(255, 253, 246, 0.95);
  border-bottom: 2px solid var(--apricot);
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
}
.nav a:hover { color: var(--tutu-deep); }
.nav-home { font-size: 1.05rem; color: var(--red); display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-logo { width: 1.7rem; height: 1.7rem; border-radius: 50%; box-shadow: 0 1px 3px rgba(74, 51, 42, 0.3); }
.nav-links { display: flex; gap: 0.2rem; }

/* ---------- Hero: you land inside the book ---------- */
.hero { background: var(--cream); }

.hero-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: min(58vh, 430px) 1.25rem 4.5rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='46' viewBox='0 0 300 46'%3E%3Cpath d='M0 3h300' stroke='%238c6b4f' stroke-width='2.5'/%3E%3Cpath fill='%23d95d7e' d='M8 4h44l-22 38z'/%3E%3Cpath fill='%23f2a93b' d='M68 4h44l-22 38z'/%3E%3Cpath fill='%232e8b87' d='M128 4h44l-22 38z'/%3E%3Cpath fill='%238e6fb8' d='M188 4h44l-22 38z'/%3E%3Cpath fill='%23e45f4f' d='M248 4h44l-22 38z'/%3E%3C/svg%3E") repeat-x top left / 300px 46px,
    url('../assets/hero-scene.jpg') center 30% / cover no-repeat,
    var(--cream);
}
.hero-scene::after {
  /* soft fade into the cream page so the scene feels like an open book page */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(transparent, var(--cream));
  pointer-events: none;
}

.hero-plate {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: center;
  background: rgba(255, 253, 246, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(40, 25, 18, 0.35);
  padding: 1.5rem 1.6rem 1.7rem;
  transform: rotate(-1deg);
}
/* wide screens: plate steps aside so the twirling Pickle in the scene stays visible */
@media (min-width: 900px) {
  .hero-scene { justify-content: flex-start; padding-left: 7vw; }
  .hero-plate { max-width: 470px; }
  .hero-sticker-row { margin-top: -100px; }
}

.hero-eyebrow {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--teal);
  transform: rotate(-2deg);
  margin-bottom: 0.2rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 11vw, 4.2rem);
  color: var(--red);
  line-height: 1.05;
  margin-bottom: 0.7rem;
}

.hero-tag { font-size: 1.04rem; margin-bottom: 1.2rem; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* drifting glitter in the scene (spawned by js) */
.hero-drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.drift {
  position: absolute;
  color: #ffd9ea;
  text-shadow: 0 0 6px rgba(255, 182, 217, 0.9);
  animation: drift-up var(--t, 7s) linear infinite, drift-twinkle 2.2s ease-in-out infinite;
  opacity: 0;
}
@keyframes drift-up {
  from { transform: translateY(30px) rotate(0deg); }
  to   { transform: translateY(-60px) rotate(40deg); }
}
@keyframes drift-twinkle {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.9; }
}

/* Pickle as a die-cut sticker overlapping the scene's edge */
.hero-sticker-row {
  text-align: center;
  margin-top: -86px;
  position: relative;
  z-index: 2;
  padding-bottom: 0.6rem;
}
.hero-sticker {
  position: relative;
  display: inline-block;
  width: min(46vw, 210px);
  border: none;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(74, 51, 42, 0.32);
  transform: rotate(-4deg);
  cursor: pointer;
  transition: transform 0.2s ease;
  overflow: visible;
}
.hero-sticker:hover { transform: rotate(-1deg) scale(1.04); }
.hero-sticker img { border-radius: 50%; }

/* "wheek!" speech bubble pops while she twirls */
.wheek {
  position: absolute;
  top: -16px;
  right: -34px;
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--tutu-deep);
  background: var(--paper);
  padding: 0.1rem 0.65rem 0.15rem;
  border-radius: 999px 999px 999px 4px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: scale(0.5) rotate(-6deg);
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.hero-sticker.twirling .wheek, .hero-sticker.twirl-soft .wheek {
  opacity: 1;
  transform: scale(1) rotate(6deg);
}

/* THE TWIRL: squash-and-mirror pirouette (flipbook frames pending approval) */
.hero-sticker.twirling img {
  animation: pirouette 0.8s linear var(--spins, 1);
}
.hero-sticker.twirling {
  animation: hop 0.8s ease-in-out var(--spins, 1);
}
@keyframes pirouette {
  0%   { transform: scaleX(1); }
  25%  { transform: scaleX(0.08); }
  50%  { transform: scaleX(-1); }
  75%  { transform: scaleX(0.08); }
  100% { transform: scaleX(1); }
}
@keyframes hop {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-4deg) translateY(-12px); }
}
/* reduced-motion tap feedback: a soft pulse, no spin */
.hero-sticker.twirl-soft { animation: soft-pulse 0.5s ease-in-out 1; }
@keyframes soft-pulse {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  50%      { transform: rotate(-4deg) scale(1.04); }
}

/* glitter burst particles (spawned by js) */
.glitter {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  animation: glit 0.9s ease-out forwards;
}
.glitter.spark { border-radius: 1px; transform: rotate(45deg); }
@keyframes glit {
  0%   { translate: 0 0; scale: 1; opacity: 1; }
  100% { translate: var(--dx, 0) var(--dy, -70px); scale: 0.3; opacity: 0; }
}
.glitter.still { animation: glit-still 0.9s ease-out forwards; }
@keyframes glit-still {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

.hero-hint {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--tutu-deep);
  transform: rotate(1.5deg);
  margin: 0.6rem 0 1.1rem;
}

.hero-tag { font-size: 1.08rem; margin-bottom: 1.6rem; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- Activities page ---------- */
.page-head {
  text-align: center;
  padding: 2.8rem 1.25rem 2.4rem;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.page-head .section-intro { margin: 0 auto; }

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  max-width: 900px;
}
.sheet-card {
  background: #fff;
  padding: 0.7rem;
  border-radius: 4px;
  box-shadow: 0 5px 16px rgba(74, 51, 42, 0.28);
  transform: rotate(-1deg);
}
.sheet-card:nth-child(2n) { transform: rotate(1deg); }
.sheet-card img { border-radius: 2px; }
.sheet-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.3rem 0.4rem;
}
.sheet-from {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--teal);
}

.find-layout {
  display: grid;
  gap: 1.8rem;
  max-width: 960px;
}
@media (min-width: 820px) {
  .find-layout { grid-template-columns: 300px 1fr; align-items: start; }
}
.find-list {
  list-style: none;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
  transform: rotate(-0.8deg);
}
.find-list li { margin-bottom: 0.55rem; }
.find-list label { display: flex; gap: 0.6rem; align-items: baseline; cursor: pointer; }
.find-list input[type="checkbox"] {
  width: 1.15em;
  height: 1.15em;
  accent-color: var(--tutu);
  flex: none;
  transform: translateY(2px);
}
.find-list input[type="checkbox"]:checked + strong { color: var(--tutu-deep); }
.find-scene {
  background: #fff;
  padding: 0.7rem 0.7rem 0.3rem;
  border-radius: 4px;
  box-shadow: 0 5px 16px rgba(30, 40, 33, 0.35);
  transform: rotate(0.6deg);
}
.find-scene img { border-radius: 2px; }
.find-hint {
  font-family: var(--hand);
  font-size: 1.3rem;
  text-align: center;
  color: var(--teal);
  padding: 0.35rem 0 0.2rem;
}
.find-footer {
  text-align: center;
  color: var(--chalk-text);
  margin-top: 1.8rem;
}
.footer a { color: var(--tutu-deep); font-weight: 700; }

/* ---------- Pawprint + glitter trail (series-bible motif) ---------- */
.paw-trail {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.6rem;
  width: fit-content;            /* fixed content width: rotation can't overflow the page */
  margin: 0 auto;
  padding: 1.4rem 0 1.1rem;
  transform: rotate(2deg);
}
.trail-left { transform: rotate(-2deg); }
.paw {
  width: 26px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='30' viewBox='0 0 28 30'%3E%3Cg fill='%23ee6fa5'%3E%3Cellipse cx='14' cy='21' rx='7' ry='6'/%3E%3Ccircle cx='4.5' cy='12' r='3'/%3E%3Ccircle cx='11' cy='7.5' r='3'/%3E%3Ccircle cx='17' cy='7.5' r='3'/%3E%3Ccircle cx='23.5' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.55;
}
.paw.p1 { transform: rotate(14deg)  translateY(2px);  opacity: 0.35; }
.paw.p2 { transform: rotate(-10deg) translateY(-6px); opacity: 0.45; }
.paw.p3 { transform: rotate(12deg)  translateY(2px); }
.paw.p4 { transform: rotate(-8deg)  translateY(-7px); opacity: 0.65; }
.paw.p5 { transform: rotate(15deg)  translateY(1px);  opacity: 0.8; }
.paw-trail::before, .paw-trail::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.8rem;
  align-self: center;
}
.paw-trail::after { content: "✦ ✦"; font-size: 0.65rem; color: var(--tutu-deep); }

/* ---------- Sections & color bands ---------- */
.section {
  padding: 3rem 1.25rem 3.4rem;
}
.section > * { max-width: 1060px; margin-left: auto; margin-right: auto; }

.section-intro {
  text-align: center;
  max-width: 600px;
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

/* in-content links */
.section a:not(.btn), .art-invite a:not(.btn) {
  color: var(--tutu-deep);
  font-weight: 700;
  text-decoration-color: var(--tutu);
  text-underline-offset: 2px;
}
.band-green a:not(.btn) { color: #ffd1e6; text-decoration-color: #ffd1e6; }

/* A band = one section in its own wash of color, with soft wavy edges
   (masked, so any band color works). One treatment per section. */
.band {
  --wave-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 24 L0 12 Q30 0 60 12 T120 12 L120 24 Z' fill='%23000'/%3E%3C/svg%3E");
  --wave-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 0 L0 12 Q30 24 60 12 T120 12 L120 0 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--wave-top), linear-gradient(#000, #000), var(--wave-bottom);
  -webkit-mask-repeat: repeat-x, no-repeat, repeat-x;
  -webkit-mask-position: top center, center, bottom center;
  -webkit-mask-size: 120px 24px, 100% calc(100% - 46px), 120px 24px;
  mask-image: var(--wave-top), linear-gradient(#000, #000), var(--wave-bottom);
  mask-repeat: repeat-x, no-repeat, repeat-x;
  mask-position: top center, center, bottom center;
  mask-size: 120px 24px, 100% calc(100% - 46px), 120px 24px;
  padding-top: 3.6rem;
  padding-bottom: 4rem;
}
.band-apricot { background: var(--apricot); }
.band-green { background: var(--chalk-green); }
.band-green h2 { color: var(--chalk-text); }
.band-green .section-intro { color: var(--chalk-text); }
.band-cork { background: var(--cork); }
.band-cork h2 { color: #5b3a22; }

/* handwritten name-tag eyebrow, pinned */
.tag {
  position: relative;
  width: fit-content;
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--teal);
  background: var(--paper);
  padding: 0.35rem 1.1rem 0.3rem;
  border: 2px solid rgba(74, 51, 42, 0.18);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  margin-bottom: 1.1rem;
}
.tag::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9ec6, var(--tutu-deep));
  box-shadow: 0 2px 3px rgba(74, 51, 42, 0.35);
}

/* ---------- Buttons & badges (interface text: Literata 700) ---------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.68rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-pink { background: var(--tutu); color: #fff; }
.btn-pink:hover { background: var(--tutu-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-outline { background: var(--paper); color: var(--teal); border: 2px solid var(--teal); }
.btn-disabled {
  background: transparent;
  color: var(--tutu-deep);
  border: 2px dashed var(--tutu);
  box-shadow: none;
  cursor: default;
}
.btn-disabled:hover { transform: none; }

.badge {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.badge-teal { background: var(--teal); color: #fff; }
.badge-pink { background: var(--tutu); color: #fff; }
.badge-gold { background: var(--gold); color: var(--ink); }

/* ---------- Books: taped paper sheets on the apricot wash ---------- */
.books { display: grid; gap: 2.4rem; }

.book-card {
  position: relative;
  display: grid;
  gap: 1.3rem;
  background: var(--paper);
  border-radius: 6px;
  padding: 1.9rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}
.book-card:nth-child(2n) { transform: rotate(0.7deg); }
.book-card::before, .book-card::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 86px;
  height: 26px;
  background: rgba(238, 111, 165, 0.5);
  border-radius: 2px;
}
.book-card::before { left: 8%; transform: rotate(-6deg); }
.book-card::after { right: 8%; transform: rotate(5deg); background: rgba(242, 169, 59, 0.5); }

.book-cover-wrap { max-width: 250px; margin: 0 auto; width: 100%; }
.book-cover-wrap img {
  border-radius: 4px;
  box-shadow: 5px 7px 16px rgba(74, 51, 42, 0.3);
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease;
}
.book-card:hover .book-cover-wrap img { transform: rotate(0deg) scale(1.02); }

/* Book 2 tease: school-photo frame until the real cover arrives.
   Swap = replace this div with <img src="assets/book2-cover.jpg" ...>. */
.book-cover-tease {
  aspect-ratio: 640 / 989;
  background: #fff;
  border-radius: 4px;
  box-shadow: 5px 7px 16px rgba(74, 51, 42, 0.3);
  transform: rotate(-1.5deg);
  padding: 10px 10px 40px;
}
.tease-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  border-radius: 2px;
  background: linear-gradient(160deg, #52719f 0%, #3b5685 55%, #2e4568 100%);
  padding: 1rem;
}
.tease-q {
  font-family: var(--display);
  font-size: clamp(4rem, 18vw, 6rem);
  line-height: 1;
  color: var(--tutu);
  text-shadow: 0 0 14px rgba(255, 209, 230, 0.8), 0 3px 0 rgba(0, 0, 0, 0.2);
}
.tease-q::before, .tease-q::after { content: "✦"; font-size: 1.2rem; color: var(--gold); vertical-align: super; }
.tease-q::before { margin-right: 0.4rem; }
.tease-q::after { margin-left: 0.4rem; }
.tease-line {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdf3d8;
}
.tease-sub {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: #ffd1e6;
  transform: rotate(-2deg);
}

/* Book 3 variant: a pencil-sketch daydream, not a photo backdrop */
.tease-paper .tease-frame {
  background: var(--paper);
  border: 3px dashed var(--tutu);
}
.tease-paper .tease-q {
  color: var(--tutu);
  text-shadow: none;
}
.tease-paper .tease-line { color: var(--teal); }
.tease-paper .tease-sub { color: var(--tutu-deep); }

/* ---------- Peek inside: swipeable strip of real illustrations ---------- */
.peek-title {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--red);
  text-align: center;
  margin-top: 2.6rem;
}
.peek-hint {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--teal);
  text-align: center;
  transform: rotate(-1deg);
  margin-bottom: 0.7rem;
}
.peek-strip {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.6rem 0.3rem 1.2rem;
  scrollbar-color: var(--tutu) transparent;
}
.peek-strip:focus-visible { outline: 3px dashed var(--tutu-deep); outline-offset: 3px; }
.peek-strip img {
  flex: none;
  width: min(58vw, 220px);
  border: 6px solid #fff;
  border-radius: 4px;
  box-shadow: 0 5px 14px rgba(74, 51, 42, 0.28);
  scroll-snap-align: center;
  transform: rotate(-1.5deg);
}
.peek-strip img:nth-child(2n) { transform: rotate(1.5deg); }
.peek-strip img:nth-child(3n) { transform: rotate(-0.5deg); }

.book-info h3 {
  font-family: var(--body);
  font-weight: 700;
  color: var(--red);
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}
.book-hook { font-style: italic; color: var(--tutu-deep); margin-bottom: 0.6rem; }
.book-info p { margin-bottom: 0.95rem; }

@media (min-width: 720px) {
  .book-card { grid-template-columns: 250px 1fr; align-items: center; padding: 2.2rem 2.2rem 1.9rem; }
}

/* ---------- Characters: class photos on the chalkboard ---------- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
}
.char-card {
  background: var(--paper);
  padding: 0.8rem 0.8rem 1.2rem;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(30, 40, 33, 0.3);
  text-align: center;
  transform: rotate(-1.2deg);
  transition: transform 0.15s ease;
}
.char-card:nth-child(2n) { transform: rotate(1deg); }
.char-card:nth-child(3n) { transform: rotate(-0.5deg); }
.char-card:hover { transform: rotate(0deg) translateY(-4px); }
/* construction-paper mat in each character's signature color */
.char-card:nth-child(1) { border-top: 10px solid var(--tutu); }      /* Pickle: tutu pink */
.char-card:nth-child(2) { border-top: 10px solid #d95d7e; }          /* Blake: rose sweater */
.char-card:nth-child(3) { border-top: 10px solid #5f9e54; }          /* Brody: green hoodie */
.char-card:nth-child(4) { border-top: 10px solid #8e6fb8; }          /* Emma: purple shirt */
.char-card:nth-child(5) { border-top: 10px solid #c98f3d; }          /* Waffles: golden fur */
.char-card:nth-child(6) { border-top: 10px solid #f2c33b; }          /* Mrs. Wren: yellow sweater */
.char-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.char-name {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--red);
  margin-top: 0.8rem;
}
.char-tag {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--teal);
  margin-bottom: 0.45rem;
}
.char-bio { font-size: 0.94rem; padding: 0 0.5rem; }

/* ---------- Art wall: corkboard ---------- */
.wall-label {
  font-family: var(--hand);
  font-size: 1.5rem;
  text-align: center;
  color: #5b3a22;
  transform: rotate(-1deg);
  margin-bottom: 1.2rem;
}
.art-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
  gap: 1.6rem;
  margin-bottom: 2.6rem;
}
.art-piece {
  position: relative;
  background: #fff;
  padding: 0.6rem 0.6rem 0.3rem;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(74, 51, 42, 0.35);
  transform: rotate(-2.5deg);
}
.art-piece:nth-child(2n) { transform: rotate(1.8deg); }
.art-piece:nth-child(3n) { transform: rotate(-1.2deg); }
.art-piece:nth-child(4n) { transform: rotate(2.6deg); }
.art-piece::before {
  /* push pin */
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9ec6, var(--tutu-deep));
  box-shadow: 0 2px 3px rgba(74, 51, 42, 0.4);
}
.art-piece img { border-radius: 2px; }
.art-piece figcaption {
  font-family: var(--hand);
  font-size: 1.35rem;
  text-align: center;
  color: var(--ink);
  padding: 0.3rem 0 0.15rem;
}

.art-invite {
  text-align: center;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.9rem 1.4rem;
  max-width: 620px;
}
.art-invite h3 {
  font-family: var(--body);
  font-weight: 700;
  color: var(--red);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.art-invite p { margin-bottom: 1.05rem; }

/* ---------- About the author: warm note on cream ---------- */
.section-author { padding-bottom: 1.5rem; }
.author-card {
  max-width: 620px;
  text-align: center;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 2rem 1.6rem 1.8rem;
}
.author-card .tag { margin-left: auto; margin-right: auto; }
.author-card h2 { margin-bottom: 0.9rem; }
.author-card p { margin-bottom: 0.9rem; }
.author-card p:last-child { margin-bottom: 0; }
.author-note {
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--teal);
}

/* ---------- Review: gold star moment on cream ---------- */
.section-review { text-align: center; padding-bottom: 3.6rem; }
.gold-star {
  display: block;
  width: fit-content;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(140, 58, 47, 0.25);
  transform: rotate(-8deg);
  margin-bottom: 0.3rem;
}
.section-review .section-intro { margin-bottom: 1.6rem; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2.4rem 1.25rem 3rem;
  background: var(--cream);
  border-top: 3px dashed var(--apricot);
}
.footer p { margin-bottom: 0.4rem; }
.footer-contact { margin-top: 0.7rem; margin-bottom: 0.9rem; }
.footer-contact a { color: var(--tutu-deep); font-weight: 700; }

.fine-print { font-size: 0.8rem; opacity: 0.72; }

/* ---------- Motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sticker.twirling, .hero-sticker.twirling img, .drift,
  .btn, .char-card, .book-cover-wrap img {
    animation: none !important;
    transition: none !important;
  }
}
