/* Editorial cover artwork; the library keeps its existing grid and order. */
.guide-card {
  position: relative;
  isolation: isolate;
}

.guide-card .book-cover {
  min-height: 314px;
  height: 100%;
  padding: 21px 20px 21px 26px;
  border-color: #443d2914;
  box-shadow:
    3px 4px 0 #ded8c5,
    0 8px 15px #29261e08;
  background-image: linear-gradient(110deg, #ffffff12, transparent 65%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.guide-card .book-cover::after {
  display: none;
}

.guide-card .book-series {
  min-height: 2.8em;
  font-size: 8px;
  letter-spacing: 0.09em;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.guide-card .book-symbol {
  display: block;
  margin: 5px -13px 12px;
  font-size: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.guide-card .book-symbol img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.guide-card .book-cover strong {
  font-size: clamp(20px, 1.75vw, 24px);
  line-height: 1.13;
  letter-spacing: -0.045em;
  overflow-wrap: break-word;
}

.guide-card .book-cover small {
  padding-top: 15px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.guide-card .guide-meta {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 17px;
  width: 27px;
  height: 27px;
  margin: 0;
  pointer-events: none;
  color: var(--ink);
  opacity: 0.65;
}

.guide-card .guide-meta > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
}

.guide-card:hover .book-cover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow:
    4px 6px 0 #ded8c5,
    0 12px 22px #29261e0c;
}

.guide-card:hover .guide-meta {
  opacity: 1;
}

.guide-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 7px;
  border-radius: 4px 12px 12px 4px;
}

.guide-kicker {
  display: block;
  margin: 0 35px 13px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .guide-card .book-cover {
    min-height: 285px;
    padding: 18px 16px 19px 22px;
  }

  .guide-card .book-symbol {
    margin: 4px -11px 10px;
  }
}

@media (max-width: 760px) {
  .guide-card .book-cover {
    min-height: 267px;
    padding: 17px 14px 18px 20px;
  }

  .guide-card .book-series {
    font-size: 7px;
    letter-spacing: 0.04em;
  }

  .guide-card .book-symbol {
    margin: 6px -10px 9px;
  }

  .guide-card .book-cover strong {
    font-size: 21px;
    line-height: 1.1;
  }

  .guide-card .book-cover small {
    font-size: 8px;
    padding-top: 13px;
  }

  .guide-card .guide-meta {
    right: 11px;
    bottom: 15px;
    width: 23px;
    height: 23px;
  }

  .guide-card .guide-meta > span {
    width: 23px;
    height: 23px;
    font-size: 13px;
  }
}

@media (max-width: 370px) {
  .guide-card .book-cover {
    min-height: 250px;
    padding: 15px 11px 16px 17px;
  }

  .guide-card .book-series {
    font-size: 6px;
  }

  .guide-card .book-cover strong {
    font-size: 19px;
  }

  .guide-card .book-cover small {
    font-size: 7.5px;
  }

  .guide-card .guide-meta {
    right: 8px;
    bottom: 13px;
  }
}

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

  .guide-card:hover .book-cover {
    transform: none;
  }
}
