:root {
  --yellow: #ffd400;
  --yellow-soft: #fff6c7;
  --pink: #ed0b73;
  --pink-dark: #c90059;
  --pink-soft: #fff0f6;
  --blue: #009ee3;
  --blue-dark: #0879ae;
  --blue-soft: #eaf8ff;
  --lime: #b8d900;
  --ink: #111522;
  --muted: #5f6470;
  --paper: #fffdf8;
  --white: #ffffff;
  --border: 3px solid var(--ink);
  --shadow-hard: 8px 8px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
  --radius: 24px;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Poppins", system-ui, sans-serif;
  --container: 1180px;
  --header-height: 82px;
  --deck-motion-duration: 600ms;
  --theme-motion-duration: 2400ms;
  --z-header: 40;
  --z-menu: 30;
  --z-sticker: 4;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
}

body,
p,
li,
dd {
  text-wrap: pretty;
}

h1,
h2,
h3,
dt,
.brand,
.button,
.eyebrow,
.section-kicker {
  font-family: var(--display);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.3rem);
  font-weight: 700;
}

h1 em {
  display: block;
  color: var(--pink-dark);
  font-style: normal;
  transition: color var(--theme-motion-duration) ease-in-out;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 4px solid var(--blue-dark);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border: var(--border);
  background: var(--white);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-header .brand img {
  width: auto;
  height: 45px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.language-switch:hover,
.language-switch:focus-visible {
  background: var(--yellow-soft);
}

.language-switch-flag {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, .28);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(23, 32, 51, .15);
}

.flag-it {
  background: linear-gradient(90deg, #009246 0 33.33%, #fff 33.33% 66.66%, #ce2b37 66.66% 100%);
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 1.23px, #fff 1.23px 2.46px);
}

.flag-us::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 8px;
  background: #3c3b6e;
  content: "";
}

.main-nav a {
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:not(.nav-cta) {
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.main-nav a:not(.nav-cta):hover {
  text-decoration-line: underline;
  text-decoration-color: var(--pink);
}

.nav-cta {
  padding: 10px 17px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  transition: transform 160ms ease-out, background-color var(--theme-motion-duration) ease-in-out;
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  padding: 9px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  border-radius: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--header-height));
  background-color: var(--yellow);
  background-image: radial-gradient(circle at center, color-mix(in srgb, var(--ink) 14%, transparent) 0 2px, transparent 2.5px);
  background-size: 24px 24px;
}

.home-hero {
  min-height: 0;
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.book-hero {
  min-height: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--yellow) 86%, var(--white));
  clip-path: polygon(0 0, 72% 0, 56% 100%, 0 100%);
}

.home-hero::before {
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  align-items: center;
  gap: 52px;
  min-height: 690px;
  padding-block: 48px 88px;
}

.home-hero .hero-grid {
  min-height: 650px;
  padding-block: 34px 105px;
}

.book-hero .hero-grid {
  min-height: 0;
  padding-block: 32px 105px;
}

@media (min-width: 1100px) {
  .book-hero .hero-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
    gap: 32px;
  }

  .book-hero .single-cover {
    width: min(90%, 385px);
  }
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.home-hero .hero-copy h1 {
  block-size: 3.25em;
}

.book-hero .hero-copy h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.35rem);
}

html[lang^="en"] .home-hero .hero-copy h1 {
  block-size: auto;
  min-block-size: 3.25em;
  font-size: clamp(2.75rem, 4.2vw, 4.4rem);
}

html[lang^="en"] .home-hero .hero-lead {
  block-size: auto;
  min-block-size: 4.8em;
}

html[lang^="en"] .home-hero .hero-note {
  block-size: auto;
  min-block-size: 3.6em;
}

.home-hero .hero-lead {
  block-size: 5em;
}

.home-hero .hero-note {
  block-size: 3.6em;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-lead {
  max-width: 650px;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.55;
}

.hero-note {
  max-width: 640px;
  margin-top: 13px;
  color: color-mix(in srgb, var(--ink) 75%, var(--muted));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-small);
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease-out, background-color var(--theme-motion-duration) ease-in-out;
}

.button:hover {
  transform: translate(-3px, -3px);
}

