/* Analog Mischief coloring books — extends the True Heading Collective design system */

.book-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
}

.book-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d5e0d8;
  border-radius: 1rem;
  background: #fffdf8;
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dark .book-card {
  border-color: #31564c;
  background: #102B26;
}

.book-card:hover {
  border-color: #B75E46;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(23, 60, 53, .55);
}

.book-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #e4eee7;
  overflow: hidden;
}

.dark .book-cover { background: #172f2a; }

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.book-body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}

.book-series {
  color: #B75E46;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.book-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.book-subtitle {
  margin: 0;
  font-size: .82rem;
  font-style: italic;
  line-height: 1.5;
  color: #52675f;
}

.dark .book-subtitle { color: #a9c2b6; }

.book-hook {
  margin: .15rem 0 0;
  font-size: .9rem;
  line-height: 1.65;
  color: #52675f;
}

.dark .book-hook { color: #d1ded6; }

.book-specs {
  margin: .35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7f76;
}

.dark .book-specs { color: #9db5a9; }

.book-specs li {
  border: 1px solid #d5e0d8;
  border-radius: 999px;
  padding: .22rem .55rem;
}

.dark .book-specs li { border-color: #31564c; }

.book-buy {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.book-price {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #173C35;
}

.dark .book-price { color: #F5F0E4; }

.book-price span {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7f76;
  margin-top: .15rem;
}

.dark .book-price span { color: #9db5a9; }

.book-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #173C35;
  color: #F5F0E4;
  border-radius: .5rem;
  padding: .6rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.book-cta:hover { background: #B75E46; color: #fff; }

.book-status {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #B75E46;
}

.page-hero {
  background: linear-gradient(135deg, #F5F0E4 0%, #e4eee7 100%);
}

.dark .page-hero {
  background: linear-gradient(135deg, #102B26 0%, #172f2a 100%);
}

.note-panel {
  border-left: 3px solid #B75E46;
  padding-left: 1.15rem;
  font-size: .88rem;
  line-height: 1.7;
  color: #52675f;
}

.dark .note-panel { color: #d1ded6; }

@media (max-width: 639px) {
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.15rem; }
  .book-body { padding: 1rem 1rem 1.15rem; gap: .4rem; }
  .book-title { font-size: 1rem; }
  .book-hook { font-size: .82rem; }
  .book-cta { padding: .5rem .7rem; font-size: .66rem; }
}
