body.book-page { max-width: 69rem; }
.book-page .shelves { grid-template-columns: 12rem minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 4rem); }
.book-page .shelves nav { position: sticky; top: 2rem; align-self: start; }
.book-page .shelves nav a { width: fit-content; }
.book-page .shelves section { padding: 1.5rem 0 3rem; scroll-margin-top: 1rem; }
.shelves h2 .count { margin-left: .35rem; font: 400 .95rem/1 system-ui, sans-serif; color: #686868; }
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem 1.2rem; padding: 0; margin: 1.4rem 0 0; list-style: none; }
.book-grid a { display: block; height: 100%; text-decoration: none; line-height: 1.35; }
.book-grid img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: contain; object-position: left bottom; margin-bottom: .65rem; }
.book-grid a:hover .book-title, .book-grid a:focus-visible .book-title { text-decoration: underline; }
.book-author { display: block; margin-top: .2rem; color: #666; font-size: .875rem; }
@media (max-width: 52rem) {
  .book-page .shelves { grid-template-columns: 1fr; }
  .book-page .shelves nav { position: static; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
}
@media (max-width: 40rem) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