.button-primary {
  background: var(--pink);
}

.button-secondary {
  background: var(--white);
}

.button-dark {
  border-color: var(--white);
  background: var(--ink);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--white) 85%, transparent);
  color: var(--white);
}

.quick-facts {
  display: flex;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin: 27px 0 0;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.quick-facts div {
  min-width: 125px;
  padding: 12px 17px;
}

.quick-facts div + div {
  border-left: 2px solid var(--ink);
}

.quick-facts dt {
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1;
}

.quick-facts dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 600;
  line-height: 1.25;
}

.hero-art {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 585px;
}

.home-hero .hero-art {
  min-height: 500px;
}

.book-hero .hero-art {
  min-height: 520px;
}

.cover-halo {
  position: absolute;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border: 5px dashed var(--pink-dark);
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 48%, transparent);
  transform: rotate(-8deg);
  transition: border-color var(--theme-motion-duration) ease-in-out;
}

.cover-deck {
  position: relative;
  z-index: 2;
  width: min(75%, 350px);
  height: 420px;
}

.rotating-book {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-118px, 32px) rotate(-14deg) scale(.86);
  transition: transform var(--deck-motion-duration) ease-out;
}

.rotating-book[data-stack-position="0"] {
  z-index: 5;
  visibility: visible;
  pointer-events: auto;
  transform: translate(38px, -4px) rotate(3deg) scale(1.03);
}

.rotating-book[data-stack-position="1"] {
  z-index: 4;
  visibility: visible;
  transform: translate(-25px, 10px) rotate(-5deg) scale(.97);
}

.rotating-book[data-stack-position="2"] {
  z-index: 3;
  visibility: visible;
  transform: translate(-78px, 24px) rotate(-10deg) scale(.92);
}

.cover-deck.is-fanning .rotating-book[data-stack-position="0"] {
  transform: translate(70px, -8px) rotate(7deg) scale(1.03);
}

.cover-deck.is-fanning .rotating-book[data-stack-position="1"] {
  transform: translate(-88px, -2px) rotate(-12deg) scale(.97);
}

.cover-deck.is-fanning .rotating-book[data-stack-position="2"] {
  transform: translate(-150px, 18px) rotate(-18deg) scale(.92);
}

.cover-deck.is-fanning[data-motion-direction="previous"] .rotating-book[data-stack-position="4"] {
  z-index: 6;
  visibility: visible;
  transform: translate(-150px, 18px) rotate(-18deg) scale(.92);
}

.rotating-book img,
.single-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px color-mix(in srgb, var(--ink) 28%, transparent));
}

.single-cover {
  position: relative;
  z-index: 2;
  display: block;
  width: min(82%, 385px);
  height: 540px;
  transform: rotate(-3deg);
  transition: transform 160ms ease-out;
}

.book-hero .single-cover {
  height: 500px;
}

.single-cover:hover {
  transform: rotate(-1deg) translateY(-4px);
}

.sticker {
  position: absolute;
  z-index: var(--z-sticker);
  display: grid;
  place-items: center;
  width: 120px;
  min-height: 86px;
  padding: 13px;
  border: var(--border);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.sticker-one {
  top: 11%;
  right: -1%;
  border-radius: 50%;
  background: var(--blue-soft);
  transform: rotate(8deg);
}

.sticker-two {
  left: -4%;
  bottom: 17%;
  border-radius: 18px;
  background: var(--pink-soft);
  transform: rotate(-8deg);
}

.deck-arrow {
  position: absolute;
  top: 50%;
  z-index: 7;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 2px solid color-mix(in srgb, var(--ink) 52%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 68%, transparent);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--ink) 45%, transparent);
  color: var(--ink);
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 160ms ease-out;
}

.deck-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.deck-arrow-prev {
  left: -5px;
}

.deck-arrow-next {
  right: -5px;
}

