/* Buy from the author page. House theme: dark textured ground, cream
   elements, slate rules. Product cards reuse the retailer panel treatment. */

.buy-hero{padding-bottom:2.5rem}
.buy-hero .eyebrow{margin-bottom:1rem}
.buy-intro{
  color:var(--bone-muted);
  font-size:1.02rem;
  line-height:1.78;
  max-width:34rem;
  margin:0;
}

.buy-section{padding:4.5rem 2rem;border-top:1px solid var(--vault-dim)}
.buy-section h2{
  font-family:'Libre Baskerville',Georgia,'Times New Roman',serif;
  font-weight:400;
  font-size:clamp(1.35rem,2.8vw,1.75rem);
  line-height:1.35;
  color:var(--bone);
  margin-bottom:.75rem;
}
.buy-lead{color:var(--bone-muted);font-size:1.02rem;line-height:1.7;margin:0 0 1.75rem}
.buy-note{color:var(--bone-muted);font-size:.95rem;line-height:1.65;margin:1.25rem 0 0}
.buy-note[hidden]{display:none}

.buy-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.25rem;
  align-items:stretch;
}
@media (min-width:640px){
  .buy-grid{grid-template-columns:1fr 1fr}
}

.buy-card{
  background:rgba(11,11,13,.62);
  border:0;
  border-radius:15px;
  padding:1.5rem 1.5rem 1.6rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
  text-align:left;
  min-width:0;
}
.buy-card h3{
  font-family:'Cinzel','Libre Baskerville',Georgia,serif;
  font-weight:400;
  font-size:1.15rem;
  letter-spacing:.06em;
  color:var(--bone);
  margin:0;
}
.buy-desc{color:var(--bone-muted);font-size:.98rem;line-height:1.65;margin:0}
.buy-price{
  font-family:'IBM Plex Mono',monospace;
  font-weight:400;
  font-size:.85rem;
  letter-spacing:.04em;
  color:var(--ice-bright);
  margin:.25rem 0 0;
}
.buy-qty{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-family:'IBM Plex Mono',monospace;
  font-weight:400;
  font-size:.8rem;
  color:var(--bone-dim);
  margin:.25rem 0 0;
}
.buy-qty select{
  font-family:'IBM Plex Mono',monospace;
  font-size:.85rem;
  color:var(--bone);
  background:rgba(11,11,13,.62);
  border:1px solid var(--vault-dim);
  border-radius:8px;
  padding:.3rem .5rem;
}
.buy-total{
  font-family:'IBM Plex Mono',monospace;
  font-weight:400;
  font-size:.85rem;
  letter-spacing:.04em;
  color:var(--ice-bright);
  margin:.25rem 0 0;
}
.buy-prices{
  list-style:none;margin:.25rem 0 0;padding:0;
  display:flex;flex-direction:column;gap:.3rem;
  font-family:'IBM Plex Mono',monospace;
  font-weight:400;font-size:.8rem;line-height:1.5;
  color:var(--bone-dim);
}
.buy-stickers{
  list-style:none;margin:.25rem 0 0;padding:0;
  display:flex;flex-direction:column;gap:.85rem;
}
.buy-stickers q{
  font-style:italic;
  color:var(--bone);
  quotes:'\201C' '\201D';
}
.buy-stickers span{
  display:block;
  font-family:'IBM Plex Mono',monospace;
  font-weight:400;font-size:.68rem;
  letter-spacing:.08em;
  color:var(--bone-muted);
  margin-top:.15rem;
}
.buy-stock{
  font-family:'IBM Plex Mono',monospace;
  font-weight:400;font-size:.68rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--bone-muted);
  margin:.25rem 0 0;
}
.buy-card .cw-retailer-row{margin-top:auto}

/* Ebook and audiobook link rows: narrow, centred, panel treatment. The
   direct, signed and merch buttons share .cw-retailer-row but sit in
   .buy-card, not .buy-rows, so this cap leaves them untouched. */
.buy-rows .cw-retailer-row{max-width:22rem;margin:0 auto;justify-content:center;text-align:center}
.cw-retailer-apple{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.32em;
  height:1.2em;
  line-height:1.2;
  min-width:0;
}
.cw-retailer-apple-mark{
  width:1em;
  height:1em;
  flex-shrink:0;
  display:block;
}
.cw-retailer-apple-label{line-height:1.2}

.buy-cover{
  width:150px;height:auto;display:block;margin:0 auto 1.15rem;
  box-shadow:0 10px 28px rgba(0,0,0,.5);
  transform:perspective(900px) rotateY(-5deg) rotateX(1deg);
}
.buy-stack{
  width:100%;height:auto;display:block;
  border-radius:8px;
  margin:0 0 .35rem;
}
