body {
  background: #fff6dc;
  color: #273e4c;
}
.storybook {
  --paper: #fff6dc;
  --ink: #273e4c;
  --accent: #2b5362;
  font-family: "DM Sans", sans-serif;
}
.book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 5%;
  background: #fff6dc;
}
.book-header > a:first-child {
  font-weight: 850;
  letter-spacing: -0.075em;
  font-size: clamp(23px, 2.7vw, 38px);
}
.book-header > a:last-child {
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.jacket {
  margin: 0 4%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: #a6cccf;
  border-radius: 24px 44px 44px 24px;
  box-shadow:
    0 6px 0 #e4d5a9,
    0 9px 0 #c5b98d;
  overflow: hidden;
  border-left: 14px solid #447779;
  min-height: 385px;
}
.kids-copy {
  align-self: center;
  padding: 7% 0 9% 12%;
}
.kids-copy > p {
  font-size: 14px;
  font-weight: 650;
  margin: 0;
}
.kids-copy h1 {
  font:
    750 clamp(65px, 7.6vw, 127px) / 0.86 "DM Sans",
    sans-serif;
  color: #2b4751;
  letter-spacing: -0.09em;
  margin: 22px 0 24px;
}
.kids-copy h1 em {
  font:
    italic 400 1.05em/0.88 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.05em;
}
.kids-copy a {
  display: inline-flex;
  background: #fae6a2;
  border: 1px solid #819784;
  border-radius: 14px;
  padding: 10px 15px;
  font-weight: 700;
}
.drawing {
  display: grid;
  align-items: end;
}
.drawing svg {
  display: block;
  width: 100%;
  height: auto;
}
.peek {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 6%;
  padding: 5% 8%;
}
.storybook h2 {
  font:
    650 clamp(37px, 4.8vw, 72px) / 0.99 "DM Sans",
    sans-serif;
  letter-spacing: -0.065em;
  margin: 0;
}
.peek figure {
  margin: 0;
  padding: 7px;
  background: white;
  transform: rotate(1deg);
  border: 1px solid #e4d4b8;
}
.peek img {
  width: 100%;
  height: clamp(160px, 17vw, 230px);
  object-fit: cover;
}
.peek figcaption {
  font-size: 12px;
  padding: 4px;
}
.chapters {
  padding: 32px 6% 5%;
  background: #efd5b0;
}
.chapters > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  margin-top: 22px;
}
.chapter {
  border-radius: 18px;
  padding: 20px;
  background: #f9eabf;
  box-shadow: 0 3px 0 #bb9a79;
}
.chapter:nth-child(2) {
  background: #f2c8c7;
}
.chapter:nth-child(3) {
  background: #c9dfd3;
}
.chapter > span {
  font-size: 13px;
  font-weight: 600;
}
.chapter h3 {
  font:
    400 clamp(29px, 2.8vw, 43px) / 1 "Instrument Serif",
    serif;
  margin: 12px 0;
}
.chapter p {
  font-size: 15px;
}
.chapter b {
  font-size: 14px;
}
.grownups {
  padding: 4% 6%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 7%;
  background: #f4ead4;
}
.grownups h2 {
  font-size: 36px;
}
.grownups summary {
  cursor: pointer;
  text-decoration: underline;
}
@media (max-width: 650px) {
  .book-header > a:last-child {
    font-size: 12px;
  }
  .jacket {
    grid-template-columns: 1fr;
    min-height: 0;
    border-left-width: 9px;
  }
  .kids-copy {
    padding: 22px 8% 0;
  }
  .kids-copy h1 {
    font-size: 65px;
    margin: 12px 0;
  }
  .drawing {
    justify-items: end;
  }
  .drawing svg {
    width: 78%;
    margin-top: -14px;
  }
  .peek,
  .grownups {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 7%;
  }
  .chapters {
    padding: 32px 6%;
  }
  .chapters > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .chapter {
    padding: 14px 18px;
  }
  .chapter h3 {
    margin: 5px 0;
  }
  .chapter p {
    margin: 7px 0;
  }
}