.rotator-controls {
  position: absolute;
  bottom: -1px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.rotator-dots {
  display: flex;
  gap: 7px;
}

.rotator-dot {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.rotator-dot.is-active {
  background: var(--pink);
}

.rotator-pause {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 4px 9px;
  border: 0;
  border-left: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  cursor: pointer;
}

.doodle {
  position: absolute;
  z-index: 1;
  font-family: var(--display);
  font-weight: 700;
  pointer-events: none;
  transition: color var(--theme-motion-duration) ease-in-out;
}

.doodle-sun {
  top: 9%;
  left: 3%;
  color: var(--pink-dark);
  font-size: 3.3rem;
  transform: rotate(-7deg);
}

.doodle-spark {
  right: 3%;
  bottom: 23%;
  color: var(--blue-dark);
  font-size: 4.7rem;
  transform: rotate(12deg);
}

.doodle-dot {
  top: 18%;
  right: 46%;
  width: 24px;
  height: 24px;
  border: 5px solid var(--ink);
  border-radius: 50%;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 5;
  height: 87px;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-wave path {
  fill: var(--paper);
}

.home-hero .hero-wave {
  height: 55px;
}

.book-hero .hero-wave {
  height: 55px;
}

.section {
  padding-block: 64px;
}

.home-page .catalog-section {
  padding-top: 38px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .section-kicker {
  margin-inline: auto;
}

.section-heading > p:not(.section-kicker) {
  margin-top: 19px;
  color: var(--muted);
  font-size: 1.08rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.book-card {
  display: flex;
  flex-direction: column;
  border: var(--border);
  border-color: var(--card-color);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: none;
  overflow: hidden;
}

.book-card-cover {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 22px;
  border-bottom: var(--border);
  border-bottom-color: var(--card-color);
  background-color: var(--card-soft);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--card-color) 30%, transparent) 0 2px, transparent 2.5px);
  background-size: 20px 20px;
}

.book-card-cover img {
  width: auto;
  height: 275px;
  object-fit: contain;
  filter: drop-shadow(0 15px 20px color-mix(in srgb, var(--ink) 24%, transparent));
  transform: rotate(-2deg);
  transition: transform 160ms ease-out;
}

.book-card-cover:hover img {
  transform: rotate(0) translateY(-5px);
}

.book-card-upcoming .book-card-cover {
  position: relative;
  overflow: hidden;
}

.book-card-upcoming .book-card-cover img {
  opacity: .72;
  filter: blur(9px) saturate(.78) drop-shadow(0 15px 20px color-mix(in srgb, var(--ink) 18%, transparent));
  transform: scale(1.08) rotate(-2deg);
}

.book-card-upcoming .book-card-cover:hover img {
  transform: scale(1.08) rotate(-2deg);
}

.book-card-upcoming .book-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--white) 18%, transparent), color-mix(in srgb, var(--card-color) 12%, transparent));
  pointer-events: none;
}

.upcoming-status {
  display: inline-flex;
  gap: 7px;
  opacity: .72;
  cursor: default;
}

.book-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.age-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card-color);
  font-family: var(--display);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.3;
}

.book-card h3 {
  margin-bottom: 13px;
}

.book-card p {
  margin-bottom: 21px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}

.text-link {
  margin-top: auto;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  text-decoration-color: var(--card-color);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.book-card-links {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.book-card-links .text-link {
  margin-top: 0;
}

.book-card-links .text-link:last-child {
  color: #9f174f;
  text-decoration-color: var(--yellow);
}

.stem-resource-section {
  padding-top: 28px;
  background: var(--paper);
}

.stem-resource-card {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(430px, 1.18fr);
  align-items: stretch;
  border: var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

.stem-resource-copy {
  align-self: center;
  padding: clamp(30px, 5vw, 58px);
}

.stem-resource-copy h2 {
  margin-top: 17px;
}

.stem-resource-copy > p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.stem-resource-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.stem-resource-actions .text-link {
  margin-top: 0;
}

.stem-resource-art {
  position: relative;
  display: block;
  min-height: 420px;
  border-left: var(--border);
  color: var(--ink);
  overflow: hidden;
}

.stem-resource-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease-out;
}

.stem-resource-art:hover img {
  transform: scale(1.025);
}

.stem-resource-art span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 255, 255, .93);
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
}

.values-section,
.themes-section {
  border-block: 3px solid var(--ink);
  background: var(--blue-soft);
}

