/* Family Bookshelf: softer, daytime picture-book look, distinct from the Christmas Advent night palette. */
.shelf { background: #f6efe3; color: #2d2533; }
.shelf .book-shell { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 6rem; }
.shelf .book-back a { color: #6a4c8c; font-weight: 600; text-decoration: none; }
.shelf h1, .shelf h2 { color: #3b2a55; font-family: var(--display, Georgia, serif); }
.shelf .season-script { color: #b0662f; font-size: 1.6rem; margin: 0; }
.book-cover, .book-still { margin: .6rem 0 1rem; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px #3b2a5533; background: #fff; }
.book-cover img, .book-still img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .18s ease; }
.book-still img.turning { opacity: 0; }
.book-by { color: #6d6177; margin-top: -.2rem; }
.book-notice { background: #fff8e8; border: 1px solid #e9c98a; border-left: 6px solid #e0a64b; border-radius: 14px; padding: .9rem 1rem; margin: 1rem 0; }
.book-notice h2 { font-size: 1.05rem; margin: 0 0 .35rem; }
.book-notice p { margin: 0; line-height: 1.5; }
.shelf .open-cta { margin: .4rem 0 .6rem; }
.book-count { color: #6d6177; font-weight: 600; margin: .2rem 0 0; }
.book-text { font: 400 1.22rem/1.65 var(--display, Georgia, serif); color: #2d2533; }
.book-text p { margin: 0 0 .85rem; }
.shelf .book-player { background: #3b2a55; color: #fbf3e6; border-radius: 16px; padding: .7rem .9rem; margin: 0 0 1rem; }
.shelf .book-player .pl-row { display: flex; align-items: center; gap: .6rem; }
.shelf .book-player .pl-play { min-width: 88px; min-height: 48px; border-radius: 12px; background: #f3c461; color: #2b1d3d; border: 0; font-weight: 700; }
.shelf .book-player .pl-bar { flex: 1; accent-color: #f3c461; }
.shelf .book-player .pl-label { margin: 0 0 .4rem; font-size: .85rem; opacity: .85; }
.book-auto { display: block; margin-top: .45rem; font-size: .95rem; }
.book-nav { display: flex; justify-content: space-between; gap: .8rem; margin: 1rem 0; }
.book-nav > * { flex: 1; min-height: 52px; font-size: 1.05rem; }
.book-grownups { margin-top: 2rem; padding: 1rem; border-top: 2px dashed #d9c7a8; }
.book-grownups h2 { font-size: 1.2rem; }
.buy-book { display: inline-block; background: #3b2a55; color: #fff; padding: .85rem 1.2rem; border-radius: 12px; text-decoration: none; font-weight: 700; min-height: 48px; }
.book-dedication { font-style: italic; color: #6d6177; }
.shelf .small { font-size: .9rem; }
.shelf :focus-visible { outline: 3px solid #6a4c8c; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .book-still img { transition: none; } }
/* Bookshelf section on the home page */
.bookshelf-section { padding: 2rem 1rem; background: #f6efe3; color: #2d2533; border-radius: 22px; margin: 2rem auto; max-width: 1100px; }
.bookshelf-section h2 { color: #3b2a55; }
.bookshelf-section .season-script { color: #b0662f; }
.shelf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.shelf-card { display: block; background: #fff; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: 0 6px 18px #3b2a5522; }
.shelf-card img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.shelf-card div { padding: .8rem 1rem 1rem; }
.shelf-card h3 { margin: 0 0 .2rem; color: #3b2a55; }
.shelf-card .tag { display: inline-block; background: #fff1d6; color: #7a4a12; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; margin: .3rem .3rem 0 0; }
.shelf-next { color: #6d6177; margin-top: 1rem; }