.storybook {
  --inquiry-bg: #f8eacd;
  --inquiry-ink: #2b4452;
  --inquiry-button: #365768;
  --inquiry-button-text: #fff;
}
.storybook > header a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}
.storybook > header a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kids-copy a,
.chapter {
  text-decoration: none;
}
.kids-copy a:hover,
.chapter:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.read-together,
.cubby,
.sibling-seat,
.family-invite {
  padding: 6% 7%;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5%;
  align-items: center;
}
.read-together {
  background: #dbe9cd;
}
.reading-title > p:first-child,
.family-invite > div > p:first-child {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 13px;
}
.storybook :is(.read-together, .cubby, .sibling-seat, .family-invite) h2 {
  font:
    700 clamp(35px, 5.6vw, 80px) / 0.94 "DM Sans",
    sans-serif;
  letter-spacing: -0.075em;
  margin: 0 0 0.3em;
}
.reading-title p,
.cubby p,
.family-invite p {
  max-width: 39ch;
}
.flip-leaf {
  background: #fffae9;
  border-radius: 14px 30px 25px 12px;
  border-left: 9px solid #669383;
  box-shadow:
    0 4px #cfc4a6,
    0 8px #b1ac8f;
  padding: 18px 20px;
  perspective: 600px;
}
.book-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.book-tabs button {
  background: transparent;
  border: 1px solid #a5b39e;
  cursor: pointer;
  color: #203c43;
  border-radius: 14px;
  padding: 8px 12px;
  font-weight: 600;
  min-height: 44px;
}
.book-tabs button[aria-pressed="true"] {
  background: #315b58;
  color: white;
  border-color: #315b58;
}
.flip-leaf article {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  transform-origin: left center;
}
.flip-leaf article svg {
  max-width: 100%;
  width: 100%;
  display: block;
  background: #c4dfe0;
  border-radius: 40% 40% 35% 40%;
}
.flip-leaf article small {
  font-size: 12px;
}
.flip-leaf h3 {
  font-size: clamp(20px, 2.4vw, 33px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0.25em 0;
}
.flip-leaf article[hidden] {
  display: none;
}
.flip-leaf article.turn {
  animation: turn-sheet 0.45s cubic-bezier(0.25, 0.7, 0.4, 1) both;
}
@keyframes turn-sheet {
  from {
    transform: rotateY(-33deg) skewY(1deg);
  }
  to {
    transform: none;
  }
}
.read-together.in-view .flip-leaf {
  animation: book-settle 0.65s ease-out both;
}
@keyframes book-settle {
  from {
    transform: rotate(-3deg) translateY(5px);
  }
  to {
    transform: rotate(0);
  }
}
.cubby {
  background: #f7e7b3;
  grid-template-columns: 1.2fr 1fr;
}
.cubby figure {
  margin: 0;
  position: relative;
  transform: rotate(-1.3deg);
  background: #fff9e4;
  padding: 10px 10px 12px;
  box-shadow: 0 2px 5px #59427028;
}
.cubby img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
}
.cubby figcaption {
  font-size: 12px;
  text-align: center;
  margin-top: 6px;
}
.cubby p + p {
  margin-top: 12px;
}
.sibling-seat {
  background: #f4dfca;
  border-bottom: 4px dashed #fff6dc;
}
.sibling-seat > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sibling-seat b {
  display: block;
  margin-bottom: 5px;
}
.family-invite {
  background: #bcd8cc;
  align-items: start;
  border-block: 7px double #668b7c;
}
.family-invite form {
  background: #fff7d9;
  border-radius: 22px;
  padding: 20px 24px;
  display: grid;
  gap: 12px;
  border: 2px solid #597d71;
}
.family-invite button {
  border: 0;
  border-radius: 20px;
  padding: 0.75em 1em;
  background: #304f53;
  color: white;
  justify-self: start;
}
.storybook-end {
  padding: 34px 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
.storybook-end > span {
  font:
    bold 30px/1 "DM Sans",
    sans-serif;
  letter-spacing: -0.05em;
}
.storybook-end i {
  font:
    italic 36px "Instrument Serif",
    serif;
}
.storybook-end address,
.storybook-end a {
  font-size: 13px;
}
.storybook-end a {
  text-decoration: underline;
}
@media (max-width: 650px) {
  .read-together,
  .cubby,
  .sibling-seat,
  .family-invite {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 40px 6%;
  }
  .cubby {
    padding-block: 50px;
  }
  .flip-leaf {
    padding: 12px;
  }
  .sibling-seat > div {
    grid-template-columns: 1fr;
  }
  .family-invite form {
    padding: 18px;
  }
}
@media (max-width: 420px) {
  .flip-leaf article {
    grid-template-columns: 1fr;
  }
  .flip-leaf article svg {
    max-width: 140px;
  }
}

#inquiry form label {
  display: grid;
  gap: 0.4em;
  align-content: start;
  min-width: 0;
}
#inquiry form :is(select, input, textarea) {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  padding: 0.7em;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0;
  font: inherit;
}
#inquiry form option {
  color: #202520;
  background: white;
}
#inquiry form output {
  display: block;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#inquiry form output:empty {
  display: none;
}
#inquiry button {
  cursor: pointer;
  min-height: 44px;
}
#inquiry a {
  color: inherit;
}

