/* BOOK PAGE + BOOK INDEX CSS */

.book-page { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: calc(var(--gap) * 4); }
.book-entry-page { max-width: var(--post-max-w); }

.book-entry-page__header {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.book-entry-page__cover { position: relative; }

.book-cover {
  display: block; width: 100%; height: auto;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--ink) 15%, transparent);
}

.book-entry-page__meta { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.25rem; }

.book-entry-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink);
}

.book-entry-page__author {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300; font-style: italic; color: var(--ink-mid); margin: 0;
}

.book-entry-page__isbn { font-size: 0.7rem; font-weight: 300; letter-spacing: 0.08em; color: var(--ink-light); margin: 0.5rem 0 0; }

.book-entry-page__note { border-top: 1px solid var(--border); padding-top: clamp(1.5rem, 3vw, 2rem); }
.book-entry-page__note p { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--ink-mid); margin-bottom: 1.25rem; max-width: 62ch; }
.book-entry-page__note p:last-child { margin-bottom: 0; }
.book-entry-page__note a { color: var(--ink-mid); text-decoration: underline; text-underline-offset: 3px; }

.book-entry-page__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.book-back {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light); transition: color 0.2s; text-decoration: none;
}
.book-back:hover { color: var(--accent); }

/* BOOK INDEX */
.book-index { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: calc(var(--gap) * 4); }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
}

.book-card { display: flex; flex-direction: column; gap: 0.75rem; }
.book-card__cover { display: block; position: relative; overflow: hidden; background: var(--accent-pale); }

.book-card__cover img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 3px 12px color-mix(in srgb, var(--ink) 15%, transparent);
  transition: var(--img-transition); filter: var(--img-filter);
}

.book-card:hover .book-card__cover img { transform: var(--img-hover-scale); filter: saturate(1); }

.book-card__info { display: flex; flex-direction: column; gap: 0.2rem; }

.book-card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 400; line-height: 1.3; color: var(--ink); margin: 0; }
.book-card__title a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.book-card__title a:hover { color: var(--accent); }

.book-card__author { font-size: 0.78rem; font-weight: 300; font-style: italic; color: var(--ink-mid); margin: 0; }

@media (max-width: 560px) { .book-entry-page__header { grid-template-columns: 7rem 1fr; } }
@media (max-width: 420px) { .book-entry-page__header { grid-template-columns: 1fr; } .book-cover { max-width: 8rem; } }