/* =========================================
   LET'S FIGURE OUT HOW! — RESPONSIVE STYLES
   ========================================= */

:root {
  --blue: #0750a7;
  --deep-blue: #073f7e;
  --navy: #063b73;
  --sky-blue: #a8e9ff;
  --light-blue: #eaf8ff;
  --yellow: #ffcf19;
  --red: #ff574b;
  --green: #50b953;
  --white: #fff;
  --text: #06479b;
  --body-font: "Nunito", sans-serif;
  --hand-font: "Baloo 2", cursive;
  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  width: 100%; max-width: 100%; overflow-x: clip;
  color: var(--text); background: #fff;
  font: 400 16px/1.55 var(--body-font);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.hand { font-family: var(--hand-font); font-weight: 800; line-height: 1.08; }
section { position: relative; }
.hero-inner > *, .about-grid > *, .author-grid > * { min-width: 0; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #e8f4ff;
  box-shadow: 0 2px 10px rgba(0,61,130,.04);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand {
  display: inline-block; position: relative; flex-shrink: 0;
  color: #0752b0; font: 800 clamp(19px,2.1vw,26px)/1.2 var(--hand-font);
  letter-spacing: -.5px; transform: rotate(-2deg);
}
.brand::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px;
  height: 4px; border-radius: 50%; background: var(--yellow);
  transform: rotate(-1deg);
}
.nav-links { display: flex; align-items: center; gap: clamp(22px,4vw,54px); }
.nav-links a { position: relative; padding: 24px 0 19px; color: #073b80; font-size: 14px; font-weight: 700; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 13px; width: 0; height: 3px;
  border-radius: 4px; background: var(--blue); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: #0086d7; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--deep-blue); cursor: pointer; font-size: 27px; padding: 5px; }

/* Hero background and layout */
.hero {
  min-height: 650px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 8% 10%, #7ee1ff 0%, transparent 35%),
    radial-gradient(ellipse at 88% 12%, #8ce4ff 0%, transparent 38%),
    radial-gradient(ellipse at 70% 90%, #b7f3a2 0%, transparent 30%),
    linear-gradient(180deg, #80ddfa 0%, #d9f7ff 52%, #fafff0 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .75; pointer-events: none;
  background:
    radial-gradient(ellipse at 10% 28%, white 0 5%, transparent 13%),
    radial-gradient(ellipse at 25% 22%, white 0 7%, transparent 15%),
    radial-gradient(ellipse at 80% 20%, white 0 5%, transparent 13%),
    radial-gradient(ellipse at 94% 34%, white 0 6%, transparent 14%);
}
.hero-bottom-grass {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 18%;
  background:
    radial-gradient(ellipse at 12% 100%, #81cb51 0 13%, transparent 45%),
    radial-gradient(ellipse at 80% 100%, #73c74c 0 15%, transparent 48%),
    linear-gradient(180deg, transparent, rgba(188,239,123,.3));
  pointer-events: none;
}
.hero-inner {
  min-height: 650px; display: grid; grid-template-columns: 1.04fr .96fr;
  align-items: center; gap: 30px; padding-block: 34px 40px;
}
.hero-copy { position: relative; z-index: 2; max-width: 530px; }
.eyebrow {
  display: inline-block; position: relative; padding: 10px 18px; margin-bottom: 16px;
  color: #08478e; font: 700 clamp(15px,1.5vw,20px)/1.3 var(--hand-font);
  transform: rotate(-2deg); background: #ffe984;
  border-radius: 45% 8% 42% 12% / 20% 15% 25% 20%;
  box-shadow: 7px 4px 0 rgba(255,226,98,.32);
}
.hero h1 {
  color: #083d7c; font-size: clamp(36px,5vw,64px); letter-spacing: -1px;
  line-height: 1; transform: rotate(-2deg);
  text-shadow: 1px 2px 0 rgba(255,255,255,.5);
}
.how {
  display: block; margin-top: 8px; color: #0683c9;
  font: italic 900 clamp(68px,9.5vw,118px)/.95 var(--body-font);
  letter-spacing: -5px; -webkit-text-stroke: 2px #fff; paint-order: stroke fill;
  text-shadow: 3px 4px 0 #07518d, 6px 7px 0 rgba(0,54,116,.18);
}
.ball-letter {
  display: inline-flex; position: relative; align-items: center; justify-content: center;
  width: .86em; height: .86em; margin-inline: -.02em; color: transparent;
  border: 3px solid #fff; border-radius: 50%; vertical-align: -.02em;
  background: conic-gradient(from 20deg,#ffcf24 0 95deg,#0685d2 95deg 180deg,#fff 180deg 225deg,#ef463a 225deg 310deg,#ffcf24 310deg 360deg);
  box-shadow: 2px 3px 0 #07518d; -webkit-text-stroke: 0;
}
.hero-description { max-width: 450px; margin-top: 22px; color: #06479b; font-size: clamp(15px,1.55vw,18px); font-weight: 600; line-height: 1.45; }
.hero-tagline { display: table; position: relative; margin-top: 10px; color: #06458f; font: 800 clamp(23px,3vw,32px)/1.3 var(--hand-font); transform: rotate(-2deg); }
.hero-tagline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px; border-radius: 50%; background: var(--yellow); transform: rotate(-1deg); }

/* Amazon buttons */
.amazon-button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: fit-content; min-width: 340px; min-height: 72px; padding: 12px 22px;
  margin-top: 27px; color: white; background: linear-gradient(110deg,#07509a,#06396f);
  border: 2px solid rgba(255,255,255,.45); border-radius: 50px;
  box-shadow: 0 5px 12px rgba(0,57,115,.1);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.amazon-button:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,57,115,.2); background: linear-gradient(110deg,#0863b9,#064785); }
.amazon-word { position: relative; display: inline-block; flex-shrink: 0; color: #fff; font: 800 29px/1 Arial,sans-serif; letter-spacing: -1.5px; }
.amazon-word::after { content: ""; position: absolute; left: 20%; right: 15%; bottom: -6px; height: 8px; border-bottom: 3px solid #ffbd21; border-radius: 0 0 70% 60%; transform: rotate(2deg); }
.amazon-details { display: flex; flex: 1; flex-direction: column; font-size: 14px; line-height: 1.35; white-space: nowrap; }
.amazon-details strong { font-size: 16px; font-weight: 800; }
.arrow { font: 700 43px/.8 Arial,sans-serif; }

/* Perks */
.perks { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.perk { display: flex; align-items: center; gap: 8px; color: #063c7e; font-size: 11px; font-weight: 700; line-height: 1.35; }
.perk + .perk { border-left: 1px solid rgba(0,79,159,.45); padding-left: 14px; }
.perk > span:first-child { color: #07509a; font-size: 25px; font-weight: 800; }
.perk-text { font-size: inherit; }

/* CSS book illustration */
.hero-art { display: flex; position: relative; align-items: center; justify-content: center; min-height: 540px; perspective: 1200px; }
.book {
  position: relative; z-index: 2; width: min(75%,360px); aspect-ratio: .68; margin-right: 28px;
  border: 1px solid rgba(0,59,103,.35); border-radius: 3px 7px 7px 3px;
  background: #e7fbff;
  box-shadow: 8px 8px 0 #e7e8df, 12px 10px 0 #aab8b7, 18px 18px 25px rgba(0,47,74,.22);
  transform: rotateY(-7deg) rotateZ(-1deg); transition: transform .4s ease;
}
.book:hover { transform: rotateY(0) rotateZ(0) translateY(-5px); }
.book-cover {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; border-radius: 3px;
  background: radial-gradient(ellipse at 50% 12%,#a5edff 0%,transparent 43%),linear-gradient(180deg,#54d7f7 0%,#b5efff 56%,#eafff7 100%);
}
.book-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background: radial-gradient(ellipse at 18% 20%,#fff 0 4%,transparent 15%),radial-gradient(ellipse at 80% 18%,#fff 0 5%,transparent 14%),radial-gradient(ellipse at 48% 43%,#fff 0 2%,transparent 11%);
}
.book-title { position: relative; z-index: 3; padding-top: 20px; color: #06478d; text-align: center; font-family: var(--hand-font); font-weight: 800; transform: rotate(-3deg); }
.book-title .small { display: block; font-size: clamp(15px,2vw,25px); line-height: 1.2; }
.book-title .big-how { display: block; color: #0783c7; font: italic 900 clamp(47px,6vw,75px)/1.1 var(--body-font); letter-spacing: -4px; -webkit-text-stroke: 1px white; paint-order: stroke fill; text-shadow: 2px 3px 0 #07518d; }
.beach-ball {
  position: relative; overflow: hidden; aspect-ratio: 1; border: 3px solid #fff; border-radius: 50%;
  background: conic-gradient(from -35deg,#f54439 0 100deg,#fff 100deg 160deg,#087fc5 160deg 245deg,#ffcc2c 245deg 310deg,#f54439 310deg 360deg);
  box-shadow: inset -8px -8px 12px rgba(0,43,90,.2),2px 5px 8px rgba(0,60,100,.15);
}
.beach-ball::after { content: ""; position: absolute; top: 17%; left: 42%; width: 17%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: #b9ed71; }
.cover-ball { position: absolute; z-index: 1; top: 23%; left: 36%; width: 29%; }
.book-kid { position: absolute; z-index: 4; top: 39%; left: 50%; transform: translateX(-50%) scale(.92); transform-origin: top center; }
.cartoon-kid { width: 112px; height: 205px; }
.kid-head {
  position: absolute; z-index: 4; top: 11%; left: 27%; width: 47%; height: 25%;
  border: 3px solid #422716; border-radius: 45% 45% 48% 48%; background: #f6c48b; transform: rotate(-3deg);
}
.eyes { position: absolute; top: 28%; left: 20%; width: 60%; display: flex; justify-content: space-around; color: #302015; font: 900 20px/1 Arial,sans-serif; letter-spacing: 5px; }
.smile { position: absolute; left: 28%; bottom: 12%; color: #7d3020; font: 900 22px/1 Arial,sans-serif; transform: rotate(180deg); }
.kid-hair { position: absolute; z-index: 5; top: 7%; left: 24%; width: 53%; height: 15%; border: 3px solid #422716; border-bottom: 0; border-radius: 50% 48% 15% 20%; background: #58351d; transform: rotate(-5deg); }
.kid-body { position: absolute; z-index: 3; top: 34%; left: 25%; width: 52%; height: 31%; border: 3px solid #263d45; border-radius: 20% 20% 30% 30%; background: linear-gradient(90deg,#fff 0 75%,#efefef 100%); }
.kid-body::before,.kid-body::after { content: ""; position: absolute; top: -3px; width: 28%; height: 24%; background: #f44d35; }
.kid-body::before { left: -3px; border-radius: 7px 0 0; }
.kid-body::after { right: -3px; border-radius: 0 7px 0 0; }
.kid-arm { position: absolute; z-index: 2; top: 32%; width: 12%; height: 28%; border: 3px solid #422716; border-radius: 15px; background: #f6c48b; }
.kid-arm.left { left: 17%; transform: rotate(28deg); }
.kid-arm.right { right: 15%; transform: rotate(-28deg); }
.kid-arm.left::before,.kid-arm.right::before { content: ""; position: absolute; top: -13px; left: -5px; width: 22px; height: 19px; border: 2px solid #422716; border-radius: 50%; background: #f6c48b; }
.kid-leg { position: absolute; z-index: 2; top: 63%; width: 18%; height: 25%; border: 3px solid #263d45; border-radius: 5px 5px 15px 15px; background: #087fc5; }
.kid-leg.left { left: 31%; transform: rotate(8deg); }
.kid-leg.right { right: 25%; transform: rotate(-8deg); }
.kid-leg.left::after,.kid-leg.right::after { content: ""; position: absolute; bottom: -11px; left: -6px; width: 28px; height: 12px; border: 2px solid #263d45; border-radius: 8px 12px 5px 5px; background: #f7f7ef; }
.fence { position: absolute; z-index: 1; left: -4%; right: -4%; bottom: 25%; height: 11%; opacity: .9; border-top: 5px solid #fff; border-bottom: 5px solid #fff; background: repeating-linear-gradient(90deg,#fff 0 7px,transparent 7px 16px); }
.book-grass { position: absolute; z-index: 2; left: -5%; right: -5%; bottom: 0; height: 30%; background: repeating-linear-gradient(100deg,transparent 0 8px,rgba(44,153,47,.18) 9px 11px),linear-gradient(180deg,#b1e85f,#4fb93f); clip-path: polygon(0 25%,8% 13%,13% 22%,20% 7%,26% 20%,34% 5%,43% 18%,51% 8%,61% 19%,69% 6%,79% 17%,87% 5%,94% 22%,100% 10%,100% 100%,0 100%); }
.book-credit { position: absolute; z-index: 5; right: 8px; bottom: 8px; left: 8px; color: #06458c; font-size: 10px; font-weight: 700; text-align: center; line-height: 1.15; }
.floating-note { position: absolute; z-index: 3; top: 13%; right: 0; width: 140px; color: #06458e; font: 700 22px/1.15 var(--hand-font); text-align: center; transform: rotate(-7deg); }
.floating-note::before,.yellow-note::before { content: ""; position: absolute; z-index: -1; inset: -14px; border-radius: 45% 12% 42% 18% / 18% 35% 16% 35%; background: rgba(255,231,125,.8); transform: rotate(3deg); }

/* Shared section headings */
.section-inner { padding-block: 44px; }
.section-heading { display: table; position: relative; z-index: 1; padding: 4px 15px 8px; margin-bottom: 16px; color: #07509a; font-size: clamp(30px,4vw,42px); transform: rotate(-1deg); }
.section-heading::before { content: ""; position: absolute; z-index: -1; inset: 0 -10px; border-radius: 40% 8% 35% 12% / 20% 15% 20% 25%; background: #b3edff; transform: rotate(-1deg); }

/* About book */
.about-book { overflow: hidden; background: radial-gradient(ellipse at 56% 100%,#f3ffeb 0%,transparent 38%),linear-gradient(110deg,#fff 0%,#fff 50%,#faffff 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; }
.about-copy { max-width: 510px; padding-left: 8px; }
.about-copy p,.author-copy p { color: #06479b; font-size: 16px; font-weight: 600; line-height: 1.6; }
.heart-line { display: flex; align-items: center; gap: 16px; max-width: 360px; margin-top: 18px; font-size: 15px; font-weight: 700; line-height: 1.45; }
.heart { color: #06479b; font-size: 47px; font-weight: 700; line-height: 1; }
.about-illustration { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.about-illustration::after { content: ""; position: absolute; z-index: 0; right: 8%; bottom: -45px; left: -5%; height: 125px; background: linear-gradient(180deg,#d5f59c,#8fd65b); clip-path: polygon(0 85%,8% 54%,16% 67%,23% 34%,30% 61%,39% 29%,49% 63%,58% 31%,67% 65%,77% 28%,87% 57%,95% 40%,100% 70%,100% 100%,0 100%); }
.about-ball { position: absolute; z-index: 2; top: 0; left: 36%; width: 110px; animation: ball-float 4s ease-in-out infinite; }
.happy-kid { position: relative; z-index: 2; top: 40px; transform: rotate(-4deg) scale(1.08); }
.happy-kid .kid-arm.right { transform: rotate(-48deg); }
.yellow-note { position: absolute; z-index: 3; top: 24%; right: 0; max-width: 190px; padding: 15px 12px; color: #06458e; font: 700 23px/1.2 var(--hand-font); text-align: center; transform: rotate(-10deg); }
.yellow-note::before { inset: -15px -8px; background: rgba(255,235,148,.78); }
.note-heart { display: block; margin-top: 6px; font-size: 34px; line-height: 1; }

/* Benefits */
.benefits { background: radial-gradient(ellipse at 50% 0%,#fff 0%,transparent 70%),#edfaff; }
.benefits .section-inner { padding-block: 30px 35px; }
.benefits .section-heading { margin-bottom: 26px; }
.benefits .section-heading::before { background: #ffed9c; }
.benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.benefit { display: flex; flex-direction: column; align-items: center; padding: 0 22px; text-align: center; }
.benefit + .benefit { border-left: 1px solid #8ddfff; }
.benefit-icon { display: flex; align-items: center; justify-content: center; width: 80px; aspect-ratio: 1; margin-bottom: 12px; color: #fff; border: 3px solid #fff; outline: 2px dashed currentColor; outline-offset: 3px; border-radius: 50%; font-size: 42px; line-height: 1; box-shadow: 0 3px 8px rgba(0,52,100,.1); }
.benefit-icon.yellow { background: #ffc91c; outline-color: #ffc91c; }
.benefit-icon.red { background: #ff5c51; outline-color: #ff5c51; }
.benefit-icon.green { background: #55b954; outline-color: #55b954; }
.benefit-icon.cyan { background: #079eea; outline-color: #079eea; }
.benefit h3 { margin-bottom: 8px; color: #06458f; font: 800 clamp(18px,2.1vw,23px)/1.2 var(--hand-font); }
.benefit p { max-width: 220px; color: #06479b; font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Author */
.about-author { overflow: hidden; background: radial-gradient(ellipse at 12% 100%,#e4ffd9 0%,transparent 25%),radial-gradient(ellipse at 92% 100%,#d7f8d1 0%,transparent 30%),#fff; }
.about-author::after { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: 0; height: 40px; background: radial-gradient(ellipse at 10% 100%,#9cda70 0%,transparent 48%),radial-gradient(ellipse at 60% 100%,#b4e88a 0%,transparent 45%); opacity: .8; }
.author-grid { display: grid; grid-template-columns: 220px minmax(0,1fr) 230px; align-items: center; gap: 30px; padding-block: 38px 36px; }
.author-portrait { position: relative; width: 210px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 7px solid #fff; outline: 3px dashed #8fe5ff; outline-offset: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 32%,#fff 0%,#e7f6ff 70%); box-shadow: 0 5px 15px rgba(0,70,120,.1); }
.portrait-placeholder { position: relative; width: 100%; height: 100%; }
.portrait-face { position: absolute; z-index: 2; top: 14%; left: 30%; width: 40%; height: 47%; border: 2px solid #68462d; border-radius: 42% 42% 48% 48%; background: #f2c59f; }
.portrait-hair { position: absolute; top: -8%; left: -5%; width: 110%; height: 32%; border: 2px solid #35251e; border-radius: 60% 60% 20% 15%; background: #453126; }
.portrait-glasses { position: absolute; top: 42%; left: 5%; width: 90%; height: 22%; border: 3px solid #222; border-radius: 7px; }
.portrait-glasses::after { content: ""; position: absolute; left: 48%; top: 35%; width: 10%; height: 3px; background: #222; }
.portrait-smile { position: absolute; bottom: 15%; left: 34%; width: 32%; height: 9%; border-bottom: 3px solid #7d3020; border-radius: 50%; }
.portrait-neck { position: absolute; z-index: 1; top: 53%; left: 43%; width: 15%; height: 17%; background: #f2c59f; }
.portrait-suit { position: absolute; bottom: -18%; left: 8%; width: 84%; height: 57%; border-radius: 45% 45% 0 0; background: linear-gradient(90deg,#09264a,#1d4775 50%,#09264a); }
.portrait-suit::before { content: ""; position: absolute; top: 0; left: 36%; width: 28%; height: 48%; background: #fff; clip-path: polygon(0 0,100% 0,70% 100%,50% 75%,30% 100%); }
.portrait-suit::after { content: ""; position: absolute; top: 0; left: 46%; width: 9%; height: 48%; background: #cc3545; clip-path: polygon(50% 0,100% 100%,50% 82%,0 100%); }
.author-copy { position: relative; z-index: 1; }
.author-copy .section-heading { margin-bottom: 12px; font-size: clamp(26px,3vw,34px); }
.author-copy .section-heading::before { background: #b4edff; }
.author-copy p { font-size: 15px; line-height: 1.5; }
.author-copy .author-quote { margin-top: 13px; color: #0750a7; font: italic 700 17px/1.35 var(--hand-font); }
.author-signature { margin-top: 8px; color: #0750a7; font: 700 15px var(--hand-font); text-align: right; transform: rotate(-2deg); }
.author-aside { position: relative; min-height: 200px; display: flex; align-items: flex-start; justify-content: center; }
.author-aside .yellow-note { position: relative; top: 0; right: auto; max-width: 190px; font-size: 22px; }
.books-stack { position: absolute; right: 0; bottom: 0; width: 155px; height: 75px; transform: rotate(-3deg); }
.stack-book { position: absolute; right: 0; width: 135px; height: 25px; border: 2px solid rgba(0,48,95,.2); border-radius: 3px 7px 7px 3px; box-shadow: 0 4px 4px rgba(0,50,90,.12); }
.stack-book:nth-child(1) { bottom: 48px; right: 10px; background: linear-gradient(180deg,#12b6ec 0 40%,#0879b4 40%); }
.stack-book:nth-child(2) { bottom: 25px; right: 0; background: linear-gradient(180deg,#f65c3d 0 40%,#d9472f 40%); }
.stack-book:nth-child(3) { bottom: 2px; right: 14px; background: linear-gradient(180deg,#ffcd34 0 40%,#e9a91e 40%); }

/* Footer */
.footer { position: relative; z-index: 2; color: #fff; background: linear-gradient(120deg,#064581,#06366d); }
.footer::before { content: ""; position: absolute; top: -13px; left: 0; right: 0; height: 25px; background: #064581; clip-path: polygon(0 50%,5% 28%,10% 50%,17% 30%,24% 53%,31% 32%,38% 50%,46% 26%,54% 50%,62% 31%,70% 51%,78% 28%,86% 52%,94% 29%,100% 50%,100% 100%,0 100%); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr 1fr; grid-template-areas: "brand links buy" "brand motto buy"; align-items: center; gap: 8px 25px; padding-block: 27px 18px; }
.footer .brand { grid-area: brand; align-self: start; color: #fff; font-size: 24px; }
.footer .brand::after { background: var(--yellow); }
.footer-links { grid-area: links; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a { color: #fff; font-size: 11px; font-weight: 700; transition: color .2s ease; }
.footer-links a:hover { color: #ffdc55; }
.footer-motto { grid-area: motto; display: flex; justify-content: center; align-items: center; gap: 12px; color: #fff; font: 700 17px var(--hand-font); }
.footer-motto span { color: var(--yellow); font-size: 25px; }
.footer .amazon-button { grid-area: buy; justify-self: end; min-width: 0; min-height: 56px; gap: 12px; margin-top: 0; padding: 9px 15px; border: 1px solid rgba(255,255,255,.85); background: transparent; box-shadow: none; }
.footer .amazon-button:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.footer .amazon-word { font-size: 23px; }
.footer .amazon-details { font-size: 10px; }
.footer .amazon-details strong { font-size: 12px; }
.footer .arrow { font-size: 33px; }
.copyright { padding: 10px 20px; color: rgba(255,255,255,.78); background: rgba(0,28,63,.24); font-size: 11px; text-align: center; }

/* Animation */
@keyframes ball-float { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Tablet */
@media (max-width: 1000px) {
  .container { width: min(100% - 36px,var(--container)); }
  .hero-inner { gap: 15px; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); }
  .hero-art { min-height: 460px; }
  .book { width: 78%; margin-right: 35px; }
  .floating-note { right: -4px; width: 110px; font-size: 18px; }
  .hero-description { font-size: 15px; }
  .amazon-button { min-width: 300px; gap: 12px; }
  .perks { gap: 8px; }
  .perk { font-size: 10px; }
  .perk + .perk { padding-left: 8px; }
  .about-grid { gap: 20px; }
  .yellow-note { max-width: 155px; font-size: 19px; }
  .benefit { padding-inline: 13px; }
  .author-grid { grid-template-columns: 175px minmax(0,1fr) 170px; gap: 23px; }
  .author-portrait { width: 165px; }
  .books-stack { transform: scale(.85) rotate(-3deg); transform-origin: bottom right; }
  .footer-inner { gap: 12px; }
  .footer-links { gap: 10px 13px; }
}

/* Mobile */
@media (max-width: 700px) {
  html { scroll-padding-top: 65px; }
  .container { width: calc(100% - 32px); }
  .nav { min-height: 64px; gap: 12px; }
  .brand { font-size: 21px; }
  .menu-toggle { display: block; flex-shrink: 0; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1001;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 16px; background: #fff; border-top: 1px solid #e9f4ff;
    box-shadow: 0 10px 15px rgba(0,50,100,.1);
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .2s ease,transform .2s ease,visibility .2s ease;
  }
  .nav-links.open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { display: block; padding: 12px 5px; border-bottom: 1px solid #eef6ff; font-size: 15px; }
  .nav-links a::after { bottom: 5px; }
  .hero-inner { min-height: 0; grid-template-columns: minmax(0,1fr); gap: 10px; padding-block: 30px; }
  .hero-copy { max-width: none; }
  .eyebrow { max-width: 100%; font-size: clamp(13px,3.8vw,17px); }
  .hero h1 { font-size: clamp(34px,8.5vw,52px); }
  .how { font-size: clamp(64px,17vw,100px); letter-spacing: -3px; }
  .hero-description { max-width: 100%; margin-top: 19px; font-size: 15px; }
  .hero-tagline { font-size: 26px; }
  .amazon-button { width: min(100%,360px); min-width: 0; min-height: 65px; padding: 10px 17px; }
  .amazon-word { font-size: 27px; }
  .amazon-details strong { font-size: 14px; }
  .amazon-details { font-size: 12px; }
  .perks { gap: 10px; }
  .perk { font-size: 10px; }
  .perk > span:first-child { font-size: 22px; }
  .hero-art { min-height: 440px; margin-top: 0; }
  .book { width: min(65%,300px); margin-right: 35px; }
  .book-title { padding-top: 17px; }
  .book-title .small { font-size: clamp(13px,4vw,19px); }
  .book-title .big-how { font-size: clamp(42px,11vw,64px); }
  .book-kid { transform: translateX(-50%) scale(.78); }
  .floating-note { top: 12%; right: 0; width: 105px; font-size: 17px; }
  .section-inner { padding-block: 35px; }
  .about-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .about-copy { max-width: 100%; padding-left: 0; }
  .section-heading { font-size: clamp(27px,7vw,36px); }
  .about-copy p,.author-copy p { font-size: 15px; }
  .about-illustration { min-height: 315px; }
  .about-ball { top: 5px; left: 40%; width: 85px; }
  .happy-kid { top: 45px; transform: rotate(-4deg) scale(.95); }
  .yellow-note { right: 0; top: 27%; max-width: 145px; font-size: 18px; }
  .benefits .section-inner { padding-block: 28px 30px; }
  .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 25px; }
  .benefit { padding: 12px 8px; }
  .benefit:nth-child(3) { border-left: 0; }
  .benefit:nth-child(n+3) { padding-top: 22px; border-top: 1px solid #8ddfff; }
  .benefit-icon { width: 67px; font-size: 35px; }
  .benefit h3 { font-size: 21px; }
  .benefit p { font-size: 14px; }
  .author-grid { grid-template-columns: minmax(0,1fr); justify-items: center; gap: 28px; padding-block: 38px 50px; }
  .author-portrait { width: min(190px,65vw); }
  .author-copy { width: 100%; }
  .author-copy .section-heading { font-size: 31px; }
  .author-aside { min-height: 190px; width: 100%; }
  .author-aside .yellow-note { max-width: 210px; font-size: 22px; }
  .books-stack { right: 5px; bottom: 0; }
  .footer-inner { grid-template-columns: minmax(0,1fr); grid-template-areas: "brand" "links" "motto" "buy"; justify-items: center; gap: 22px; padding-block: 30px 25px; }
  .footer .brand { justify-self: center; font-size: 24px; }
  .footer-links { gap: 12px 18px; }
  .footer-links a { font-size: 12px; }
  .footer-motto { font-size: 17px; }
  .footer .amazon-button { justify-self: center; width: min(100%,320px); }
}

/* Small phones */
@media (max-width: 400px) {
  .container { width: calc(100% - 24px); }
  .brand { font-size: 19px; }
  .hero h1 { font-size: 33px; }
  .how { font-size: clamp(59px,16vw,70px); letter-spacing: -2px; }
  .eyebrow { font-size: 14px; }
  .hero-description { font-size: 14px; }
  .perks { align-items: flex-start; gap: 8px; }
  .perk { gap: 5px; font-size: 9px; }
  .perk + .perk { padding-left: 7px; }
  .amazon-button { gap: 9px; padding-inline: 12px; }
  .amazon-word { font-size: 23px; }
  .amazon-details strong { font-size: 12px; }
  .amazon-details { font-size: 11px; }
  .arrow { font-size: 34px; }
  .hero-art { min-height: 320px; }
  .book { width: 65%; margin-right: 23px; }
  .floating-note { width: 78px; font-size: 14px; }
  .section-heading { font-size: 29px; }
  .about-illustration { min-height: 270px; }
  .yellow-note { max-width: 120px; font-size: 16px; }
  .benefit { padding-inline: 7px; }
  .benefit h3 { font-size: 18px; }
  .benefit p { font-size: 12px; }
  .author-portrait { width: 165px; }
  .footer-links { gap: 10px 12px; }
}
