/* The ivory cloth is the original unlettered board from the 1a Gardens master. */
.garden-jacket {
  position: absolute; inset: 0; overflow: hidden; display: block; container-type: size;
  background: #efe1ca url("/garden-cloth.webp") center / 100% 100% no-repeat;
  color: #946114; text-align: center; font-family: "Newsreader", Georgia, serif; text-transform: none;
}
.jacket-head { position: absolute; inset: 5% 7% auto 10%; height: 27%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2cqh; }
.jacket-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 10.1cqw; font-weight: 500; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.garden-jacket.medium .jacket-title { font-size: 8.1cqw; }
.garden-jacket.compact .jacket-title { font-size: 6.7cqw; }
.jacket-imprint { display: block; width: max-content; padding-top: .8cqh; border-top: .35cqw solid #b78a37; font-style: italic; font-size: 4.9cqw; line-height: 1; }
.jacket-art { position: absolute; top: 35%; left: 24%; width: 54%; aspect-ratio: 1; padding: 5.5%; box-sizing: border-box; display: grid; place-items: center; border: .35cqw solid #bb9d73; box-shadow: inset 0 .3cqw .5cqw #c6ad88, 0 .25cqw .35cqw #fff6e5; }
.jacket-art > * { grid-area: 1 / 1; }
.jacket-art .jacket-initials { color: #8a652e; font: italic 500 12cqw/1 "Newsreader", Georgia, serif; letter-spacing: -.06em; }
.jacket-art img { position: relative; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.jacket-author { position: absolute; bottom: 7%; left: 9%; right: 7%; font-size: 4.9cqw; line-height: 1.08; text-wrap: balance; }
.jacket-author::before { content: "✦"; display: block; margin-bottom: 1.6cqh; font-size: 2.4cqw; }

/* The dark edge keeps small foil letters readable on ivory; the warm highlight follows the face. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .jacket-title, .jacket-imprint, .jacket-author {
    background-image: linear-gradient(110deg, #825009 0%, #bc8722 18%, #95600c 34%, #e6bb59 48%, #a96d0e 57%, #875309 79%, #c28c2c);
    background-clip: text; -webkit-background-clip: text; color: transparent;
    -webkit-text-stroke: .075cqw rgba(108,61,4,.65);
  }
}
@media (forced-colors: active) {
  .jacket-title, .jacket-author, .jacket-imprint { color: CanvasText; -webkit-text-stroke: 0; }
}

.book-pdf-link { display: inline-block; margin: .5rem 0 1rem; color: inherit; text-underline-offset: .2em; }
.book-pdf-link[hidden] { display: none; }
.linked-edition { color: inherit; text-decoration: none; }

.jacket-art .jacket-pair { display: flex; width: 100%; height: 100%; min-height: 0; gap: 2%; }
.jacket-art .jacket-pair > * { width: 49%; object-fit: cover; }
.jacket-art img[hidden], .jacket-art .jacket-pair[hidden] { display: none; }
.catalog-jacket { float: inline-end; width: clamp(118px, 18vw, 172px); margin: 0 0 1.2rem; margin-inline-start: clamp(16px, 4vw, 42px); }
.catalog-jacket-board { position: relative; aspect-ratio: 5/7; overflow: hidden; border-radius: 2px 5px 5px 2px; box-shadow: 1px 2px 4px #32241950; }
.catalog-jacket figcaption { margin-top: 5px; font: 10px/1.45 system-ui, sans-serif; color: var(--ink-2); }
.catalog-jacket figcaption a { color: inherit; text-decoration: underline; }
.book-card:has(.catalog-jacket) { display: flow-root; }
@media (max-width: 580px) {
  .catalog-jacket { float: none; width: 125px; margin: 0 0 18px; }
}
