header {
  position: static;
  padding-block: .55rem;
  background: white;
  border-bottom: 1px solid #e7e1df;
  color: #413842;
}
header .logo { width: 8.2rem; }
header .small-cta { border-color: #baaeb6; }
.story-intro { background: #f7f2f1; color: #483c47; }
.story-intro-inner {
  width: min(100% - 3rem, 62rem); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 39rem) minmax(0, 12rem);
  align-items: center; justify-content: space-between; gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.story-intro h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.story-intro p { font-size: 1.125rem; line-height: 1.6; margin: .7rem 0; max-width: 56ch; color: #514b51; }
.story-intro a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1rem; font-weight: bold; text-decoration: underline; text-underline-offset: .22em;
}
.story-intro img { width: 100%; max-width: 12rem; }
.reader { background: #fcfbf8; color: #35323a; padding: clamp(2rem, 4.5vw, 4rem) 6%; }
.reader h2 { font-size: clamp(1.85rem, 3.4vw, 3rem); }
.reader p { color: #514b51; }
.reader .section-heading > p:last-child { margin: .6rem auto 1.3rem; max-width: 55ch; }
.reader .cinema { max-width: min(100%, 44rem); margin-inline: auto; }
.reader .cinema video { mask-image: none; -webkit-mask-image: none; border-radius: .9rem; }
.reader .reading-details { margin-top: 2rem; }
.reader .reading-details span { color: #6c5865; }
@media (max-width: 600px) {
  .story-intro-inner { width: calc(100% - 2rem); grid-template-columns: minmax(0, 1fr) 19%; gap: .85rem; padding-block: 2rem; }
  .story-intro p { font-size: 1rem; }
  header .logo { width: 6rem; }
}

body {
  background: #fffaf3;
  color: #352e3b;
}
.story-wrap {
  width: min(calc(100% - 4rem), 71rem);
  margin-inline: auto;
}
.story-wrap h2, .story-download h2 {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.12;
  text-wrap: balance;
}
.story-wrap p, .story-wrap dd { color: #514a51; }
.story-wrap p, .story-wrap dd, .story-questions summary { font-size: 1.0625rem; line-height: 1.6; }
.intro-links { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.story-intro a, .book-link { color: #54415e; }
.book-link, .story-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.sample-shelf, .making, .family-guide, .story-questions { padding: clamp(2.6rem, 5vw, 4.8rem) 0; }
.sample-shelf { background: #fffaf3; border-block: 1px solid #e8ddd2; }
.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.8rem, 3.5vw, 3.1rem) clamp(1rem, 2.6vw, 2rem);
  margin-top: 1.6rem;
}
.book-sample { min-width: 0; }
.cover-mat {
  --mat: #f0dfce;
  display: grid;
  place-items: center;
  padding: 1.15rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, #ffffff50, transparent 72%), var(--mat);
  box-shadow: inset 0 -3px 0 #4635230c;
}
.book-sample:nth-child(2) .cover-mat { --mat: #e2e4f0; }
.book-sample:nth-child(3) .cover-mat { --mat: #d9e9e1; }
.book-sample:nth-child(4) .cover-mat { --mat: #e1e9d5; }
.book-sample:nth-child(5) .cover-mat { --mat: #ecdee8; }
.book-sample:nth-child(6) .cover-mat { --mat: #f1e5c7; }
.cover-mat img {
  width: clamp(7.6rem, 12vw, 9rem);
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  border-radius: .12rem .28rem .28rem .12rem;
  box-shadow: 1px 2px 2px #37253840, 4px 7px 10px -4px #37253855;
}
.book-sample h3 {
  margin: .9rem 0 .35rem;
  color: #433644;
  font: 400 clamp(1.35rem, 2vw, 1.7rem)/1.15 Kreebo, sans-serif;
  text-wrap: balance;
}
.story-wrap .book-sample p { margin: 0; font-size: 1rem; line-height: 1.45; }
.story-questions summary { cursor: pointer; font-weight: 700; padding-block: .65rem; }
.making { background: #fffaf3; }
.making-layout { display: grid; grid-template-columns: minmax(0, 33rem) minmax(0, 15rem); align-items: center; justify-content: center; gap: clamp(2rem, 8vw, 6rem); }
.making-layout p, .family-layout > div > p { margin: .85rem 0; }
.chat-example { width: 100%; border-radius: 1.05rem; box-shadow: 0 8px 15px -9px #43334a80; }
.story-cta { margin-top: .35rem; text-decoration: none; color: white; background: #63506b; padding: .7rem 1.3rem; border-radius: 2rem; }
.story-cta:hover { background: #4d3a55; }
.making-layout .purchase-note { font-size: .875rem; margin-bottom: 0; }
.family-guide { background: #eeeaf3; border-block: 1px solid #ded7e5; }
.family-layout { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: clamp(2rem, 7vw, 5rem); }
.family-layout dl, .family-layout dd { margin: 0; }
.family-layout dt { font-size: 1.12rem; font-weight: 700; }
.family-layout dd { margin-top: .22rem; }
.family-layout dd + dt { margin-top: 1.05rem; }
.story-questions { background: #fffdf9; }
.story-questions .story-wrap { max-width: 52rem; }
.story-questions h2 { margin-bottom: 1.1rem; }
.story-questions details { border-bottom: 1px solid #ddd7db; }
.story-questions summary { min-height: 46px; }
.story-questions details p { margin: .1rem 0 1rem; }
.story-download { padding: clamp(2.4rem, 5vw, 4.5rem) 1rem; text-align: center; background: #f7edde; }
.story-download .store-badges { margin: 1.2rem auto .45rem; }
footer { background: #fffdf9; color: #403941; border-color: #ddd7db; }
footer small { color: #645e66; }
@media (max-width: 850px) {
  .story-wrap { width: calc(100% - 2.25rem); }
}
@media (max-width: 680px) {
  .story-wrap { width: calc(100% - 2rem); }
  .making-layout, .family-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .chat-example { width: min(100%, 13rem); justify-self: center; }
  .intro-links { gap: 0 .85rem; }
}
@media (max-width: 590px) {
  .sample-grid { grid-template-columns: 1fr; gap: 1.65rem; }
  .book-sample { max-width: 25rem; width: 100%; justify-self: center; }
  .cover-mat { padding: .95rem; }
  .book-sample h3 { margin-top: .7rem; }
}
