/* The illustrated opening spread and character guide */
.storybook-home { --berry: #713d4b; --deep-ink: #2a3332; --folio-paper: #fff8ec; }
.storybook-home .site-header { background: #fffdf8; }
.picture-book { padding-block: clamp(1.2rem, 3.3vw, 2.65rem); background: #f7ead9; border-bottom: 1px solid #e2d2b5; }
.spread-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: stretch; background: var(--folio-paper); box-shadow: 0 14px 33px #573a2028; }
.spread-illustration { min-width: 0; position: relative; background: #e4bb7c; }
.spread-illustration > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }
.spread-pip { position: absolute; left: 1rem; top: .8rem; max-width: calc(100% - 2rem); border: 1px solid #ddc495; border-radius: .3rem; color: #49361e; background: #fff7e5; }
.spread-pip summary { cursor: pointer; padding: .4rem .67rem; font-size: .83rem; font-weight: 750; }
.spread-pip p { font-size: .82rem; padding-inline: .67rem; margin: 0 0 .55rem; }
.spread-page {
  padding: clamp(1.4rem, 4.6vw, 4rem) clamp(1.55rem, 4.4vw, 4.1rem);
  background: linear-gradient(90deg, #d4ae753b, transparent 6%), var(--folio-paper);
}
.spread-page h1 { color: var(--deep-ink); font-family: var(--serif); font-weight: 700; font-size: clamp(2.7rem, 4.8vw, 5rem); line-height: .99; letter-spacing: -.069em; text-wrap: balance; }
.spread-page h1 span { color: var(--berry); white-space: nowrap; }
.spread-page > p { color: #523f39; font-size: clamp(1rem, 1.6vw, 1.17rem); line-height: 1.46; max-width: 34ch; margin: .75rem 0 1rem; }
.spread-start { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.12rem; }
.spread-cover { width: clamp(3.75rem, 8vw, 7.5rem); flex: 0 0 auto; }
.spread-cover img { box-shadow: 3px 4px #a98954, 4px 9px 15px #4d342b39; border-radius: .17rem .28rem .28rem .17rem; }
.spread-links { display: flex; flex-wrap: wrap; align-items: center; gap: .18rem .85rem; }
.spread-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: .93rem; font-weight: 730; }
.spread-shop { color: #fff; padding-inline: .83rem; border-radius: .38rem; background: var(--berry); text-decoration: none; }
.spread-shop:hover { background: #562433; }
.spread-free { color: #365951; padding-inline: .13rem; }
.spread-free span { margin-left: .35rem; }
.cast-section { padding-block: clamp(1.55rem, 4vw, 3.2rem); border-bottom: 1px solid var(--line); }
.cast-section h2 { color: var(--deep-ink); font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.cast-grid { margin: 1rem 0 .8rem; padding: 0; list-style: none; display: grid; gap: 1.15rem .7rem; }
.cast-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 43rem; }
.cast-full { grid-template-columns: repeat(auto-fit, minmax(7.2rem, 1fr)); }
.cast-person { min-width: 0; justify-self: stretch; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cast-image { background: #e9d4af; border: 2px solid #fffaf2; outline: 1px solid #d8bf91; border-radius: 50%; width: clamp(3.65rem, 18vw, 7.2rem); aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; }
.cast-image img { width: 100%; height: 100%; object-fit: cover; }
.cast-pip img { width: 60%; height: auto; border-radius: 35%; }
.cast-portrait img { object-position: center 6%; }
.cast-name { margin-top: .3rem; font-family: var(--serif); color: #2a3332; font-size: clamp(.94rem, 2.4vw, 1.3rem); font-weight: 700; }
.cast-person small { color: #67584a; line-height: 1.3; }
.cast-rest { margin-top: .75rem; }
.cast-rest summary { min-height: 44px; cursor: pointer; padding-block: .45rem; color: var(--berry); font-weight: 750; width: fit-content; }
@media (max-width: 720px) {
  .storybook-home .site-header nav { gap: .1rem .58rem; }
  .picture-book { padding-top: 0; padding-bottom: 0; }
  .spread-grid { width: 100%; grid-template-columns: minmax(0, 1fr); box-shadow: none; }
  .spread-illustration { min-height: clamp(223px, 64vw, 359px); }
  .spread-pip { left: .7rem; top: .72rem; }
  .spread-pip summary { font-size: .77rem; }
  .spread-page { padding: 1.05rem 1rem 1.22rem; background: var(--folio-paper); }
  .spread-page h1 { font-size: clamp(2.15rem, 9vw, 3.65rem); letter-spacing: -.059em; text-wrap: unset; }
  .spread-page > p { margin: .43rem 0 .73rem; font-size: .98rem; }
  .spread-start { flex-wrap: nowrap; gap: .8rem; }
  .spread-cover { width: 4.15rem; }
  .spread-links { gap: .12rem .65rem; }
  .spread-links a { font-size: .84rem; }
  .spread-shop { padding-inline: .55rem; }
  .cast-section { padding-block: 1.18rem 1.4rem; }
  .cast-section h2 { font-size: 2.12rem; }
  .cast-featured { gap: .35rem; margin-top: .7rem; }
  .cast-full { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cast-person small { font-size: .74rem; }
  .cast-rest { margin-top: .47rem; }
}

.series-opening .spread-illustration { min-height: clamp(26rem, 43vw, 33rem); }
.series-opening .spread-illustration > img { object-position: center 69%; }
.series-opening .spread-page { align-content: center; }
.series-opening .spread-pip { inset: auto .8rem .8rem auto; max-width: min(16rem, calc(100% - 1.6rem)); }
.series-opening .spread-start { column-gap: 1.2rem; }
.series-covers { display: flex; flex: 0 0 auto; align-items: end; gap: .6rem; }
.series-covers .spread-cover { width: clamp(3.05rem, 6vw, 6rem); }
@media (max-width: 720px) {
  .series-opening .spread-illustration { min-height: clamp(290px, 78vw, 388px); }
  .series-opening .spread-illustration > img { object-position: center 69%; }
  .series-opening .spread-pip { inset: auto .65rem .55rem auto; }
  .series-opening .spread-start { column-gap: .85rem; }
  .series-covers .spread-cover { width: clamp(2.48rem, 13vw, 3.45rem); }
}

.series-opening .spread-page h1 span { display: block; white-space: normal; }
.series-opening .spread-page h1 .series-name { color: var(--deep-ink); font-size: clamp(2.45rem, 4.25vw, 4.55rem); }
.series-opening .spread-page h1 .series-tagline {
  color: var(--berry);
  font-size: clamp(1.85rem, 3vw, 3rem);
  letter-spacing: -.04em;
  margin-top: .2em;
}
@media (max-width: 720px) {
  .series-opening .spread-page h1 .series-name { font-size: clamp(1.7rem, 7.55vw, 3.45rem); }
  .series-opening .spread-page h1 .series-tagline { font-size: clamp(1.48rem, 6.48vw, 2.4rem); }
}