.home-page .values-section {
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.value-card {
  padding: 23px 21px;
  border: var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.value-card > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--yellow);
  font-size: 1.65rem;
}

.value-card p {
  margin-top: 11px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.58;
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 60px;
}

.author-portrait {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border: var(--border);
  border-radius: 44% 56% 46% 54%;
  background: var(--yellow);
  box-shadow: var(--shadow-hard);
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.author-portrait img {
  width: 100%;
  height: 330px;
  border: 2px solid var(--ink);
  border-radius: 42% 58% 45% 55%;
  object-fit: cover;
}

.author-portrait span {
  position: absolute;
  right: -34px;
  bottom: 28px;
  padding: 13px 17px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: rotate(-7deg);
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.author-copy p:not(.section-kicker) {
  max-width: 700px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 1.05rem;
}

.author-copy .button {
  margin-top: 26px;
}

.survey-section {
  border-block: 3px solid var(--ink);
  background: var(--blue-soft);
}

.survey-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 32px;
}

.survey-heading .section-heading {
  margin-bottom: 0;
}

.survey-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.survey-facts div {
  padding: 14px 12px;
  text-align: center;
}

.survey-facts div + div {
  border-left: 2px solid var(--ink);
}

.survey-facts dt {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.survey-facts dd {
  margin: 6px 0 0;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
}

.survey-form {
  position: relative;
  display: grid;
  gap: 18px;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.survey-question {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: var(--border);
  border-radius: 22px;
  background: var(--white);
}

.survey-question legend {
  width: 100%;
  padding: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.survey-question legend span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  font-size: .88rem;
  vertical-align: middle;
}

.question-help,
.textarea-label {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.option-grid.compact-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid color-mix(in srgb, var(--ink) 26%, transparent);
  border-radius: 14px;
  background: var(--paper);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.option-grid label:has(input:checked) {
  border-color: var(--pink-dark);
  background: var(--pink-soft);
}

.option-grid input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--pink-dark);
}

.option-grid input:disabled + span,
.option-grid label:has(input:disabled) {
  cursor: not-allowed;
  opacity: .55;
}

.survey-question textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.field-error {
  min-height: 1.4em;
  margin-top: 8px;
  color: #a82418;
  font-size: .84rem;
  font-weight: 700;
}

.survey-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 24px;
  border: var(--border);
  border-radius: 22px;
  background: var(--yellow-soft);
}

.survey-privacy {
  max-width: 680px;
  color: var(--muted);
  font-size: .88rem;
}

.form-status {
  min-height: 1.5em;
  margin-top: 5px;
  font-family: var(--display);
  font-weight: 700;
}

.form-status.is-success {
  color: #276414;
}

.form-status.is-error {
  color: #a82418;
}

.contact-section {
  background: var(--paper);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: 52px;
  padding: 38px;
  border: var(--border);
  border-radius: 28px;
  background: var(--yellow-soft);
  box-shadow: var(--shadow-hard);
}

.contact-card h2 {
  max-width: 700px;
}

.contact-card > div > p:not(.section-kicker),
.contact-action > p {
  margin-top: 16px;
  color: var(--muted);
}

.contact-action .button {
  margin-top: 19px;
}

.email-output {
  min-height: 1.6em;
  color: var(--ink) !important;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.email-output a {
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.final-cta {
  border-top: 3px solid var(--ink);
  background: var(--pink);
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.final-cta .section-kicker {
  background: var(--yellow-soft);
  transition: background-color var(--theme-motion-duration) ease-in-out;
}

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: 28px;
}

.footer-brand {
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-nav a {
  font-family: var(--display);
  font-weight: 600;
  text-underline-offset: 5px;
}

.site-footer > .container > a:not(.brand) {
  font-family: var(--display);
  font-weight: 600;
  text-underline-offset: 5px;
}

.prototype-label {
  color: color-mix(in srgb, var(--white) 68%, transparent);
  font-size: .86rem;
}

/* Shared book detail template */
.reviews-section {
  border-block: 3px solid var(--ink);
  background: var(--yellow-soft);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-grid[data-review-count="1"] {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.review-grid[data-review-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
}

.reviews-empty {
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 26px;
  border: 2px dashed var(--ink);
  border-radius: 18px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.reader-review {
  display: flex;
  flex-direction: column;
  padding: 23px;
  border: var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.review-rating {
  margin-bottom: 12px;
  color: var(--pink-dark);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1;
}

.reader-review blockquote {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.65;
}

.review-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-size: .78rem;
  font-weight: 600;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 58px;
}

.story-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 440px;
}

.story-orbit {
  position: absolute;
  width: min(100%, 480px);
  aspect-ratio: 1;
  border: 5px dashed var(--blue-dark);
  border-radius: 50%;
  background: var(--yellow-soft);
  transform: rotate(7deg);
}

.story-visual img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 355px;
  object-fit: contain;
  filter: drop-shadow(10px 11px 0 var(--ink));
  transform: rotate(-4deg);
}

.story-visual span {
  position: absolute;
  z-index: 3;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.story-visual span:nth-of-type(1) {
  top: 10%;
  left: 1%;
  transform: rotate(-9deg);
}

.story-visual span:nth-of-type(2) {
  right: 1%;
  bottom: 10%;
  background: var(--pink-soft);
  transform: rotate(8deg);
}

.story-copy > p:not(.section-kicker) {
  margin-top: 19px;
  color: var(--muted);
  font-size: 1.04rem;
}

.story-copy blockquote {
  margin: 26px 0 0;
  padding: 19px 21px;
  border-left: 6px solid var(--pink);
  background: var(--yellow-soft);
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 600;
}

.book-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.signature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--signature-color) 55%, var(--white));
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 700;
}

/* The common STEM language changes rhythm and composition for each book. */
.book-page[data-book="sofia"] .story-section {
  border-bottom: 3px solid var(--ink);
  background: #fff8df;
}

.book-page[data-book="sofia"] .story-orbit {
  border-color: #e84b3c;
  border-radius: 42% 58% 54% 46%;
  background: #ffe6a4;
}

.book-page[data-book="sofia"] .book-signature {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-page[data-book="sofia"] .signature-chip {
  justify-content: center;
}

.book-page[data-book="sofia"] .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-page[data-book="sofia"] .feature-card:first-child {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 20px;
  grid-column: 1 / -1;
  min-height: auto;
}

.book-page[data-book="sofia"] .feature-card:first-child::before {
  grid-row: 1 / 4;
  margin: 0;
}

.book-page[data-book="sofia"] .feature-card:first-child > * {
  grid-column: 2;
}

.book-page[data-book="sofia"] .themes-section {
  background: #fff0d6;
}

.book-page[data-book="spino"] .story-visual {
  order: 2;
}

.book-page[data-book="spino"] .story-copy {
  order: 1;
}

.book-page[data-book="spino"] .story-orbit {
  border-radius: 36% 64% 42% 58%;
  background: #edf6d4;
}

.book-page[data-book="spino"] .feature-card:nth-child(1) {
  transform: rotate(-1.2deg);
}

.book-page[data-book="spino"] .feature-card:nth-child(2) {
  transform: translateY(10px) rotate(1deg);
}

.book-page[data-book="spino"] .feature-card:nth-child(3) {
  transform: rotate(-.7deg);
}

.book-page[data-book^="music"] .story-section {
  border-bottom: 3px solid var(--ink);
  background: var(--blue-soft);
}

.book-page[data-book^="music"] .story-copy {
  padding: 30px;
  border: var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.book-page[data-book^="music"] .story-orbit {
  border-style: dashed;
  border-radius: 44% 56% 39% 61% / 52% 41% 59% 48%;
  background: var(--pink-soft);
}

.book-page[data-book^="music"] .feature-grid {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-inline: auto;
}

.book-page[data-book^="music"] .feature-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: auto;
  column-gap: 22px;
}

.book-page[data-book^="music"] .feature-card::before {
  grid-row: 1 / 4;
  margin: 0;
}

.book-page[data-book^="music"] .feature-card > * {
  grid-column: 2;
}

.book-page[data-book="music-blue"] .story-visual {
  order: 2;
}

.book-page[data-book="music-blue"] .story-copy {
  order: 1;
  border-radius: 38px 18px 38px 18px;
}

.book-page[data-book="music"] .story-copy {
  border-radius: 18px 38px 18px 38px;
}

.inside-section {
  border-block: 3px solid var(--ink);
  background: var(--pink-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 27px;
  counter-reset: features;
}

.feature-card {
  position: relative;
  min-height: 250px;
  padding: 26px 24px 24px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-hard);
  counter-increment: features;
}

.feature-card::before {
  content: counter(features, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 27px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card:nth-child(2)::before {
  background: var(--blue);
}

.feature-card:nth-child(3)::before {
  background: var(--pink);
}

.feature-card .feature-label {
  margin-bottom: 9px;
  color: var(--pink-dark);
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-card p:last-child {
  margin-top: 13px;
  color: var(--muted);
}

.interior-gallery-section {
  position: relative;
  border-block: 3px solid var(--ink);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--blue) 18%, transparent) 0 3px, transparent 4px) 0 0 / 38px 38px,
    var(--yellow-soft);
  content-visibility: auto;
  contain-intrinsic-size: 2800px;
}

.interior-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(42px, 6vw, 72px);
}

.interior-gallery-card {
  margin: 0;
}

.interior-gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.61 / 1;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.interior-gallery-card img[src$="fisica-del-suono.webp"] {
  padding: 20px;
}

.interior-gallery-card figcaption {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.together-section {
  background: var(--paper);
}

.together-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 52px;
  padding: 42px 46px;
  border: var(--border);
  border-radius: 32px;
  background-color: var(--yellow-soft);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--pink) 22%, transparent) 0 2px, transparent 2.5px);
  background-size: 24px 24px;
  box-shadow: var(--shadow-hard);
}

