/* Book landing page. Colours taken from the cover: deep burgundy and gold. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3ece1;
  --ink: #23161a;
  --muted: #5d4c50;
  --line: #e4d9c8;
  --brand: #4a1518;
  --gold: #c9a24c;
  --gold-ink: #2a0c0e;
  --radius: 12px;
  --gutter: max(1rem, (100% - 68rem) / 2);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #160c0d;
    --surface: #221416;
    --surface-2: #1c1012;
    --ink: #f3ebe0;
    --muted: #c7b7ab;
    --line: #3a2629;
    --gold: #d8b45e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { padding-inline: var(--gutter); }
.narrow { max-width: calc(46rem + 2 * var(--gutter)); margin-inline: auto; }
.small { font-size: 0.92rem; color: var(--muted); }
.center { text-align: center; }
.placeholder { background: #fff3c4; color: #5a4300; border: 2px dashed #d9a400; border-radius: 8px; padding: 0.6rem 0.8rem; font-weight: 600; }

/* Hero */
.hero { background: radial-gradient(ellipse at 30% 20%, #5e1b1f, #3a1214 60%, #2a0c0e); color: #f6ead2; padding: clamp(2.5rem, 7vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.cover { margin: 0; justify-self: center; width: min(100%, 20rem); }
@media (max-width: 760px) { .cover { width: min(72vw, 17rem); } }
.cover img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 4px rgb(0 0 0 / 40%), 0 24px 48px rgb(0 0 0 / 45%); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--gold); }
.subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: #f0dcb4; }
.author { font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.9rem; color: var(--gold); }
.hero .placeholder { margin-top: 1.5rem; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.section-alt { background: var(--surface-2); }

/* Offers */
.offers { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin: 1.5rem 0 2rem; }
.offer { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; }
.offer h3 { margin-bottom: 0.25rem; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1.1; margin: 0 0 0.75rem; color: var(--ink); }
.offer ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.offer li + li { margin-top: 0.35rem; }

/* The one button */
.cta { text-align: center; margin: 0 0 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; min-width: min(100%, 18rem);
  padding: 0.85rem 2rem; border-radius: 10px; background: var(--gold); color: var(--gold-ink);
  font-weight: 800; font-size: 1.15rem; text-decoration: none; box-shadow: 0 8px 22px rgb(150 110 30 / 30%);
}
.btn:hover { filter: brightness(1.05); }

/* Risk */
.risk-line { font-size: 1.1rem; border-left: 4px solid var(--brand); padding-left: 1rem; }
@media (prefers-color-scheme: dark) { .risk-line { border-left-color: var(--gold); } }
.disclosure { margin-top: 2rem; font-size: 0.95rem; color: var(--muted); }
.disclosure h2 { font-size: 1.4rem; color: var(--ink); }
.disclosure ul { padding-left: 1.2rem; }
.disclosure .warning { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; margin: 1rem 0; font-size: 0.9rem; }
.disclosure .warning p:last-child { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; text-align: center; }
.site-footer p { margin: 0 0 0.3rem; }
