/* The books supply the colour and character; the page gives them room. */
.storybook-hero { padding-top: calc(var(--header-height) + 56px); background: #fff; overflow: clip; }
.storybook-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 24px; }
.storybook-intro { position: relative; z-index: 1; padding-bottom: 44px; }
.storybook-intro .section-label { font-size: .8125rem; letter-spacing: .12em; }
.storybook-intro h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.8rem, 5.1vw, 4.8rem); line-height: 1.08; letter-spacing: -.035em; margin: 20px 0 26px; }
.storybook-intro h1 em { color: var(--strawberry); font-weight: inherit; }
.storybook-intro > p:not(.hero-byline) { max-width: 480px; font-size: 1.125rem; line-height: 1.8; color: var(--text-secondary); }
.storybook-intro .hero-actions { margin-top: 28px; align-items: center; gap: 20px; }
.hero-byline { margin-top: 22px; font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-style: italic; color: var(--text-secondary); }
.storybook-art { min-width: 0; position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.rainbow-art { width: 100%; height: 440px; object-fit: cover; object-position: 74% bottom; }
.storybook-art figcaption { font-family: 'Playfair Display', Georgia, serif; font-size: 1.125rem; font-style: italic; text-align: center; padding: 16px 0 28px; transform: rotate(-3deg); color: var(--text-secondary); }
.homepage-paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding-top: 24px; padding-bottom: 26px; border-top: 1px solid var(--warm-gray-200); }
.homepage-paths a { padding: 0 24px; border-left: 1px solid var(--warm-gray-200); color: var(--text-primary); }
.homepage-paths a:first-child { padding-left: 0; border: 0; }
.homepage-paths span { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; }
.homepage-paths small { color: var(--text-secondary); font-size: .9375rem; }
.homepage-paths a:hover span { color: var(--strawberry); text-decoration: underline; text-underline-offset: 5px; }
.trust-strip { padding: 20px 0; }
.trust-label { font-size: .8125rem; }
.trust-items { font-size: .875rem; }
.about-section { padding: 88px 0; }
.family-photo { padding: 12px 12px 0; background: #fff; border: 1px solid var(--warm-gray-200); box-shadow: 0 16px 28px rgba(46,43,39,.07); transform: rotate(-2deg); }
.family-photo img { width: 100%; height: auto; aspect-ratio: 1.4; object-fit: cover; border-radius: 0; }
.family-photo figcaption { text-align: center; padding: 16px 8px; font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-style: italic; color: #433f39; }
.about-actions { flex-wrap: wrap; }
.books-section { background: var(--warm-gray-50); }
.books-section .section-header { margin-bottom: 48px; }
.books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.book-card { border-radius: 8px; box-shadow: none; background: var(--cream); }
.book-card-featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.book-card-featured .book-image { height: 100%; min-height: 360px; }
.book-image { min-height: 0; padding: 36px 28px; align-items: center; background: #f1efdc; }
.book-card:nth-child(3n) .book-image { background: #e0efeb; }
.book-card:nth-child(4n) .book-image { background: #e4edf3; }
.book-card:nth-child(5n) .book-image { background: #f4e6df; }
.book-image img { width: 100%; max-width: 250px; height: auto; aspect-ratio: 1; object-fit: contain; box-shadow: 3px 5px 0 #fff, 5px 6px 0 #b8b2a4, 12px 18px 22px rgba(46,43,39,.18); transform: rotate(-3deg); }
.book-card:nth-child(even) .book-image img { transform: rotate(3deg); }
.book-card:hover { transform: translateY(-3px); }
.book-card:hover .book-image img { transform: rotate(0); }
.book-badge { font-size: .75rem; top: 12px; left: 12px; }
.book-content { padding: 28px; }
.book-content p.book-note { font-size: .875rem; color: var(--text-secondary); flex: none; margin-bottom: 12px; font-style: italic; }
.book-content h3 { font-size: 1.65rem; line-height: 1.2; margin-bottom: 16px; }
.book-content h3 a { color: var(--text-primary); }
.book-content > p { font-size: 1rem; line-height: 1.7; }
.book-themes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.book-themes li { font-size: .8125rem; padding: 4px 10px; border: 1px solid var(--warm-gray-200); border-radius: 100px; color: var(--text-secondary); }
.book-explore { font-size: 1rem; font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.book-opening { display: grid; grid-template-columns: .85fr 1fr; gap: 80px; align-items: center; padding-top: calc(var(--header-height) + 60px); padding-bottom: 72px; }
.book-cover-stage { padding: 56px 44px 28px; background: #eeeeda; text-align: center; border-radius: 50% 50% 8px 8px; }
.book-cover-stage img { width: 100%; max-width: 354px; margin: auto; box-shadow: 4px 5px 0 #fff, 6px 7px 0 #c2bdaf, 16px 20px 30px #28201030; transform: rotate(-4deg); }
.book-cover-stage span { display: block; margin-top: 32px; color: #433f39; font-size: .9375rem; }
.book-back { display: inline-block; margin-bottom: 30px; text-decoration: underline; text-underline-offset: 4px; font-size: .9375rem; }
.book-opening-copy .section-label { display: block; font-size: .875rem; letter-spacing: .05em; }
.book-opening h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2.5rem,4vw,3.7rem); line-height: 1.12; margin: 16px 0 24px; }
.book-description { font-size: 1.1875rem; line-height: 1.8; margin-bottom: 24px; }
.publisher-note { font-size: .875rem; margin-top: 16px; max-width: 380px; color: var(--text-secondary); }
.book-art-section { display: grid; grid-template-columns: .6fr 1fr; gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.book-page h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.9rem,3vw,2.7rem); line-height: 1.2; margin: 16px 0; }
.book-art-section img { width: 100%; height: auto; border-radius: 8px; }
.book-art-section figcaption { font-size: .875rem; margin-top: 12px; color: var(--text-secondary); }
.book-conversations { background: var(--warm-gray-50); padding: 64px 0; border-block: 1px solid var(--warm-gray-200); }
.conversation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.conversation-grid em { color: var(--strawberry); }
.conversation-grid p { font-size: 1.0625rem; color: var(--text-secondary); max-width: 460px; }
.conversation-grid ul { list-style: none; }
.conversation-grid li { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; padding: 24px 0; line-height: 1.5; border-bottom: 1px solid var(--warm-gray-200); }
.book-real-story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-top: 80px; padding-bottom: 80px; }
.book-real-story img { width: 100%; height: auto; max-height: 360px; object-fit: cover; border-radius: 12px; }
.book-real-story p { font-size: 1.0625rem; margin-bottom: 20px; }
.more-books { padding-bottom: 80px; }
.more-books > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; margin-top: 32px; }
.more-books a { color: var(--text-primary); font-size: 1rem; font-weight: 700; }
.more-books img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; margin-bottom: 16px; }
/* Content stays available even if JavaScript or animation is unavailable. */
.reveal { opacity: 1; transform: none; }
html.dark-mode .storybook-hero { background: var(--cream); }
html.dark-mode .rainbow-art { border-radius: 12px; }
@media (max-width: 900px) {
  .storybook-hero-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rainbow-art { height: 360px; }
  .books-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .book-card-featured { grid-column: span 2; }
  .book-opening { gap: 32px; }
  .book-art-section, .book-real-story, .conversation-grid { gap: 32px; }
}
@media (max-width: 760px) {
  .storybook-hero { padding-top: calc(var(--header-height) + 28px); }
  .storybook-hero-grid { grid-template-columns: minmax(0,1fr); }
  .storybook-intro { padding-bottom: 0; }
  .storybook-intro h1 { font-size: clamp(2.6rem,10.7vw,3.5rem); }
  .storybook-intro > p:not(.hero-byline) { font-size: 1.0625rem; }
  .storybook-intro .hero-actions { gap: 16px; margin-top: 24px; }
  .rainbow-art { height: 260px; object-position: 70% bottom; }
  .storybook-art figcaption { font-size: 1rem; padding: 12px 0 24px; }
  .homepage-paths { grid-template-columns: minmax(0,1fr); gap: 0; padding-block: 8px; }
  .homepage-paths a, .homepage-paths a:first-child { border-left: 0; padding: 14px 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; border-bottom: 1px solid var(--warm-gray-100); }
  .homepage-paths span { font-size: 1.125rem; }
  .homepage-paths small { font-size: .875rem; }
  .about-section, .books-section { padding: 56px 0; }
  .about-grid { gap: 32px; }
  .family-photo { transform: none; }
  .family-photo figcaption { font-size: .9375rem; }
  .books-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .book-card-featured { grid-column: auto; display: flex; }
  .book-card-featured .book-image { min-height: 0; }
  .book-content { padding: 24px; }
  .book-image { padding: 36px; }
  .book-opening { display: flex; flex-direction: column; padding-top: calc(var(--header-height) + 32px); padding-bottom: 40px; }
  .book-cover-stage { width: 100%; max-width: 340px; padding: 36px 44px 24px; }
  .book-opening-copy { width: 100%; }
  .book-opening h1 { font-size: 2.5rem; }
  .book-back { margin-bottom: 24px; }
  .book-description { font-size: 1.125rem; }
  .book-art-section, .conversation-grid, .book-real-story { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .book-art-section { padding-top: 12px; padding-bottom: 48px; }
  .book-conversations { padding: 40px 0; }
  .book-real-story { padding-block: 48px; }
  .more-books > div { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
}

/* Keep editorial accents readable against the existing dark-mode background. */
html.dark-mode .storybook-intro h1 em,
html.dark-mode .text-link,
html.dark-mode .section-label,
html.dark-mode .highlight,
html.dark-mode .book-explore,
html.dark-mode .book-back,
html.dark-mode .conversation-grid em { color: #f49385; }