.together-card > div > p:not(.section-kicker) {
  margin-top: 19px;
  color: var(--muted);
}

.check-list {
  display: grid;
  align-content: center;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 15px 14px 52px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 600;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 15px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: var(--display);
  transform: translateY(-50%);
}

.details-section {
  padding-top: 8px;
}

.details-card {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 52px;
  padding: 42px;
  border: var(--border);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-hard);
}

.details-cover {
  display: grid;
  place-items: center;
  min-height: 370px;
  padding: 30px;
  border: 3px dashed var(--ink);
  border-radius: 24px;
  background: var(--yellow);
}

.details-cover img {
  width: auto;
  height: 305px;
  object-fit: contain;
  filter: drop-shadow(8px 9px 0 var(--ink));
  transform: rotate(-2deg);
}

.book-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 27px 0;
  border: 2px solid var(--ink);
  border-radius: 17px;
  overflow: hidden;
}

.book-details > div {
  padding: 15px 17px;
  border-bottom: 2px solid var(--ink);
}

.book-details > div:nth-child(odd) {
  border-right: 2px solid var(--ink);
}

.book-details > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.book-details dt {
  font-size: .84rem;
  font-weight: 700;
}

.book-details dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.faq-section {
  background: var(--blue-soft);
  border-top: 3px solid var(--ink);
}

