:root {
  --magenta: #d60093;
  --magenta-dark: #a8006f;
  --blue: #2c2cae;
  --teal: #09bfbc;
  --teal-dark: #067875;
  --ink: #1f2333;
  --muted: #545a6d;
  --wash: #f4f7fc;
  --line: #e3e7f0;
  --paper: #ffffff;
  --display: chaloops, "Trebuchet MS", "Segoe UI", sans-serif;
  --body: bilo, "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--body);
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--blue); }
a:hover { color: var(--magenta); }

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

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #e4f7f6 url(../img/banner-top-900.webp) center / cover no-repeat;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header .container {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font: 700 2.1rem/1 var(--display);
  color: #fff;
  text-decoration: none;
  -webkit-text-stroke: 1px var(--teal-dark);
  text-shadow: 3px 3px 0 var(--teal-dark);
  white-space: nowrap;
}
.brand:hover { color: #fff; }

.nav-list { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font: 700 1.3rem/1.2 var(--display);
  color: var(--blue);
  text-decoration: none;
}
.nav-list a:hover { color: var(--magenta); background: rgba(255, 255, 255, 0.6); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--teal-dark);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; display: block; margin: auto; }

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand { font-size: 1.8rem; }
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px));
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a { padding: 12px 8px; font-size: 1.4rem; border-radius: 8px; }
  .no-js .site-header .container { flex-wrap: wrap; padding-block: 8px; }
  .no-js .nav-list { flex-wrap: wrap; }
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--magenta);
  font: 700 1.3rem/1 var(--display);
  text-decoration: none;
  color: var(--magenta);
  background: #fff;
  transition: background-color 0.2s, color 0.2s;
}
.button:hover { background: #fdf0f8; color: var(--magenta-dark); }

.button-solid { color: #fff; background: var(--magenta); }
.button-solid:hover { color: #fff; background: var(--magenta-dark); border-color: var(--magenta-dark); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* The round tilted "Order now" sticker from the original site. */
.sticker {
  position: absolute;
  z-index: 2;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font: 700 1.7rem/1.05 var(--display);
  text-align: center;
  text-decoration: none;
  transform: rotate(-18deg);
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background-color 0.2s;
}
.sticker:hover { color: #fff; background: var(--magenta-dark); transform: rotate(-12deg) scale(1.05); }

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

.hero { padding-block: 56px 72px; overflow: hidden; }

.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }

.hero-text { min-width: 0; }

.hero h1 { color: var(--magenta); }
.hero h1 .title { display: block; font-size: clamp(4rem, 11vw, 6.5rem); line-height: 0.95; }
.hero h1 .sub { display: block; margin-top: 10px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--blue); }

.hero .lede { max-width: 34rem; margin: 20px 0 28px; font-size: 1.15rem; color: var(--muted); }

.hero-quote { max-width: 34rem; margin: 32px 0 0; padding: 0 0 0 18px; border-left: 4px solid var(--teal); }
.hero-quote p { margin: 0; font-style: italic; font-weight: 600; line-height: 1.5; color: var(--magenta-dark); }
.hero-quote footer { margin-top: 8px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }

.hero-books { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
.hero-books a { display: block; transition: transform 0.25s; }
.hero-books a:hover { transform: translateY(-6px); }
.hero-books a:first-child { margin-right: -12%; position: relative; z-index: 1; }
.hero-books a:last-child { margin-left: -12%; transform: translateY(28px); }
.hero-books a:last-child:hover { transform: translateY(22px); }

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

.section { padding-block: 88px; }
.section-alt { background: var(--wash); }

.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(2.2rem, 5vw, 2.8rem); color: var(--magenta); }
.section-heading p { max-width: 38rem; margin: 10px auto 0; color: var(--muted); }

/* ---------- Books ---------- */

.book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.book + .book { margin-top: 96px; }

.book-cover { position: relative; max-width: 420px; }
.book-cover img { border-radius: 4px; box-shadow: 0 18px 40px rgba(31, 35, 51, 0.25); }
.book-cover .sticker { right: -28px; top: -28px; }

.book-info { min-width: 0; }
.book-number { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark); }
.book-info h3 { font-size: clamp(2.2rem, 4.5vw, 2.8rem); color: var(--magenta); }
.book-info h3 span { display: block; font-size: 0.62em; color: var(--blue); margin-top: 4px; }
.book-info p { max-width: 36rem; }
.book-info .button-row { margin-top: 28px; }

.credit { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); max-width: 36rem; }
.credit strong { color: var(--teal-dark); }

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

.about .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.about-photo { max-width: 400px; margin: 0 auto; }
.about h2 { font-size: clamp(2.2rem, 5vw, 2.8rem); color: var(--magenta); margin-bottom: 16px; }
.about p { max-width: 38rem; }

.basics { margin: 28px 0 0; max-width: 34rem; border-top: 3px solid var(--teal); }
.basics div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid #c9eeed; }
.basics dt { font: 700 1.1rem/1.4 var(--display); color: var(--teal-dark); }
.basics dd { margin: 0; line-height: 1.5; }

/* ---------- Reviews ---------- */

.review-groups { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; }
.review-group h3 { font-size: 1.5rem; margin-bottom: 16px; }
.review-group.adults h3 { color: var(--magenta); }
.review-group.kids h3 { color: var(--blue); }
.review-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.review-group.kids .review-list { grid-template-columns: 1fr 1fr; }

.review {
  margin: 0;
  padding: 20px 22px;
  background: #fff;
  border-radius: 14px;
  border-top: 4px solid var(--magenta);
  box-shadow: 0 2px 10px rgba(31, 35, 51, 0.06);
  line-height: 1.6;
}
.review-group.kids .review { border-top-color: var(--blue); }
.review p { margin: 0; }
.review p::before { content: "\201C"; }
.review p::after { content: "\201D"; }

.review-featured { max-width: 46rem; margin: 0 auto 48px; text-align: center; }
.review-featured p { margin: 0; font: 700 clamp(1.25rem, 2.6vw, 1.6rem)/1.45 var(--display); color: var(--blue); }
.review-featured footer { margin-top: 12px; font-weight: 700; color: var(--muted); }

/* ---------- Media ---------- */

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.video h3 { font-size: 1.4rem; color: var(--blue); margin-bottom: 12px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: #10131c; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

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

.site-footer {
  padding-block: 40px calc(32px + env(safe-area-inset-bottom, 0px));
  background: #d9f3f1 url(../img/banner-bottom-900.webp) center / cover no-repeat;
  text-align: center;
  font-size: 0.95rem;
}
.site-footer p { margin: 4px 0; }
.site-footer a { font-weight: 700; }

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

@media (max-width: 900px) {
  .hero { padding-block: 32px 56px; }
  .hero .container,
  .book,
  .about .container,
  .review-groups,
  .videos { grid-template-columns: minmax(0, 1fr); }
  .hero-books { max-width: 30rem; margin: 0 auto; width: 100%; }
  .book { gap: 40px; }
  .book-cover { margin: 0 auto; width: 78%; }
  .about-photo { width: 70%; }
}

@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .review-group.kids .review-list { grid-template-columns: minmax(0, 1fr); }
  .basics div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sticker { width: 104px; height: 104px; font-size: 1.4rem; }
  .book-cover .sticker { right: -16px; top: -16px; }
  .button-row .button { flex: 1 1 100%; }
}
