.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.book-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e1e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px #2c20330a;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px #2c20331c;
}

#featured .book-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  background: #dfd8e1;
}

.book-card-copy {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 40px 16px 15px;
}

.book-card-copy > span {
  margin-bottom: 7px;
  color: #806390;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-card-copy strong {
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: normal;
  line-height: 1.2;
}

.book-card-copy small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.book-card-arrow {
  position: absolute;
  right: 14px;
  bottom: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--purple);
  background: var(--paper);
  font-size: 14px;
}

.book-card:focus-visible,
.browse-all:focus-visible {
  outline: 3px solid #a68ab1;
  outline-offset: 3px;
}

.browse-all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--purple);
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

.browse-all:hover {
  text-decoration: underline;
}

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

@media (max-width: 600px) {
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .book-card-copy {
    min-height: 112px;
    padding: 12px 32px 13px 12px;
  }

  .book-card-copy strong {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .book-card-copy small {
    font-size: 11px;
  }

  .book-card-arrow {
    right: 10px;
    bottom: 13px;
    width: 23px;
    height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-card {
    transition: none;
  }
}
