/* Chameleon Books — site-specific styles layered on _shared/css/base.css.
   Only the few things the shared base doesn't already cover: the book
   detail hero (cover + buy panel) and the format/ISBN table. */

.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  margin-block: 2rem;
}

@media (max-width: 720px) {
  .book-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.book-cover-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  display: block;
}

.book-cover {
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--accent, #7b2d3a), #0a0d11);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.book-cover .book-cover__series {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.book-cover .book-cover__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.book-cover .book-cover__author {
  font-size: 0.85rem;
  opacity: 0.9;
}

.book-meta {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.25rem;
  font-size: 0.95rem;
}

.book-meta th,
.book-meta td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(125, 45, 58, 0.18);
  vertical-align: top;
}

.book-meta th {
  white-space: nowrap;
  font-weight: 600;
  width: 11rem;
}

.book-meta code {
  font-size: 0.9em;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-block: 1.5rem;
}

.catalog-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(125, 45, 58, 0.12);
  color: var(--accent, #7b2d3a);
  margin-bottom: 0.5rem;
}

.catalog-card .badge--soon {
  background: rgba(120, 120, 120, 0.16);
  color: #6b6b6b;
}
