:root {
  --book-bg: #050510;
  --book-bg-2: #120817;
  --book-ink: #fff8ef;
  --book-muted: #cbbfd6;
  --book-gold: #d8a85f;
  --book-pink: #c72c6c;
  --book-purple: #8b2bd9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--book-ink);
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 72%, rgba(216,168,95,.22), transparent 28%),
    radial-gradient(circle at 78% 14%, rgba(199,44,108,.18), transparent 30%),
    linear-gradient(135deg, var(--book-bg), var(--book-bg-2) 58%, #05040d);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.book-sale-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 70px;
}

.book-sale-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
  padding: 12px 16px;
  border: 1px solid rgba(216,168,95,.2);
  border-radius: 20px;
  background: rgba(7,6,18,.46);
  backdrop-filter: blur(22px);
}

.book-sale-brand,
.book-sale-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.book-sale-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #24101a;
  object-fit: contain;
}

.book-sale-back {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: rgba(255,248,239,.86);
  background: rgba(255,255,255,.04);
}

.book-sale-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(0, 1.12fr) minmax(270px, .72fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  overflow: hidden;
  min-height: 620px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(216,168,95,.52);
  border-radius: 30px;
  background:
    radial-gradient(circle at 22% 76%, rgba(255,190,94,.32), transparent 24%),
    radial-gradient(circle at 24% 28%, rgba(199,44,108,.22), transparent 28%),
    linear-gradient(110deg, rgba(31,14,37,.98), rgba(8,7,22,.96) 58%, rgba(12,7,28,.97));
  box-shadow: 0 30px 88px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
}

.book-sale-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.book-sale-glow {
  position: absolute;
  bottom: 36px;
  width: min(440px, 92%);
  height: 98px;
  border: 1px solid rgba(255,223,160,.4);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,233,181,.68), rgba(216,168,95,.24) 44%, transparent 72%);
  box-shadow: 0 0 72px rgba(255,171,64,.44);
}

.book-sale-cover img {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 34px 76px rgba(0,0,0,.62), -18px 20px 42px rgba(255,139,54,.14);
}

.book-sale-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #f2c96d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-sale-copy h1 {
  margin: 0;
  max-width: 640px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .95;
  letter-spacing: -.045em;
}

.book-sale-author-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: #f2c96d;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
}

.book-sale-author-line svg {
  width: 22px;
  height: 22px;
}

.book-sale-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.book-sale-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(216,168,95,.12);
  border-radius: 999px;
  color: #efc8ff;
  background: rgba(139,43,217,.14);
  font-weight: 800;
}

.book-sale-tags svg {
  width: 17px;
  height: 17px;
}

.book-sale-lead {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255,248,239,.82);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
}

.book-sale-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.book-sale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-sale-btn.gold {
  color: #17101f;
  background: linear-gradient(135deg, #ffe08a, #d89f36);
  box-shadow: 0 18px 42px rgba(216,168,95,.26);
}

.book-sale-btn.ghost {
  border: 1px solid rgba(216,168,95,.55);
  color: #ffe0a4;
  background: rgba(255,255,255,.035);
}

.book-sale-access-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255,248,239,.72);
  font-size: 15px;
  line-height: 1.5;
}

.book-sale-access-note svg {
  width: 18px;
  height: 18px;
  color: rgba(255,215,167,.78);
}

.book-sale-facts-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 24px 58px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(18px);
}

.book-sale-facts-card div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.book-sale-facts-card div:last-child {
  border-bottom: 0;
}

.book-sale-facts-card svg {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  padding: 13px;
  border-radius: 50%;
  color: #f2c96d;
  background: rgba(139,43,217,.2);
}

.book-sale-facts-card span {
  color: #f2c96d;
  font-size: 13px;
  font-weight: 900;
}

.book-sale-facts-card strong {
  color: var(--book-ink);
  font-size: 16px;
  line-height: 1.35;
}

.book-sale-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  margin-top: 18px;
}

.book-sale-panel,
.book-sale-meta {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}

.book-sale-panel.extract {
  padding: clamp(24px, 4vw, 42px);
}

.book-sale-section-label {
  color: var(--book-gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.book-sale-panel h2 {
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.book-sale-panel p {
  margin: 0 0 16px;
  color: var(--book-muted);
  font-size: 17px;
  line-height: 1.7;
}

.book-sale-panel.facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.book-sale-panel.facts div {
  display: grid;
  gap: 7px;
  padding: 22px;
  background: rgba(255,255,255,.025);
}

.book-sale-panel.facts svg {
  color: var(--book-gold);
}

.book-sale-panel.facts strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.12;
}

.book-sale-panel.facts span {
  color: var(--book-muted);
}

.book-sale-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
}

.book-sale-meta div {
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 15px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.book-sale-meta span {
  color: var(--book-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.book-sale-meta strong {
  color: var(--book-ink);
}

.book-related {
  position: relative;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 82%, rgba(216,168,95,.14), transparent 28%),
    rgba(255,255,255,.035);
  box-shadow: 0 22px 54px rgba(0,0,0,.24);
}

.book-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.book-related-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 40px);
}

.book-related-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff4fa3;
  font-weight: 900;
}

.book-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.book-related-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  transition: transform .2s ease, border-color .2s ease;
}

.book-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216,168,95,.48);
}

.book-related-card.is-featured {
  border-color: rgba(216,168,95,.7);
  box-shadow: inset 0 0 0 1px rgba(216,168,95,.18), 0 18px 42px rgba(216,168,95,.12);
}

.book-related-cover-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 178px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(216,168,95,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(216,168,95,.28), rgba(59,35,85,.62) 36%, rgba(13,13,18,.98) 74%),
    linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
}

.book-related-cover-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 78%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,218,151,.44), rgba(255,218,151,0) 70%);
  filter: blur(2px);
}

.book-related-cover-wrap img {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}

.book-related-card h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.08;
}

.book-related-card p {
  margin: 0 0 16px;
  color: var(--book-muted);
  font-size: 15px;
}

.book-related-card span:not(.book-related-badge) {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #efc8ff;
  background: rgba(139,43,217,.16);
  font-size: 12px;
  font-weight: 800;
}

.book-related-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: min(100%, 160px);
  border: 1px solid rgba(216,168,95,.35);
  border-radius: 999px;
  color: var(--book-ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-related-badge {
  position: absolute;
  top: 12px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff8ef;
  background: linear-gradient(135deg, #c72c6c, #8b2bd9);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .book-sale-hero,
  .book-sale-grid {
    grid-template-columns: 1fr;
  }

  .book-related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .book-sale-cover {
    min-height: 360px;
  }

  .book-sale-copy h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .book-sale-actions .book-sale-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .book-sale-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .book-sale-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-sale-back {
    width: 100%;
    justify-content: center;
  }

  .book-sale-hero {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .book-related-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-related-grid {
    grid-template-columns: 1fr;
  }

  .book-related-card {
    grid-template-columns: 104px minmax(0, 1fr);
    padding: 18px;
  }

  .book-related-cover-wrap {
    height: 148px;
    padding: 12px;
  }
}
