:root {
  color-scheme: light;
  font-family: "Libre Baskerville", Georgia, serif;
  background: #f9f6f0;
  color: #282520;
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
.cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(2.6rem, 5vw, 4.5rem) minmax(0, 1fr);
  grid-template-areas: "back spine front";
  min-height: 100svh;
}
.front {
  grid-area: front;
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
  min-height: 42rem;
  padding: clamp(2rem, 5vw, 5rem);
  background: #17221e;
  color: #fff8ec;
}
.front picture, .front::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.front img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 70% center; }
.front::after {
  content: "";
  background: linear-gradient(180deg, transparent 27%, #19272229 50%, #17221ef5 86%, #17221e);
}
.title { width: 100%; }
.author, .edition, .spine span {
  text-transform: uppercase;
  letter-spacing: .16em;
}
.author { font-size: .9rem; margin-bottom: 1.1rem; }
h1 { font-size: clamp(2.45rem, 4.4vw, 5rem); line-height: 1.01; max-width: 12ch; text-wrap: balance; }
.subtitle { margin-top: 1.45rem; font-size: clamp(1.05rem, 1.55vw, 1.45rem); font-style: italic; }
.edition { margin-top: 2.8rem; font-size: .76rem; }
.spine {
  grid-area: spine;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0;
  padding-inline: clamp(2.7rem, 7vh, 6rem);
  background: #efe8da;
  font-size: .79rem;
  box-shadow: inset -1px 0 #30271f19, inset 1px 0 #fff9;
}
.spine span:last-child { letter-spacing: .035em; }
.back {
  grid-area: back;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(2rem, 7vw, 8rem);
}
.blurb { max-width: 33rem; }
h2 { font-size: clamp(1.25rem, 1.8vw, 1.85rem); line-height: 1.24; text-wrap: balance; }
h2::after { content: ""; display: block; width: 4.5rem; border-top: 1px solid #857864; margin: 1.5rem 0; }
.blurb p { font-size: clamp(1rem, 1.16vw, 1.18rem); line-height: 1.55; }
.blurb p + p { margin-top: .8rem; }
footer { color: #584f43; font-size: .86rem; line-height: 1.45; }
footer p + p { margin-top: .6rem; }
@media (max-width: 46rem) {
  .cover { display: block; }
  .front { min-height: clamp(29rem, 135vw, 41rem); padding: 2rem clamp(1.5rem, 7vw, 3rem); }
  .front img { object-position: 76% center; }
  .front::after { background: linear-gradient(180deg, transparent 25%, #19272234 49%, #17221eed 81%, #17221e); }
  h1 { font-size: clamp(2.25rem, 8.8vw, 4rem); }
  .edition { margin-top: 1.9rem; }
  .spine { display: none; }
  .back { padding: 2.6rem clamp(1.5rem, 7vw, 3rem) 2rem; }
}
