/* Old Col's gold books: sales page (v4, post-audit).
   Plain editorial layout: one paper background, full-width sections, a readable column.
   Big type for older readers (20px body on phones, nothing under 16px), one accent colour (gold), no scroll motion. */
/* Fonts are self-hosted (latin subset only) so nothing blocks the first paint on a slow phone. */
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/atkinson-hyperlegible-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/atkinson-hyperlegible-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/libre-caslon-text-400i.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/libre-caslon-text-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #23160e;          /* main text */
  --ink-2: #4a3526;        /* secondary text, still 10:1 on paper */
  --night: #1f140d;        /* hero, final, footer */
  --night-2: #2c1d13;
  --dirt: #8a3417;         /* page numbers, small labels */
  --gold-1: #fbe39a;
  --gold-2: #e9b23a;
  --gold-3: #a86d10;
  --paper: #fbf6ec;
  --paper-2: #f3e9d6;      /* alternate section tint */
  --line: #dccaa6;
  --wrap: 1080px;
  --narrow: 720px;
  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 20px; line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--dirt); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 4px solid #1d6fd1; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: 2.35rem; letter-spacing: -.01em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; color: var(--ink); padding: 10px 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow > * { max-width: var(--narrow); }
.narrow > .crack { max-width: 560px; }
.sub { color: var(--ink-2); font-size: 1.1rem; max-width: 40em; }

