/* Books page (Books.qmd): the banner hero, a shelf of covers that jump to
   each book, then one card per book with the details in a mono side column.
   Builds on home/home.css (fonts, colours, cards) and people-page/people.css
   (banner hero). */

.home .stats-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  flex-basis: 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.home .stats-line b {
  color: var(--ink);
  font-weight: 500;
}

.home .books .card {
  margin-bottom: 20px;
}

.home .book-tagline {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.home .book-desc {
  font-size: 15px;
  color: #2c3039;
  margin-bottom: 10px;
}

.home .book-credit,
.home .book-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.home .k {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-right: 8px;
}

.home .book-desc a,
.home .book-note a,
.home .m a,
.home .sval a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.home a.pchip {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: #f7f7f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
  text-decoration: none;
}

.home .pchip::before {
  content: "[ ";
  color: var(--faint);
}

.home .pchip::after {
  content: " ]";
  color: var(--faint);
}

.home .pchip:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---- shelf and book cards ---- */

.home .shelf-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 12px;
}

.home .shelf-book img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  transition: transform 0.2s;
}

.home .shelf-book:hover img {
  transform: translateY(-4px);
}

.home .book {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  scroll-margin-top: 80px;
}

.home .book-cover img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 28px -18px rgba(17, 19, 24, 0.45);
}

.home .book-title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 8px;
}

.home .book-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.home .book-meta .k {
  display: block;
  margin-bottom: 2px;
}

.home .book-meta .k::before {
  content: "// ";
}

@media (max-width: 1100px) {
  .home .book {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .home .book-meta {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }

  .home .shelf-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home .book {
    grid-template-columns: minmax(0, 1fr);
  }

  .home .book-cover img {
    width: 140px;
  }
}
