.books-hero {
  max-width: 820px;
  padding-top: clamp(70px, 10vw, 130px);
  padding-bottom: clamp(56px, 7vw, 86px);
}

.books-back {
  display: inline-flex;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
  text-decoration: none;
}

.books-back:hover {
  color: #fff;
}

.books-hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 620;
  letter-spacing: -.055em;
  line-height: .96;
}

.books-hero > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--labs-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.books-section {
  padding-bottom: 96px;
}

.books-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.books-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -.04em;
}

.books-heading p {
  margin: 0;
  color: var(--labs-muted);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.book-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--labs-line);
  border-radius: var(--labs-radius);
  background: rgba(23, 26, 32, .9);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.book-cover {
  display: grid;
  min-height: 390px;
  padding: 26px;
  place-items: center;
  border-bottom: 1px solid var(--labs-line);
  background:
    radial-gradient(circle at 50% 30%, rgba(82, 118, 153, .2), transparent 58%),
    #111318;
}

.book-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 340px;
  object-fit: contain;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .38);
}

.book-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.book-author {
  margin: 0 0 9px;
  color: #f19a55;
  font-size: .73rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.book-content h3 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.book-description {
  margin: 0 0 18px;
  color: var(--labs-muted);
  font-size: .92rem;
}

.book-meta {
  display: grid;
  gap: 8px;
  margin: auto 0 22px;
}

.book-meta div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.book-meta dt,
.book-meta dd {
  margin: 0;
  font-size: .8rem;
}

.book-meta dt {
  color: rgba(255, 255, 255, .45);
}

.book-meta dd {
  color: rgba(255, 255, 255, .72);
}

.book-actions {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  flex-direction: column;
}

.book-actions a {
  display: inline-flex;
  padding: 9px 15px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--labs-accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.book-actions a:hover {
  background: #ff7d34;
  transform: translateY(-1px);
}

.book-actions span {
  font-size: .9em;
  opacity: .72;
}

@media (max-width: 980px) {
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .book-cover {
    min-height: 340px;
  }

  .book-cover img {
    height: 300px;
  }
}
