:root {
  --bg: #111617;
  --heading: #5E2BFF;
  --button: #EA2595;
  --text: #FBFAFD;
  --muted: #9AA3B2;
  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at top left, rgba(94, 43, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(234, 37, 149, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.40),
    0 8px 24px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(8px);
}

/* ─── LEFT COLUMN ──────────────────────────────────────────── */

.left {
  padding: 42px 28px 36px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.series-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 250, 253, 0.78);
  margin-bottom: 16px;
}

.cover-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
}

.cover-wrap::after {
  content: "";
  position: absolute;
  inset: auto 12% -12px 12%;
  height: 24px;
  background: rgba(0, 0, 0, 0.50);
  filter: blur(16px);
  border-radius: 999px;
  z-index: 0;
}

.cover {
  position: relative;
  z-index: 1;
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.50);
  display: block;
  margin: 0 auto;
}

.stars {
  margin: 14px 0 6px;
  color: #F4A8D4;
  font-size: 22px;
  letter-spacing: 2px;
  -webkit-text-stroke: 1px #EA2595;
  text-stroke: 1px #EA2595;
}

.rating {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 22px;
}

.ku {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 22px;
}

.cta {
  display: inline-block;
  margin-top: 4px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(234, 37, 149, 0.30);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(234, 37, 149, 0.40);
}

.subtext {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ─── RIGHT COLUMN ─────────────────────────────────────────── */

.right {
  padding: 42px 40px;
}

/* Kicker: small label above headline */
.kicker {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

/* Emotional marketing headline */
h1 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--text);
  white-space: pre-line;
  max-width: 65ch;
  margin: 0 0 24px;
}

/* Book title — lives in left column above cover, mirrors h1 size */
.book-name {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: rgba(251, 250, 253, 0.90);
  margin: 0 0 6px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hook {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-line;
  max-width: 65ch;
  margin-top: 4px;
  margin-bottom: 28px;
  color: var(--text);
}

.blurb {
  font-size: 16px;
  color: rgba(251, 250, 253, 0.88);
  max-width: 65ch;
  margin-bottom: 28px;
}

.blurb p {
  margin: 0 0 16px;
  line-height: 1.55;
}

.blurb p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: #F4A8D4;
}

/* ─── TROPES ────────────────────────────────────────────────── */

.tropes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.trope {
  display: inline-block;
  background: rgba(234, 37, 149, 0.12);
  color: #F4A8D4;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(234, 37, 149, 0.28);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* ─── QUOTES ────────────────────────────────────────────────── */

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

blockquote {
  margin: 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

blockquote p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.quote-source {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── UTILITY ────────────────────────────────────────────────── */

.error-box {
  background: rgba(120, 0, 0, 0.20);
  color: #ff9999;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 100, 100, 0.20);
  line-height: 1.6;
  margin-top: 20px;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.95em;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */

@media (max-width: 920px) {
  .card {
    grid-template-columns: 1fr;
  }

  .left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .right {
    padding: 32px 24px 34px;
  }

  h1 {
    font-size: 32px;
  }

  .hook {
    font-size: 18px;
    line-height: 1.4;
  }

  .ku {
    font-size: 17px;
  }

  .quotes {
    grid-template-columns: 1fr;
  }
}

/* ─── BINGE FORMAT NOTE (lives under the CTA, inside the main card) ── */
/* Same button as the primary CTA — this is just a heads-up that the
   Amazon link shows the Omnibus alongside The Call. Not its own link. */

.binge-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-align: left;
}

.binge-thumb {
  flex-shrink: 0;
  width: 36px;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.binge-text {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(251, 250, 253, 0.82);
}

.binge-text strong {
  color: var(--text);
}

.page-footer {
  text-align: center;
  padding: 16px 20px 24px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0.7;
}

.pixel-disclosure {
  margin-top: 16px;
}

.pixel-disclosure a,
.affiliate-disclosure a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(154, 163, 178, 0.5);
  text-underline-offset: 2px;
}

.pixel-disclosure a:hover,
.affiliate-disclosure a:hover {
  color: var(--text);
}

/* CTA + affiliate disclosure, kept as one unit so the disclosure can
   never end up separated from the link it discloses. */
.cta-block {
  display: block;
}

/* ── Sticky CTA (mobile only) ─────────────────────────────── */
.sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px env(safe-area-inset-bottom, 16px);
    background: linear-gradient(to top, var(--bg) 75%, transparent);
    z-index: 100;
    transform: translateY(0);   /* always visible — inline button is hidden */
    transition: transform 0.3s ease;
  }

  .sticky-cta .cta {
    display: block;
    width: 100%;
    text-align: center;
  }

  .sticky-disclosure {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
    color: var(--muted);
    opacity: 0.75;
  }

  /* ── Full mobile redesign ──────────────────────────────── */

  .page {
    padding: 16px 12px;
  }

  .card {
    border-radius: 20px;
  }

  /* Compact two-column header: cover thumbnail + meta */
  .left {
    display: grid;
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto auto auto auto;
    column-gap: 14px;
    padding: 16px;
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }

  .cover-wrap {
    grid-column: 1;
    grid-row: 1 / 6;
    margin-bottom: 0;
    align-self: start;
  }

  .cover {
    width: 88px;
  }

  .series-kicker {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 4px;
    font-size: 10px;
  }

  .book-name {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;   /* shrink to the rendered text width — book-page.js reads this width to size the star row below */
    font-size: 40px;
    margin-bottom: 0;
  }

  .subtitle {
    display: none;
  }

  /* Star row is centered within a width that book-page.js sets to match
     book-name's rendered width (titles vary per book, so this is measured
     in JS rather than guessed in CSS). justify-self:start keeps the box
     flush at the same left edge as the title instead of stretching full width. */
  .stars {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
    text-align: center;
    font-size: 16px;
    letter-spacing: 1px;
    margin: 8px 0 2px;
  }

  .rating {
    grid-column: 2;
    grid-row: 4;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .ku {
    grid-column: 2;
    grid-row: 5;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
  }

  /* Hide inline CTA — sticky handles it on mobile */
  #amazon-link {
    display: none;
  }

  .left .subtext {
    display: none;
  }

  /* #amazon-link is hidden above, but the note about the bundle still
     matters on mobile — span both grid columns so it isn't squeezed
     into the 88px cover column. */
  .binge-note {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  /* Right column */
  .right {
    padding: 20px 18px 100px;  /* extra bottom clears the sticky CTA */
  }

  .tropes {
    margin-bottom: 14px;
  }

  .kicker {
    margin-bottom: 6px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .hook {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .quotes {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .blurb {
    font-size: 15px;
  }
}