/* ================= TOP BAR ================= */
.topbar { background: var(--night); color: #fff; border-bottom: 1px solid rgba(233,178,58,.35); }
.topbar-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.topbar img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold-2); flex: none; }
.brand strong { font-family: var(--display); font-size: 1.05rem; display: block; line-height: 1.2; }
.brand span { font-size: 1rem; color: #e9dcc6; }
.topbar .top-buy { display: none; }
@media (min-width: 860px) {
  html { scroll-padding-top: 90px; }
  .topbar { position: sticky; top: 0; z-index: 20; }
  .topbar .top-buy { display: flex; gap: 10px; margin-left: auto; }
  .topbar .top-buy a { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 8px 16px; border-radius: 10px; color: #fff; border: 2px solid rgba(255,255,255,.55); }
  .topbar .top-buy a.gold { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
}

/* ================= SECTIONS ================= */
.sec { padding: 52px 0; border-top: 1px solid var(--line); }
.sec.tint { background: var(--paper-2); }
@media (min-width: 860px) { .sec { padding: 80px 0; } h2 { font-size: 2.4rem; } body { font-size: 21px; } }

/* ================= BUTTONS ================= */
.buy, .buy2 {
  display: block; width: 100%; text-align: center; text-decoration: none; line-height: 1.2;
  font-family: var(--display); font-weight: 700; font-size: 1.3rem; padding: 16px 18px 14px; border-radius: 12px;
}
.buy { background: var(--gold-2); color: var(--ink); border: 2px solid var(--gold-3); box-shadow: 0 3px 0 var(--gold-3); }
.buy:hover { background: #f0bf4f; }
.buy2 { margin-top: 12px; background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.buy2:hover { background: #fffaf0; }
.buy small, .buy2 small { display: block; font-family: var(--body); font-weight: 700; font-size: 1rem; margin-top: 3px; }
.buy:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-3); }
.textlink { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 1.05rem; }
.fine { font-size: 1rem; margin: 14px 0 0; color: var(--ink-2); }
.not-ready {
  display: none; margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 1rem; font-weight: 700; text-align: center;
  background: #fff3cd; color: var(--ink); border: 2px solid var(--gold-2);
}
.not-ready.show { display: block; }

/* ================= HERO ================= */
.hero { background: var(--night); color: #fbf3e4; padding: 26px 0 40px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; }
.kicker { font-weight: 700; font-size: 1rem; color: var(--gold-1); margin: 0 0 10px; }
.hero .lead { font-size: 1.12rem; color: #f0e2cc; }
.hero .buy2 { background: transparent; color: #fff; border-color: #f0e2cc; }
.hero .buy2:hover { background: rgba(255,255,255,.06); }
.hero .textlink { color: var(--gold-1); }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; font-size: 1.02rem; color: #f5e9d6; }
.trust li { padding-left: 28px; position: relative; }
.trust li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px; border-left: 3px solid var(--gold-2); border-bottom: 3px solid var(--gold-2); transform: rotate(-45deg); }
.hero-grid { display: grid; gap: 28px; }
.hero-media { display: none; }

/* the real book covers, set side by side like they're standing on a table */
.covers { display: flex; justify-content: center; align-items: flex-end; }
.covers img { border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 22px rgba(0,0,0,.45); }
.covers-hero { margin: 4px 0 20px; }
.covers-hero img { width: 29%; max-width: 104px; }
.covers-hero img:nth-child(2) { width: 36%; max-width: 132px; margin: 0 -6px; position: relative; z-index: 1; }
@media (min-width: 860px) {
  .hero { padding: 56px 0 72px; }
  h1 { font-size: 3.2rem; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 48px; }
  .covers-hero { display: none; }
  .hero-media { display: block; }
  .covers-big img { width: 34%; }
  .covers-big img:nth-child(2) { width: 40%; margin: 0 -10px; position: relative; z-index: 1; }
  .hero .ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; }
  .hero .ctas a { padding-left: 10px; padding-right: 10px; }
  .hero .ctas .buy2 { margin-top: 0; }
}

/* ================= MISTAKES ================= */
.mistakes { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: m; display: grid; gap: 0 48px; }
.mistakes li { counter-increment: m; position: relative; padding: 20px 0 20px 56px; border-top: 1px solid var(--line); }
.mistakes li::before { content: counter(m); position: absolute; left: 0; top: 14px; font-family: var(--display); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--gold-3); }
.mistakes h3 { margin: 0 0 4px; }
.mistakes p { margin: 0 0 6px; }
.fix { color: var(--ink-2); font-size: 1.02rem; }
.pg, .price, .toc { font-variant-numeric: tabular-nums lining-nums; }
.pg { font-weight: 700; color: var(--dirt); white-space: nowrap; }
.fix .pg::before { content: "\00b7\00a0"; color: var(--ink-2); }
@media (min-width: 860px) { .mistakes { grid-template-columns: 1fr 1fr; } }

/* ================= LOOK INSIDE ================= */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.shot { display: flex; flex-direction: column; justify-content: flex-start; align-self: start; appearance: none; margin: 0; padding: 0; background: none; border: 0; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.shot img { width: 100%; aspect-ratio: 912 / 1300; object-fit: cover; background: #fff; border: 1px solid #d9cdb6; box-shadow: 0 6px 14px rgba(60,30,5,.16); }
.shot:hover img { box-shadow: 0 10px 22px rgba(60,30,5,.24); }
.shot span { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.3; }
.shot b { display: block; color: var(--dirt); }
.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.zoom::backdrop { background: rgba(10, 6, 3, .92); }
.zoom img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 2px; background: #fff; }
.zoom-cap { text-align: center; color: #fff; font-weight: 700; margin: 10px 0 0; }
.zoom button { display: block; margin: 10px auto 0; font: inherit; font-weight: 700; font-size: 1.15rem; background: var(--gold-2); color: var(--ink); border: 2px solid var(--gold-3); border-radius: 10px; padding: 10px 34px; cursor: pointer; }
html.locked { overflow: hidden; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* ================= CREEK BEND ================= */
.creek-grid { display: grid; gap: 28px; }
.creek-fig { margin: 0; }
.creek-fig svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; background: #f1e6cd; border: 1px solid var(--line); }
.creek-fig figcaption { font-size: 1rem; color: var(--ink-2); text-align: center; margin-top: 8px; }
.creek-fig .lbl { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 21px; fill: var(--ink); }
.creek-fig .lbl-gold { fill: #6e4205; }
.creek-points { padding-left: 1.1em; margin: 18px 0 0; }
.creek-points li { margin-bottom: 10px; }
.pull { margin: 26px 0 0; padding-left: 18px; border-left: 2px solid var(--gold-2); font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.4rem; line-height: 1.3; }
.pull cite { display: block; font-family: var(--body); font-style: normal; font-weight: 400; font-size: 1rem; color: var(--ink-2); margin-top: 6px; }
@media (min-width: 860px) { .creek-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }

/* ================= WHAT'S INSIDE ================= */
.bookblock { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; max-width: 860px; }
.bookhead { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.cover-sm { width: 84px; flex: none; box-shadow: 0 6px 14px rgba(0,0,0,.3); border-radius: 1px 3px 3px 1px; }
.booknum { margin: 0; font-weight: 700; color: var(--dirt); font-size: 1rem; }
.bookhead h3 { margin: 0 0 4px; }
.bookhead p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.toc .pg { font-size: 1rem; padding-top: 2px; }
details.more summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 1.1rem; padding: 13px 16px; border-radius: 10px;
  background: #fff; border: 2px solid var(--ink); text-align: center;
}
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { margin-bottom: 8px; }
details.more summary .open-txt { display: none; }
details.more[open] summary .open-txt { display: inline; }
details.more[open] summary .closed-txt { display: none; }
.single { margin: 12px 0 0; font-size: 1.02rem; }
.nosingles [data-single] { display: none; }

/* ================= HONEST MATHS ================= */
.costs { padding-left: 1.1em; margin: 0 0 1em; }
.costs li { margin-bottom: 8px; }
.note { font-size: 1rem; color: var(--ink-2); }

/* ================= PACKAGES ================= */
.cards { display: grid; gap: 24px; margin-top: 26px; }
.pkg { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 24px 20px 22px; display: flex; flex-direction: column; }
.pkg h3 { font-size: 1.5rem; margin-bottom: 4px; }
.pkg .shelf { height: 190px; display: grid; place-items: center; margin: 8px 0 14px; }
.cover-pkg { height: 190px; width: auto; max-width: none; box-shadow: 0 10px 20px rgba(0,0,0,.35); border-radius: 1px 3px 3px 1px; }
.covers-pkg { width: 100%; max-width: 300px; }
.covers-pkg img { width: 33%; min-width: 0; }
.covers-pkg img:nth-child(2) { width: 40%; margin: 0 -14px; position: relative; z-index: 1; }
.pkg .price { font-family: var(--display); font-weight: 700; font-size: 2.8rem; line-height: 1; margin: 6px 0 4px; }
.pkg .price small { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.pkg ul { padding-left: 1.2em; margin: 12px 0 20px; flex: 1; }
.pkg li { margin-bottom: 6px; }
.pkg.best { border-color: var(--gold-3); border-width: 3px; background: #fffbef; }
.label { margin: 0 0 4px; font-weight: 700; font-size: 1rem; color: var(--dirt); }
.separately { font-weight: 700; color: var(--ink-2); margin: 0; font-size: 1.02rem; }
.pkg-note { text-align: left; margin: 22px 0 0; font-weight: 700; }
@media (min-width: 860px) { .cards { grid-template-columns: 1fr 1fr; max-width: 900px; } .pkg { padding: 28px 28px 26px; } }

/* ================= HOW IT WORKS ================= */
.steps { padding-left: 1.3em; margin: 0 0 1em; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps li::marker { font-family: var(--display); font-weight: 700; color: var(--gold-3); }

/* ================= GUARANTEE ================= */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.guarantee img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold-2); }
.guarantee h2 { font-size: 1.6rem; }
.promise { font-family: var(--display); font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
@media (min-width: 860px) { .guarantee img { width: 84px; height: 84px; } .guarantee h2 { font-size: 2rem; } }

/* ================= FAQ ================= */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); margin-top: 18px; }
.faq summary { cursor: pointer; padding: 18px 44px 18px 0; font-weight: 700; font-size: 1.12rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--dirt); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 8px; }

/* ================= FINAL ================= */
.final { background: var(--night); color: #fbf3e4; padding: 52px 0 56px; }
.final h2 { color: #fff; }
.final .letter { font-size: 1.15rem; }
.final .buy2 { background: transparent; color: #fff; border-color: #f0e2cc; }
.final .fine { color: #efe0c6; }
.sig { display: flex; align-items: center; gap: 14px; margin: 18px 0 26px; }
.sig img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--gold-2); }
.sig strong { font-family: var(--display); font-size: 1.5rem; color: var(--gold-1); }
.crack { display: block; width: 100%; height: auto; margin: 0 0 16px; }
@media (min-width: 860px) { .final { padding: 80px 0; } .final .buys { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .final .buys .buy2 { margin-top: 0; } }

.foot { background: #150d08; color: #efe3cf; font-size: 1rem; padding: 36px 0 40px; }
.foot a { color: var(--gold-1); }
.foot p { margin-bottom: .8em; }
.foot-links a { margin-right: 18px; display: inline-block; padding: 4px 0; }

/* ================= STICKY BUY BAR (phones) ================= */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--night);
  border-top: 2px solid var(--gold-3); box-shadow: 0 -8px 24px rgba(0,0,0,.35);
  transform: translateY(110%); transition: transform .2s ease;
}
.js .buybar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buybar.show { transform: none; }
.buybar a { text-decoration: none; text-align: center; border-radius: 10px; padding: 8px 6px 7px; font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.buybar a small { display: block; font-size: 1rem; font-weight: 700; }
.buybar .bb-1 { color: #fff; border: 2px solid #efe0c6; }
.buybar .bb-2 { color: var(--ink); background: var(--gold-2); border: 2px solid var(--gold-2); }
.buybar .not-ready { grid-column: 1 / -1; margin: 0; }
.js .foot { padding-bottom: 124px; }
@media (min-width: 860px) { .js .buybar { display: none; } .js .foot { padding-bottom: 40px; } }
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }
