.crimson-catalogue {
  --crimson-gold: #dfb978;
  --crimson-rule: #a9824a;
  --book-ivory: #f5e6cc;
  background: #0b0909;
  color: var(--book-ivory);
  overflow: clip;
}
.shelf-intro {
  position: relative;
  isolation: isolate;
  min-height: clamp(15rem, 23vw, 24rem);
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1.15rem 1rem 1.65rem;
  background: #100b0b;
  border-bottom: 3px double var(--crimson-rule);
}
.shelf-intro::before, .shelf-intro::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: min(36%, 27rem);
  z-index: -1;
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.shelf-intro::before {
  left: 0;
  background-image: url(/mockup-art/catalogue-roses.webp);
  mask-image: linear-gradient(to right, #000 40%, transparent);
}
.shelf-intro::after {
  right: 0;
  background-position: right;
  background-image: url(/mockup-art/catalogue-candle.webp);
  mask-image: linear-gradient(to left, #000 40%, transparent);
}
.shelf-intro h1 {
  margin: 0;
  color: #f3d4a2;
  text-transform: uppercase;
  font: 400 clamp(4rem, 9vw, 8.5rem)/.88 Baskerville, 'Times New Roman', serif;
  letter-spacing: .025em;
}
.shelf-intro h1 span { display: block; margin-bottom: .35em; font-size: .29em; letter-spacing: .22em; }
.shelf-intro p { max-width: 39ch; margin: .75rem 0 0; font-style: italic; line-height: 1.25; text-shadow: 0 2px 6px #000; }
.shelf-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  width: min(91%, 74rem);
  gap: clamp(.75rem, 1.4vw, 1.3rem);
  margin: 1rem auto 2.5rem;
}
.shelf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(.8rem, 2.35vw, 2rem);
  border: 4px double var(--crimson-rule);
  background: radial-gradient(ellipse at 50% 35%, #261a15, #100c0c 68%);
  text-align: center;
}
.shelf-card::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 2.55rem;
  height: 2.05rem;
  background: url(/mockup-art/catalogue-corner.webp) center / contain no-repeat;
  pointer-events: none;
}
.shelf-cover { display: block; width: 100%; }
.shelf-cover img { display: block; width: 100%; height: clamp(13rem, 29vw, 25rem); object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 8px #000); }
.shelf-card h2 { font-size: clamp(1.2rem, 2.2vw, 2rem); text-transform: uppercase; letter-spacing: .015em; margin: .55rem 0 .3rem; }
.shelf-card p { margin: .25rem 0 .5rem; line-height: 1.3; }
.shelf-genre { color: var(--crimson-gold); font-style: italic; font-size: 1.06rem; }
.shelf-card-links { width: 100%; margin-top: auto; padding-top: .85rem; }
.shelf-primary, .shelf-card .shelf-date {
  width: 100%;
  margin: 0;
  color: var(--book-ivory);
  background: #501419;
  text-transform: uppercase;
}
.shelf-card .shelf-date { padding: .45rem; border: 3px double var(--crimson-gold); }
.shelf-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.shelf-actions a { background: #110c0c; font-size: .83rem; padding-inline: .65rem; }
.shelf-forthcoming {
  background: #c9a778;
  color: #20130e;
  text-align: center;
  border-block: 4px double #705038;
  padding: 1.7rem 1rem;
  position: relative;
  isolation: isolate;
}
.shelf-forthcoming::before, .shelf-forthcoming::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 24%;
  z-index: -1;
  background-size: auto 100%;
  background-repeat: no-repeat;
}
.shelf-forthcoming::before { left: 0; background-image: url(/mockup-art/catalogue-ink.webp); mask-image: linear-gradient(to right, #000 55%, transparent); }
.shelf-forthcoming::after { right: 0; background: url(/mockup-art/catalogue-seal.webp) right center / auto 100% no-repeat; mask-image: linear-gradient(to left, #000 55%, transparent); }
.shelf-forthcoming h2 { font-size: clamp(1.5rem, 3.4vw, 3rem); margin: 0; text-transform: uppercase; letter-spacing: .12em; }
.shelf-forthcoming p { margin: .5rem auto 0; font-style: italic; line-height: 1.25; }
@media (max-width: 680px) {
  .shelf-cards { grid-template-columns: 1fr; max-width: 27rem; }
  .shelf-card { padding: 1.25rem; }
  .shelf-cover img { height: 19rem; }
  .shelf-intro::before, .shelf-intro::after, .shelf-forthcoming::before, .shelf-forthcoming::after { opacity: .4; }
}

.shelf-reviews {
  --crimson-gold: #dfb978;
  --crimson-rule: #a9824a;
  background: #100b0b;
  color: #f5e6cc;
  border-block: 1px solid var(--crimson-rule);
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) 5%;
}
.shelf-reviews h2 {
  font: 400 clamp(1.75rem, 4vw, 3rem)/1.1 Baskerville, 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin: 0;
}
.shelf-reviews-book {
  color: var(--crimson-gold);
  font-style: italic;
  margin: .35rem auto 1.5rem;
}
.shelf-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  max-width: 74rem;
  margin: auto;
}
.shelf-review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.25rem;
  border: 3px double var(--crimson-rule);
  background: #170f10;
}
.shelf-review h3 { font-size: clamp(1.12rem, 1.8vw, 1.5rem); color: var(--crimson-gold); }
.shelf-review blockquote { border: 0; padding: 0; margin: .45rem auto .9rem; }
.shelf-review blockquote p { margin: 0; }
.shelf-review figcaption { margin-top: auto; color: var(--crimson-gold); font-size: .9rem; }
@media (max-width: 680px) {
  .shelf-review-grid { grid-template-columns: 1fr; max-width: 27rem; }
}

.shelf-reviews .shelf-review-subtitle { margin-top: 2rem; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.shelf-review-single { max-width: 36rem; margin-inline: auto; }

/* Extend the mockup's roses, gilt and velvet beyond the title panel. */
.crimson-catalogue {
  background: url(/mockup-art/velvet.webp) center bottom / 100% auto no-repeat, #0b0909;
}
.shelf-cards { position: relative; isolation: isolate; }
.shelf-cards::before, .shelf-cards::after {
  position: absolute;
  z-index: -1;
  bottom: -1.5rem;
  width: clamp(6rem, 15vw, 14rem);
  height: clamp(12rem, 30vw, 25rem);
  content: "";
  background-size: cover;
  pointer-events: none;
}
.shelf-cards::before {
  left: max(-6vw, -5rem);
  background-image: url(/mockup-art/books-and-rose.webp);
  background-position: left bottom;
  mask-image: linear-gradient(to right, #000 35%, transparent);
}
.shelf-cards::after {
  right: max(-6vw, -5rem);
  background-image: url(/mockup-art/books-and-thread.webp);
  background-position: right bottom;
  mask-image: linear-gradient(to left, #000 35%, transparent);
}
.shelf-card::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 2.55rem;
  height: 2.05rem;
  content: "";
  background: url(/mockup-art/catalogue-corner.webp) center / contain no-repeat;
  transform: rotate(180deg);
  pointer-events: none;
}
.shelf-reviews {
  background: url(/crimson-roses.webp) left top / clamp(4rem, 11vw, 9rem) auto no-repeat,
              url(/mockup-art/velvet.webp) center bottom / 100% auto no-repeat,
              #100b0b;
}
.shelf-reviews h2 { padding-inline: 2.4rem; }
@media (max-width: 680px) {
  .shelf-cards::before, .shelf-cards::after { opacity: .55; }
  .shelf-reviews h2 { padding-inline: 1.4rem; }
}