.faq-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 52px;
}

.faq-list {
  display: grid;
  gap: 15px;
}

.faq-list details {
  border: var(--border);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
}

.faq-list summary {
  position: relative;
  padding: 20px 58px 20px 21px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 21px 21px;
  color: var(--muted);
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 1060px) {
  .main-nav {
    gap: 13px;
  }

  .main-nav a {
    font-size: .9rem;
  }

  .stem-resource-card {
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(330px, .97fr);
    gap: 28px;
  }

  .home-hero .hero-copy h1 {
    block-size: 4.2em;
  }

  .home-hero .hero-lead {
    block-size: 6.4em;
  }

  .home-hero .hero-note {
    block-size: 5.2em;
  }

  .hero-art {
    min-height: 565px;
  }

  .home-hero .hero-art {
    min-height: 470px;
  }

  .cover-deck,
  .single-cover {
    height: 485px;
  }

  .home-hero .cover-deck {
    height: 400px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .survey-facts {
    max-width: 540px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .site-header .brand img {
    width: auto;
    height: 45px;
  }

  .brand span {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  .stem-resource-card {
    grid-template-columns: 1fr;
  }

  .stem-resource-art {
    min-height: 360px;
    border-top: var(--border);
    border-left: 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    left: 0;
    z-index: var(--z-menu);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 3px solid var(--ink);
    background: var(--paper);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 10px;
  }

  .nav-cta {
    margin-top: 5px;
    text-align: center;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero::before {
    clip-path: polygon(0 0, 100% 0, 100% 61%, 0 76%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 31px;
    padding-block: 44px 92px;
  }

  .home-hero .hero-grid {
    gap: 20px;
    padding-block: 36px 58px;
  }

  .home-hero .hero-art {
    order: -1;
  }

  .book-hero .hero-art {
    order: -1;
  }

  .book-hero .hero-grid {
    gap: 22px;
    padding-block: 36px 72px;
  }

  .hero-copy {
    text-align: center;
  }

  .home-hero .hero-copy h1 {
    block-size: 3.25em;
  }

  .home-hero .hero-lead {
    block-size: 4.9em;
  }

  .home-hero .hero-note {
    block-size: 3.6em;
  }

  .hero-copy .eyebrow,
  .hero-lead,
  .hero-note,
  .quick-facts {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    min-height: 575px;
  }

  .home-hero .hero-art {
    min-height: 440px;
  }

  .book-hero .hero-art {
    min-height: 470px;
  }

  .cover-deck,
  .single-cover {
    width: min(72vw, 370px);
    height: 500px;
  }

  .option-grid.compact-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .review-grid,
  .review-grid[data-review-count="2"] {
    grid-template-columns: 1fr;
  }

  .book-hero .single-cover {
    height: 455px;
  }

  .home-hero .cover-deck {
    height: 390px;
  }

  .sticker-one {
    right: 5%;
  }

  .sticker-two {
    left: 4%;
  }

  .section {
    padding-block: 52px;
  }

  .author-grid,
  .story-grid,
  .together-card,
  .details-card,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .story-grid {
    gap: 34px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .together-card,
  .details-card {
    gap: 32px;
    padding: 32px;
  }

  .faq-layout {
    gap: 12px;
  }

  .final-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-page[data-book="spino"] .story-visual,
  .book-page[data-book="spino"] .story-copy,
  .book-page[data-book="music-blue"] .story-visual,
  .book-page[data-book="music-blue"] .story-copy {
    order: initial;
  }

  .book-page[data-book="spino"] .feature-card {
    transform: none;
  }
}

@media (max-width: 620px) {
  .site-header .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-header .brand img {
    transform: translateY(1px);
  }
}

@media (max-width: 580px) {
  h1 {
    font-size: clamp(2.45rem, 11vw, 3.2rem);
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .stem-resource-section {
    padding-top: 16px;
  }

  .stem-resource-card {
    width: min(calc(100% - 4px), var(--container));
  }

  .stem-resource-copy {
    padding: 28px 22px 32px;
  }

  .stem-resource-actions,
  .stem-resource-actions .button {
    width: 100%;
  }

  .stem-resource-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stem-resource-art {
    min-height: 270px;
  }

  .stem-resource-art span {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: .8rem;
  }

  .hero-grid {
    padding-top: 38px;
  }

  .home-hero .hero-grid {
    padding-block: 28px 50px;
  }

  .book-hero .hero-grid {
    gap: 16px;
    padding-block: 28px 62px;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .home-hero .hero-copy h1 {
    block-size: 5.3em;
  }

  .home-hero .hero-lead {
    block-size: 7.8em;
  }

  .home-hero .hero-note {
    block-size: 6.9em;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .survey-question {
    padding: 19px 16px;
  }

  .survey-question legend {
    font-size: 1.08rem;
  }

  .option-grid,
  .option-grid.compact-options {
    grid-template-columns: 1fr;
  }

  .survey-submit-row {
    align-items: stretch;
    flex-direction: column;
    padding: 19px 16px;
  }

  .survey-submit-row .button,
  .contact-action .button {
    width: 100%;
  }

  .contact-card {
    width: min(calc(100% - 28px), var(--container));
    padding: 25px 20px;
  }

  .quick-facts {
    width: 100%;
  }

  .quick-facts div {
    min-width: 0;
    flex: 1;
    padding: 11px 8px;
  }

  .quick-facts dt {
    font-size: 1.25rem;
  }

  .quick-facts dd {
    font-size: .68rem;
  }

  .hero-art {
    min-height: 520px;
  }

  .home-hero .hero-art {
    min-height: 380px;
  }

  .book-hero .hero-art {
    min-height: 410px;
  }

  .cover-deck,
  .single-cover {
    width: min(72vw, 310px);
    height: 430px;
  }

  .home-hero .cover-deck {
    height: 330px;
  }

  .book-hero .single-cover {
    height: 390px;
  }

  .rotating-book[data-stack-position="1"] {
    transform: translate(-18px, 10px) rotate(-5deg) scale(.97);
  }

  .rotating-book[data-stack-position="2"] {
    transform: translate(-50px, 22px) rotate(-10deg) scale(.92);
  }

  .cover-deck.is-fanning .rotating-book[data-stack-position="0"] {
    transform: translate(42px, -5px) rotate(7deg) scale(1.03);
  }

  .cover-deck.is-fanning .rotating-book[data-stack-position="1"] {
    transform: translate(-58px, 0) rotate(-12deg) scale(.97);
  }

  .cover-deck.is-fanning .rotating-book[data-stack-position="2"] {
    transform: translate(-98px, 18px) rotate(-17deg) scale(.92);
  }

  .cover-deck.is-fanning[data-motion-direction="previous"] .rotating-book[data-stack-position="4"] {
    transform: translate(-98px, 18px) rotate(-17deg) scale(.92);
  }

  .deck-arrow {
    top: 48%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .deck-arrow-prev {
    left: -7px;
  }

  .deck-arrow-next {
    right: -7px;
  }

  .cover-halo {
    width: 92vw;
    max-width: 420px;
  }

  .sticker {
    width: 98px;
    min-height: 73px;
    padding: 9px;
    font-size: .78rem;
  }

  .sticker-one {
    top: 6%;
    right: -1%;
  }

  .sticker-two {
    left: -1%;
    bottom: 18%;
  }

  .rotator-controls {
    bottom: -2px;
  }

  .rotator-pause span:last-child {
    display: none;
  }

  .book-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .book-card-cover {
    min-height: 340px;
  }

  .book-card-cover img {
    height: 292px;
  }

  .author-grid {
    gap: 52px;
  }

  .author-portrait {
    min-height: 370px;
  }

  .author-portrait img {
    height: 310px;
  }

  .author-portrait span {
    right: -5px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }

  .story-visual {
    min-height: 380px;
  }

  .story-orbit {
    transform: none;
  }

  .story-visual img {
    height: 300px;
  }

  .together-card,
  .details-card {
    width: min(calc(100% - 28px), var(--container));
    padding: 25px 21px;
  }

  .details-cover {
    min-height: 320px;
  }

  .details-cover img {
    height: 260px;
  }

  .interior-gallery-grid {
    gap: 38px;
  }

  .interior-gallery-card img {
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .interior-gallery-card figcaption {
    margin-top: 16px;
    padding-inline: 10px;
    text-align: left;
  }

  .book-details {
    grid-template-columns: 1fr;
  }

  .book-details > div,
  .book-details > div:nth-child(odd),
  .book-details > div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .book-details > div:last-child {
    border-bottom: 0;
  }

  .book-page {
    padding-bottom: 68px;
  }

  .book-page[data-book="sofia"] .book-signature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-page[data-book="sofia"] .feature-grid {
    grid-template-columns: 1fr;
  }

  .book-page[data-book="sofia"] .feature-card:first-child {
    display: block;
    grid-column: auto;
  }

  .book-page[data-book="sofia"] .feature-card:first-child::before {
    margin-bottom: 27px;
  }

  .book-page[data-book^="music"] .story-copy {
    padding: 23px;
  }

  .book-page[data-book^="music"] .feature-card {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 12px;
    bottom: 10px;
    left: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 18px;
    border: var(--border);
    border-radius: 999px;
    background: var(--pink);
    box-shadow: var(--shadow-small);
    font-family: var(--display);
    font-weight: 700;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
