.books-page {
  padding-top: 48px;
}
.books-page > .eyebrow {
  text-align: center;
}
.books-page > h1 {
  max-width: none;
  margin: 0.15em 0 0.35em;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 800;
  text-align: center;
}
.genre-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 48px;
}
.genre-filter a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.genre-filter a:hover,
.genre-filter a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.books-page .book-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 64px 32px;
}
.books-page .book-grid article {
  min-width: 0;
  text-align: center;
}
.books-page .book-grid article > a {
  display: block;
}
.books-page .cover-placeholder {
  width: 180px;
  aspect-ratio: auto;
  margin: 0 auto 20px;
  background: transparent;
}
.books-page .cover-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 14px 34px rgba(42, 38, 31, 0.13);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.books-page .book-grid a:hover .cover-placeholder img,
.books-page .book-grid a:focus-visible .cover-placeholder img {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(42, 38, 31, 0.19);
}
.books-page .book-grid h2 {
  margin: 0.35em 0;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.books-page .book-grid p,
.books-page .book-genre {
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}
.books-page .book-subtitle {
  font-size: 0.9rem;
  line-height: 1.6;
}
.book-genre {
  display: block;
  margin-top: 14px;
  color: var(--accent);
}
.book-detail {
  padding: 80px 0 140px;
}
.book-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 42px;
  padding-bottom: 100px;
  text-align: center;
}
.book-intro-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 780px);
}
.book-intro h1 {
  max-width: 900px;
  margin: 0.18em 0 0.28em;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
}
.metadata {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  color: var(--muted);
}
.metadata span + span:before {
  content: "·";
  margin-right: 14px;
}
.lead {
  max-width: 660px;
  margin: 28px auto 0;
  font-size: 1.15rem;
  line-height: 1.8;
}
.detail-cover {
  display: flex;
  width: min(300px, 70vw);
  min-height: 420px;
  align-items: center;
  justify-content: center;
}
.detail-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  box-shadow: 0 22px 55px rgba(42, 38, 31, 0.2);
}
.reading {
  width: min(100%, 760px);
  margin: 0 auto;
}
.content-section {
  width: 100%;
  margin-inline: auto;
  border-top: 1px solid var(--line);
  padding: 50px 0;
}
.content-section > span {
  color: var(--accent);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-weight: 600;
}
.content-section h3 {
  margin: 0.4em 0 1.1em;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
}
.prose {
  width: 100%;
  margin-inline: auto;
  white-space: pre-line;
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  font-size: 1.06rem;
  line-height: 2;
}
.purchase {
  max-width: 760px;
  margin: 70px auto;
  padding: 35px 0;
  border-top: 1px solid var(--line);
}
.purchase small {
  display: block;
  margin-top: 15px;
  color: var(--muted);
}
.curated-books {
  list-style: none;
  padding: 0;
  margin-top: 80px;
}
.curated-books li {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.curated-books a {
  display: flex;
  justify-content: space-between;
}
.curated-books strong {
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 1.35rem;
}
.curated-books small {
  color: var(--muted);
}
@media (max-width: 950px) {
  .books-page .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .books-page .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 20px;
  }
  .books-page .cover-placeholder {
    width: min(150px, 100%);
  }
  .book-detail {
    padding-top: 50px;
  }
  .book-intro {
    gap: 32px;
    padding-bottom: 72px;
  }
  .detail-cover {
    width: min(240px, 68vw);
    min-height: 330px;
  }
  .metadata {
    flex-wrap: wrap;
  }
  .content-section {
    padding: 38px 0;
  }
}
