/* Shared by the advertorial (/read) and the sales page (/still-on-the-books). Generated pages: see scripts/build-pages.js */
.article { width: min(100% - 32px, 680px); margin: 0 auto; padding: 28px 0 56px; }
.article h1 { font-size: clamp(2rem, 6.5vw, 2.8rem); }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.2em; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 1.8em 0; }
.article blockquote, .pagewrap blockquote { margin: 0 0 1.1em; padding: 14px 20px; background: #fff; border-left: 5px solid var(--blue); border-radius: 6px; }
.article blockquote p, .pagewrap blockquote p { margin: 0 0 .5em; }
.article blockquote p:last-child, .pagewrap blockquote p:last-child { margin: 0; }
.cta { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; padding: 15px 28px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.cta:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.pagewrap { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 18px 0 56px; }
.hero { text-align: center; max-width: 780px; margin: 14px auto 0; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
.hero .sub { text-align: left; }
.cols { display: grid; gap: 28px; grid-template-columns: 1fr; margin-top: 22px; }
.letter { max-width: 680px; min-width: 0; }
.letter h2 { margin-top: 1.8em; }
.rail .card { padding: 20px; margin-bottom: 0; }
.rail img { width: 100%; border-radius: 10px; display: block; margin-bottom: 8px; }
.rail .price { font-family: "Young Serif", Georgia, serif; font-size: 2.6rem; line-height: 1; margin: 6px 0 .3em; }
.rail .cta { display: block; text-align: center; width: 100%; }
.rail small, .rail .note { display: block; color: var(--ink-soft); margin-top: 10px; font-size: .95rem; }
@media (min-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .letter { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; position: sticky; top: 18px; }
}
figure { margin: 0 0 1.2em; } figure img { width: 100%; max-width: 560px; border: 1px solid var(--line); border-radius: 10px; display: block; }
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tile h3 { margin: 0 0 .3em; } .tile p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
details { border-top: 1px solid var(--line); padding: 14px 0; } details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; } details p { margin: .6em 0 0; color: var(--ink-soft); }
.repeat { margin: 1.6em 0; text-align: center; }
.disclaimers { margin-top: 2.2em; padding: 18px 20px; background: var(--blue-wash); border-radius: var(--radius); font-size: 1rem; color: var(--ink); }
.disclaimers p { margin: 0 0 .7em; } .disclaimers p:last-child { margin: 0; }
.free-link { margin-top: 1.4em; font-size: 1rem; text-align: center; }

.rail img { height: auto; }
/* phones: slim buy bar, shown by the script whenever the price card is off screen */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .2s ease; }
.buybar.show { transform: translateY(0); }
.buybar .bb-price { font-family: "Young Serif", Georgia, serif; font-size: 1.6rem; line-height: 1; }
.buybar .cta { padding: 12px 20px; white-space: nowrap; box-shadow: 0 2px 0 var(--ink); }
body.has-buybar { padding-bottom: 80px; }
@media (min-width: 900px) { .buybar { display: none; } body.has-buybar { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

/* desktop: keep the whole price card, button included, inside a laptop-height screen */
@media (min-width: 900px) {
  .rail img { max-width: 190px; margin: 0 auto 8px; }
  .rail .card { padding: 16px 18px; }
  .rail .price { font-size: 2.3rem; margin-top: 2px; }
  .rail .note { font-size: .9rem; margin-bottom: 10px; }
}

/* advertorial buy box, near the top of /read */
.buybox { display: flex; gap: 14px; align-items: center; margin: 0 0 1.4em; padding: 14px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; }
.buybox img { width: 96px; height: 96px; flex: none; border-radius: 6px; object-fit: cover; }
.buybox .bb-title { margin: 0 0 10px; font-size: 1rem; line-height: 1.4; }
.buybox .cta { display: inline-block; }
@media (max-width: 480px) { .buybox img { width: 72px; height: 72px; } }

/* sales page, phones: slightly smaller headline and tighter hero so the photo starts higher on the first screen */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.65rem; line-height: 1.15; margin-bottom: .45em; }
  .hero .fine { margin: 0 0 .6em; }
  .hero .sub p { line-height: 1.55; margin-bottom: .7em; }
}

/* sales page, phones: the price card with the photo comes right after the headline; the intro paragraphs follow it */
@media (max-width: 899px) {
  .pagewrap { display: flex; flex-direction: column; }
  .hero, .cols { display: contents; }
  .hero h1 { order: 1; }
  .hero .fine { order: 2; }
  .rail { order: 3; margin: 6px 0 22px; }
  .hero .sub { order: 4; }
  .letter { order: 5; }
}
