:root {
  --cocoa: #3d2318;
  --cocoa-soft: #6b4a3c;
  --cream: #ffffff;
  --paper: #ffffff;
  --sky: #cfe9fb;
  --sky-deep: #8ecdf3;
  --rose: #f49ab0;
  --rose-deep: #e46d8d;
  --rose-soft: #fde3ea;
  --leaf: #7bbf6a;
  --butter: #fbe38a;
  --radius: 22px;
  --shadow: 0 6px 0 var(--cocoa);
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-heading: "Lilita One", "Fredoka", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Buttons */
/* Gingham pill buttons: the button is the pill artwork
   (images/button-frame.png) with the label on top. --w sets the width;
   the height follows the artwork's shape. */
.btn, .cart-btn {
  --w: 260px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: var(--w); aspect-ratio: 800 / 208;
  padding: 0;
  background: url("images/button-frame.png") center / 100% 100% no-repeat;
  border: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1;
  color: var(--cocoa); white-space: nowrap; text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 0 8px rgba(255, 255, 255, .95);
  filter: drop-shadow(0 0 6px rgba(255, 51, 119, .45)) drop-shadow(0 5px 8px rgba(214, 84, 120, .25));
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover, .cart-btn:hover, .book:hover .btn {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 10px rgba(255, 51, 119, .65)) drop-shadow(0 8px 12px rgba(214, 84, 120, .3)) brightness(1.04);
}
.btn:active, .cart-btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .cart-btn:focus-visible { outline: 3px dashed var(--rose-deep); outline-offset: -6px; border-radius: 40px; }
.site-nav a:focus-visible, .header-logo:focus-visible { outline: 3px dashed var(--rose-deep); outline-offset: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--cocoa);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.header-logo img { height: 48px; width: auto; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600;
  text-decoration: none; padding: .4em .9em; border-radius: 999px;
  transition: background .15s;
}
.site-nav a:hover { background: var(--rose-soft); }
.site-nav { margin-left: auto; }

/* Header cart button (opens Lulu's cart; Lulu's own floating icon is hidden) */
.lulu-floating-cart { display: none !important; }
.cart-btn {
  --w: 124px;
  font-size: .95rem;
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute; top: -10px; right: -8px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  font-size: .8rem; line-height: 1; color: #fff;
  background: var(--rose-deep);
  border: 2px solid var(--cocoa); border-radius: 999px;
}
.cart-count[hidden] { display: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #e8f5fd 100%);
  border-bottom: 3px solid var(--cocoa);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center;
  gap: 40px; padding: 64px 0 72px;
}
.hero-logo { width: min(460px, 100%); margin-bottom: 20px; filter: drop-shadow(0 4px 0 rgba(61,35,24,.18)); }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 18ch; }
.hero p { font-size: 1.15rem; color: var(--cocoa-soft); max-width: 40ch; margin-bottom: 1.6em; }
.hero-art {
  margin: 0; justify-self: center;
  position: relative; width: min(640px, 100%); aspect-ratio: 520 / 420;
}
/* Paperback books.
   .pb places and tilts the book, .pb-enter runs the entrance,
   .pb-book holds the 3D shape and runs the slow sway. */
.pb {
  position: absolute; display: block; width: 47%;
  cursor: pointer; color: inherit; text-decoration: none;
  transition: transform .35s ease;
}
.pb--back  { left: 4%;  top: 0;  transform: rotate(-6deg); }
.pb--front { right: 4%; top: 5%; transform: rotate(5deg); }
.pb--back:hover,  .pb--back:focus-visible  { transform: rotate(-8deg) translateY(-10px) scale(1.03); }
.pb--front:hover, .pb--front:focus-visible { transform: rotate(7deg) translateY(-10px) scale(1.03); }
.pb:focus-visible { outline: 3px dashed var(--rose-deep); outline-offset: 10px; border-radius: 8px; }