.cubby img {
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.storybook {
  background: #fdf8e7;
}
.open-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 18px 4% 38px;
  background: #6f8c79;
}
.open-book:after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 38px;
  left: calc(50% - 8px);
  width: 16px;
  background: linear-gradient(90deg, transparent, #495b4c4a, transparent);
  pointer-events: none;
}
.open-book .jacket {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 6%;
  border: 0;
  border-radius: 18px 0 0 18px;
  background: #ffdea6;
  box-shadow:
    0 6px #e9d4ab,
    0 10px #375747;
  position: relative;
  min-height: 0;
}
.open-book .kids-copy {
  z-index: 1;
}
.open-book .jacket h1 {
  font:
    700 clamp(59px, 7.6vw, 111px) / 0.89 "Young Serif",
    Georgia,
    serif;
  letter-spacing: -0.066em;
}
.open-book .jacket h1 em {
  font-family: inherit;
}
.open-book .drawing {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 330px;
  align-self: flex-end;
  margin-top: -15px;
}
.open-book .drawing svg {
  width: 100%;
  max-height: 220px;
}
.open-book .read-together {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: #fff8da;
  padding: 7%;
  border-radius: 0 18px 18px 0;
  box-shadow:
    0 6px #e9d4ab,
    0 10px #375747;
}
.open-book .read-together h2 {
  font:
    400 clamp(35px, 4vw, 62px) / 1 "Young Serif",
    Georgia,
    serif;
  letter-spacing: -0.055em;
}
.open-book .flip-leaf {
  width: 100%;
  margin-top: 14px;
  background: #fffcf0;
  box-shadow: none;
}
.open-book .flip-leaf article {
  grid-template-columns: 1fr;
  text-align: center;
}
.open-book .flip-leaf article svg {
  max-height: 145px;
  width: 100%;
  margin: auto;
}
.book-tabs {
  justify-content: center;
}
.photo-pages,
.caregiver-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.photo-pages .peek,
.photo-pages .cubby {
  padding: 7%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}
.photo-pages .peek figure {
  order: -1;
}
.photo-pages figure {
  margin: 0;
}
.photo-pages img {
  height: clamp(165px, 18vw, 285px);
  width: 100%;
  object-fit: cover;
}
.caregiver-notes .sibling-seat,
.caregiver-notes .grownups {
  padding: 8%;
  display: block;
}
.caregiver-notes h2 {
  margin-bottom: 18px;
}
.storybook .family-invite {
  background: #cce5da;
}
@media (max-width: 730px) {
  .open-book {
    grid-template-columns: 1fr;
    padding: 14px 5% 22px;
    gap: 3px;
  }
  .open-book:after {
    display: none;
  }
  .open-book .jacket {
    border-radius: 10px 10px 0 0;
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 2px;
    align-items: center;
    box-shadow: none;
    padding: 20px 5%;
  }
  .open-book .drawing {
    margin: 0;
    align-self: center;
  }
  .open-book .jacket h1 {
    font-size: clamp(37px, 9vw, 66px);
  }
  .open-book .read-together {
    border-radius: 0 0 10px 10px;
    padding: 18px 5%;
  }
  .open-book .flip-leaf article {
    grid-template-columns: 0.65fr 1fr;
    text-align: left;
  }
  .open-book .flip-leaf article svg {
    max-height: 110px;
  }
  .photo-pages,
  .caregiver-notes {
    grid-template-columns: 1fr;
  }
  .photo-pages .peek,
  .photo-pages .cubby {
    padding: 26px 6%;
  }
}

@media (min-width: 731px) {
  .open-book .drawing {
    width: 95%;
    max-width: 460px;
    margin-top: -16px;
  }
  .open-book .drawing svg {
    max-height: 280px;
  }
  .open-book .jacket {
    justify-content: center;
  }
}
