.books-page {
  padding: clamp(2.5rem, 7vw, 5rem) var(--page-pad);
}

.books-intro {
  max-width: 580px;
  margin-bottom: 3rem;
}

.books-intro h1,
.book-detail h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.book-shelf {
  display: grid;
  gap: 3rem;
}

.shelf-book {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.shelf-cover {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.shelf-cover img {
  width: auto;
  height: auto;
  max-height: 310px;
  box-shadow: 0 12px 30px #0006;
}

.shelf-copy h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.shelf-copy h2 a { text-decoration: none; }
.shelf-copy h2 a:hover { text-decoration: underline; }
.shelf-copy .eyebrow { margin-top: 0; }
.book-subtitle { margin: 0; color: var(--muted); }
.book-credit { color: var(--muted); font-size: 0.8rem; }
.book-about { display: inline-block; margin-block: 0.3rem 1rem; }

.book-purchase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.book-purchase a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--control-line);
  border-radius: 6px;
  font-size: 0.82rem;
  text-decoration: none;
}

.book-purchase a:hover { background: var(--surface-soft); }
.books-breadcrumb { margin-bottom: 2rem; font-size: 0.85rem; color: var(--muted); }
.book-sample, .book-sample-link, .book-next { margin-top: 3rem; }
.book-sample { max-width: 640px; margin-inline: auto; }
.book-sample h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; }
.book-sample blockquote { margin: 1rem 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.book-next { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.books-skip { position: absolute; left: 1rem; top: -5rem; background: var(--canvas); padding: 1rem; }
.books-skip:focus { top: 0.5rem; }

@media (max-width: 600px) {
  .shelf-book { grid-template-columns: minmax(0, 1fr); }
  .shelf-cover { justify-content: flex-start; }
  .shelf-cover img { max-width: 210px; max-height: 265px; }
}