.pb-enter {
  perspective: 1100px;
  opacity: 0;
  animation: book-enter .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
.pb--front .pb-enter { animation-delay: .12s; }

.pb-book {
  --thick: 18px;
  position: relative;
  transform-style: preserve-3d;
  animation: book-sway 7s ease-in-out infinite;
}
.pb--front .pb-book { animation-duration: 8s; animation-delay: -3s; }

.pb-cover {
  display: block; width: 100%; height: auto;
  border-radius: 2px 6px 6px 2px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .08),
    0 22px 30px -12px rgba(61, 35, 24, .55);
}

/* Fold line where a paperback cover bends at the spine */
.pb-spine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 9%;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, .22) 0%,
    rgba(255, 255, 255, .45) 22%,
    rgba(0, 0, 0, .14) 40%,
    rgba(255, 255, 255, .18) 60%,
    transparent 100%);
  pointer-events: none;
}

/* Laminated shine: a soft fixed reflection plus a sweeping highlight */
.pb-gloss {
  position: absolute; inset: 0;
  border-radius: 2px 6px 6px 2px;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .7) 48%, rgba(255, 255, 255, .15) 54%, transparent 62%) no-repeat,
    linear-gradient(160deg, rgba(255, 255, 255, .4) 0%, rgba(255, 255, 255, 0) 36%, rgba(61, 35, 24, 0) 62%, rgba(61, 35, 24, .1) 100%);
  background-size: 300% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  animation: book-shine 6s ease-in-out 1.2s infinite;
  pointer-events: none;
}
.pb--front .pb-gloss { animation-delay: 2.4s; }

/* Page block along the open edge */
.pb-pages {
  position: absolute; top: 1.2%; bottom: 1.2%; left: 100%;
  width: var(--thick);
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 30%, transparent 70%, rgba(0, 0, 0, .2)),
    repeating-linear-gradient(90deg, #fffdf7 0 1px, #e6dece 1px 2px);
}

/* Flippable book (book pages). .pb-flipper turns the whole book over;
   each cover face hides itself when it faces away. */
.pb--solo { position: relative; width: min(400px, 78vw); margin: 0 auto; transform: none; }
.pb--solo:hover, .pb--solo:focus-visible { transform: translateY(-6px); }
.pb-flipper {
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.45, .05, .25, 1);
}
.is-flipped .pb-flipper { transform: rotateY(180deg); }
.pb-face {
  position: relative;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 2px 6px 6px 2px;
}
.pb-face--back {
  position: absolute; inset: 0;
  transform: translateZ(calc(var(--thick) * -1)) rotateY(180deg);
}
.pb-face--back .pb-cover { height: 100%; object-fit: cover; border-radius: 6px 2px 2px 6px; }
.pb-face--back .pb-gloss { border-radius: 6px 2px 2px 6px; }
.pb-spine-edge {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: var(--thick);
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #e9e6e1, #ffffff 35%, #fbfaf8 65%, #dedad4);
}

@keyframes book-enter {
  0%   { opacity: 0; transform: translateY(40px) scale(.9); }
  100% { opacity: 1; transform: none; }
}
@keyframes book-sway {
  0%, 100% { transform: rotateY(-26deg) rotateX(5deg) translateY(0); }
  50%      { transform: rotateY(-12deg) rotateX(2deg) translateY(-10px); }
}
@keyframes book-shine {
  0%       { background-position: 150% 0, 0 0; }
  45%, 100% { background-position: -50% 0, 0 0; }
}

/* Characters in the About section.
   .friend runs the pop-up entrance (started by main.js adding .in-view
   when they scroll into sight); its img runs the idle bounce, so the
   two transforms never fight. */
.friends {
  --fh: clamp(300px, 34vw, 440px);
  height: var(--fh);
  display: flex; justify-content: center; align-items: flex-end;
  pointer-events: none;
}
.friend {
  height: 88%;
  margin-left: calc(var(--fh) * -.12);
  transform-origin: 50% 100%;
  opacity: 0;
  pointer-events: auto;
}
.friend--1 { margin-left: 0; }
.friend--2 { height: 100%; z-index: 1; }
.friends.in-view .friend { animation: friend-pop .8s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.friends.in-view .friend--2 { animation-delay: .2s; }
.friends.in-view .friend--3 { animation-delay: .4s; }
.friend img {
  height: 100%; width: auto;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 4px rgba(61, 35, 24, .25));
  animation: friend-bob 3.2s ease-in-out infinite;
}
.friend--1 img { animation-delay: 1.2s; animation-duration: 3.4s; }
.friend--2 img { animation-delay: 1.4s; animation-duration: 3s; }
.friend--3 img { animation-delay: 1.6s; animation-duration: 3.6s; }
/* Hop on its own layer (class added by main.js on hover) so the
   bobbing above never stops or restarts */
.friend-hop { display: block; height: 100%; transform-origin: 50% 100%; }
.friend-hop.is-hopping { animation: friend-hop .6s ease-out; }

@keyframes friend-pop {
  0%   { opacity: 0; transform: translateY(70%) scale(.5); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes friend-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-4%) rotate(-2deg); }
  50%      { transform: translateY(0) rotate(0deg); }
  75%      { transform: translateY(-3%) rotate(2deg); }
}
@keyframes friend-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  20%      { transform: translateY(0) scale(1.06, .92); }
  50%      { transform: translateY(-14%) scale(.96, 1.05); }
  80%      { transform: translateY(0) scale(1.04, .96); }
}

/* Floating decorations (bows, paws, hearts).
   Each one sets its size, position and timing inline. */
.hero, .shop, .how, .about, .book-hero { position: relative; overflow: clip; }
.hero > .wrap, .shop > .wrap, .how > .wrap, .about > .wrap, .book-hero > .wrap { position: relative; z-index: 1; }
.deco {
  position: absolute; z-index: 0;
  width: var(--s, 64px); height: auto;
  pointer-events: none; user-select: none;
  filter: drop-shadow(0 4px 3px rgba(61, 35, 24, .15));
  transform: rotate(var(--tilt, 0deg));
  animation: deco-float var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}
.deco--cloud {
  filter: drop-shadow(0 4px 0 rgba(142, 205, 243, .35));
  animation-name: cloud-drift;
  animation-timing-function: ease-in-out;
}
@keyframes cloud-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(var(--drift, 30px), -6px); }
}
@keyframes deco-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50%      { transform: translateY(-14px) rotate(calc(var(--tilt, 0deg) + 8deg)); }
}

/* Sections */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2, .about h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--cocoa-soft); }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rose-deep); margin-bottom: 8px;
}

.shop {
  padding: 80px 0;
  background: #fbd3e0 url("images/shop-gingham.jpg") center / cover;
}
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.book-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
.book {
  background: var(--paper);
  border: 3px solid var(--cocoa);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.book:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--cocoa); }
.book:focus-visible { outline: 3px dashed var(--rose-deep); outline-offset: 4px; }
.book-cover { aspect-ratio: 384 / 497; overflow: hidden; border-bottom: 3px solid var(--cocoa); background: var(--sky); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-body { padding: 20px 22px 24px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.book-body h3 { font-size: 1.35rem; }
.book-body p { color: var(--cocoa-soft); font-size: .95rem; flex: 1; }

.how { background: var(--rose-soft); border-block: 3px solid var(--cocoa); padding: 80px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li {
  background: var(--paper); border: 3px solid var(--cocoa); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
}
.step-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 3px solid var(--cocoa); background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px;
}
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--cocoa-soft); margin: 0; }

.about { padding: 80px 0; }
.about-inner {
  max-width: 1040px;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 56px;
}
.about-copy { max-width: 520px; }
.about p { font-size: 1.1rem; color: var(--cocoa-soft); }
.about .about-signoff { font-family: var(--font-display); font-weight: 600; color: var(--rose-deep); margin: 0; }

/* Book pages */
.book-hero {
  background: linear-gradient(180deg, var(--sky) 0%, #e8f5fd 100%);
  border-bottom: 3px solid var(--cocoa);
}
.book-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 56px; padding: 64px 0 80px;
}
.book-stage { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.btn--ghost { font-size: 1rem; }
.hero-copy .btn { --w: 280px; font-size: 1.2rem; max-width: 100%; }
/* Shop cards keep the original solid pink button */
.book-body .btn {
  align-self: center;
  width: auto; aspect-ratio: auto;
  padding: .7em 1.6em;
  font-weight: 600; font-size: 1.1rem;
  text-shadow: none;
  background: var(--rose);
  border: 3px solid var(--cocoa);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--cocoa);
  filter: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.book:hover .book-body .btn, .book-body .btn:hover {
  background: var(--rose-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--cocoa);
  filter: none;
}
.back-link {
  display: inline-block; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  color: var(--cocoa-soft);
}
.back-link:hover { color: var(--rose-deep); }
/* "Coloring book" label sits under the title */
.book-info h1 { margin-bottom: .15em; }
.book-info .eyebrow { margin-bottom: 14px; }
.book-info { display: flex; flex-direction: column; align-items: flex-start; }
.book-info h1 { font-size: clamp(2rem, 3.6vw, 3rem); }
.book-features { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.book-features li {
  padding-left: 30px; position: relative; font-weight: 600;
}
.book-features li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 20px; height: 18px;
  background: url("images/deco-heart-2.png") center / contain no-repeat;
}
.book-price {
  margin: 14px 0 0;
  font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1;
  color: var(--rose-deep);
  text-shadow: 0 2px 0 #fff;
}
.book-price span:not(.price-amount) { font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--cocoa-soft); margin-left: 4px; }
.buy-slot { width: 100%; max-width: 460px; margin: 12px 0 28px; }
.buy-slot lulu-buy-button { display: block; width: 100%; }
.buy-slot-placeholder {
  display: grid; place-items: center; min-height: 140px; padding: 20px;
  border: 3px dashed var(--rose-deep); border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
  font-family: var(--font-display); font-weight: 600; color: var(--rose-deep); text-align: center;
}
.book-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--cocoa-soft); }
.book-facts strong { color: var(--cocoa); margin-right: 6px; }

/* Footer */
.site-footer { background: var(--cocoa); color: var(--cream); padding: 48px 0 32px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.footer-logo { width: min(220px, 70%); height: auto; margin-bottom: 8px; }
.footer-note { margin: 0; opacity: .9; font-size: clamp(.8rem, 2.6vw, .95rem); }
.footer-copy { margin: 0; font-size: clamp(.72rem, 2.3vw, .82rem); opacity: .7; }

/* ─────────────────────────────────────────────────────────────
   Cute & glossy theme: sparkles, shine, polka dots
   ───────────────────────────────────────────────────────────── */
body {
  background:
    radial-gradient(circle, rgba(244, 154, 176, .2) 2.2px, transparent 2.8px) 0 0 / 26px 26px,
    #fff;
}
.hero, .book-hero {
  background: linear-gradient(180deg, var(--sky) 0%, #eaf6fe 62%, #fde9f0 100%);
}
.hero, .shop, .how, .book-hero { overflow-clip-margin: 40px; }


/* Glossy "sticker" headings */
.hero h1, .section-head h2, .about h2, .book-info h1 {
  text-shadow: 0 2px 0 #fff, 0 5px 0 rgba(244, 154, 176, .55);
}

/* Header links: glossy pink pill on hover */
.site-nav a:hover {
  background: linear-gradient(180deg, #fff0f5 0%, #ffd0de 100%);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(232, 94, 136, .25);
}

/* Glossy cards: soft pink glow and an inner shine rim */
.book, .steps li {
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, .9),
    0 6px 0 var(--cocoa),
    0 20px 32px -14px rgba(232, 94, 136, .5);
}
.book:hover {
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, .9),
    0 10px 0 var(--cocoa),
    0 26px 38px -14px rgba(232, 94, 136, .6);
}
.steps li {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #ffeaf1 100%);
}
.steps li::before, .steps li::after {
  content: ""; position: absolute; border-radius: 99px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(244, 154, 176, .25);
  pointer-events: none;
}
.steps li::before { top: 14px; left: 18px; width: 30px; height: 9px; transform: rotate(-28deg); }
.steps li::after  { top: 30px; left: 14px; width: 9px; height: 9px; }

/* Twinkling sparkles */
.deco--sparkle { animation-name: twinkle; animation-timing-function: ease-in-out; }
@keyframes twinkle {
  0%, 100% { transform: scale(.55) rotate(0deg); opacity: .55; }
  50%      { transform: scale(1) rotate(25deg); opacity: 1; }
}

/* Small screens */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 40px 0 56px; gap: 36px; }
  .hero-logo, .hero h1, .hero p { margin-inline: auto; }
  .book-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 56px; }
  /* "All books" link pinned to the top of the page */
  .back-link { position: absolute; top: 18px; left: 0; margin: 0; }
  .book-info { align-items: center; text-align: center; }
  .buy-slot { margin-inline: auto; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .about-copy { margin-inline: auto; }
  .friends { --fh: min(300px, 72vw); order: 2; }
  .deco { width: calc(var(--s, 64px) * .6); }
  .deco--wide-only { display: none; }
  .steps { grid-template-columns: 1fr; }
  .shop, .how, .about { padding: 56px 0; }
  /* Logo, then the floating books, then the button. The headline and
     paragraph are hidden; the headline stays readable by screen readers. */
  .hero-inner { gap: 0; }
  .hero-copy { display: contents; }
  .hero-logo { order: 1; }
  .hero-art { order: 2; margin-bottom: -16px; }
  .hero h1 {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .hero p { display: none; }
  .hero-copy .btn { order: 4; justify-self: center; margin-top: 12px; }
  /* Gingham at its natural scale instead of stretched to the tall section */
  .shop { background-size: 1000px auto; background-repeat: repeat; background-position: center top; }
}
@media (max-width: 520px) {
  .header-logo img { height: 30px; }
  .site-nav a { padding: .35em .4em; font-size: .85rem; white-space: nowrap; }
  .site-nav { gap: 0; }
  .header-inner { gap: 8px; }
  .site-nav a[href$="#how"] { display: none; }
  .cart-label { display: none; }
  /* Round glossy gingham cart button */
  .cart-btn {
    --w: 54px;
    aspect-ratio: 1;
    border: 3px solid #f0336f;
    border-radius: 50%;
    background:
      radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .95) 0 4px, transparent 5px),
      repeating-linear-gradient(90deg, rgba(244, 120, 160, .35) 0 8px, transparent 8px 16px),
      repeating-linear-gradient(0deg, rgba(244, 120, 160, .35) 0 8px, transparent 8px 16px),
      #fde3ea;
    box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px rgba(240, 51, 111, .5);
  }
  .cart-btn svg { width: 26px; height: 26px; }
  .cart-count { top: -6px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .cart-btn { transition: none; }
  .friend, .friends.in-view .friend { animation: none; opacity: 1; }
  .pb-enter { animation: none; opacity: 1; }
  .pb-book { animation: none; transform: rotateY(-20deg) rotateX(4deg); }
  .pb-gloss { animation: none; }
  .pb, .pb-flipper { transition: none; }
  .deco { animation: none; }
  .friend img, .friend-hop.is-hopping { animation: none; }
}

/* Book pages: "You might also like" */
.related { position: relative; overflow: clip; padding: 72px 0 88px; }
.related > .wrap { position: relative; z-index: 1; }


/* Book listings: clean row of covers, no card outlines */
.book-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 48px 56px;
}
.book, .book:hover {
  width: min(300px, 100%);
  background: none; border: 0; border-radius: 0;
  box-shadow: none; overflow: visible;
}
.book-cover {
  border: 0; border-radius: 10px;
  box-shadow: 0 18px 30px -14px rgba(61, 35, 24, .45), 0 2px 6px rgba(61, 35, 24, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.book:hover .book-cover {
  transform: translateY(-6px);
  box-shadow: 0 26px 38px -16px rgba(232, 94, 136, .55), 0 3px 8px rgba(61, 35, 24, .12);
}
.book-body { padding: 18px 4px 0; align-items: center; text-align: center; }
.book-body h3 { font-size: 1.25rem; margin-bottom: .35em; }
.book:hover .book-body h3 { color: var(--rose-deep); }
.book-body p { font-size: .95rem; margin: 0; }
.book:focus-visible { outline: 3px dashed var(--rose-deep); outline-offset: 8px; border-radius: 12px; }

/* Shop section on the gingham background: keep text crisp */
.shop .eyebrow { color: #c2346a; text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.shop .section-head p,
.shop .book-body p,
.shop .book-body h3 { text-shadow: 0 0 8px #fff, 0 0 3px #fff, 0 0 1px #fff; }
.shop .section-head p, .shop .book-body p { color: var(--cocoa); }

/* Exciting headings: glossy candy-pink fill, sticker outline */
.hero h1, .section-head h2, .about h2, .book-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  color: #e8457c;
  background: linear-gradient(180deg, #ffb8cf 0%, #ff7aa6 46%, #ec4f86 54%, #f26c9b 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff)
    drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff)
    drop-shadow(0 3px 0 #6b2a3f);
}

/* Shop heading: bigger, filling the space above the books */
.shop { padding-top: 48px; }
.shop .section-head { max-width: 760px; margin-bottom: 44px; }
.shop .eyebrow { font-size: 1.1rem; letter-spacing: .14em; margin-bottom: 4px; }
.shop .section-head h2 { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.15; margin-bottom: .15em; }
.shop .section-head p { font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; }

/* Room under the letters so the gradient fill never clips g, y, p */
.hero h1, .section-head h2, .about h2, .book-info h1 { padding-bottom: .14em; }

/* Same gradient on every line of a heading: the fill repeats once per
   line (its height matches the line-height) instead of stretching over
   the whole heading. */
.hero h1, .section-head h2, .about h2, .book-info h1 {
  line-height: 1.15;
  background-size: 100% 1.15em;
  background-repeat: repeat-y;
}

/* Home page headline: a little bigger */
.hero h1 { font-size: clamp(2.2rem, 4.1vw, 3.3rem); max-width: 20ch; }

/* Headings: Lilita One (it comes in one heavy weight, so no faux bold), with a crisp white
   lift and a soft pink shadow. The older gradient and outline styling
   above is switched off here. */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }
.hero h1, .section-head h2, .about h2, .book-info h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: #e2507f;
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: none;
  text-shadow: 0 2px 0 #fff, 0 5px 10px rgba(232, 94, 136, .28);
  padding-bottom: 0;
  line-height: 1.08;
  letter-spacing: -.005em;
}
.shop .section-head h2 { text-shadow: 0 2px 0 #fff, 0 0 14px #fff, 0 5px 12px rgba(232, 94, 136, .3); }

/* Heading sizes */
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); max-width: 15ch; }
.section-head h2, .about h2 { font-size: clamp(2.2rem, 3.8vw, 3.1rem); }
.shop .section-head h2 { font-size: clamp(2.8rem, 6.4vw, 4.8rem); line-height: 1.08; }
.book-info h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.book-body h3 { font-size: 1.35rem; }

/* Homepage headline in all caps */
.hero h1 { text-transform: uppercase; }

/* Big headings: white Lilita One letters with a solid pink outline (the
   #heading-outline SVG filter at the top of each page), plus a soft pink
   shadow. */
.hero h1 { font-size: clamp(3rem, 5.6vw, 4.8rem); max-width: none; }
.hero h1, .section-head h2, .about h2, .book-info h1,
.shop .section-head h2 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
  text-shadow: none;
  letter-spacing: .01em;
  filter: url(#heading-outline) drop-shadow(0 4px 0 #e6578c) drop-shadow(0 8px 12px rgba(232, 94, 136, .3));
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
