/* Keir Hamilton — almanac-style sales page */
:root {
  --paper: #f2ebd4;
  --paper-2: #ece3c2;
  --paper-3: #dcd0aa;
  --ink: #15110b;
  --ink-2: #2b241a;
  --ink-3: #4a4131;
  --muted: #695c40;
  --oxblood: #7a1f0e;
  --oxblood-dk: #5e170a;
  --gold: #d4b070;
  --gold-dk: #ba8c3e;
  --brass: #7e5a1c;
  --serif: "Fraunces", "EB Garamond", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1080px;
  --narrow: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-bottom: 80px; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oxblood); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
em, .accent { color: var(--oxblood); font-style: italic; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper-2);
  position: sticky; top: 0; z-index: 50;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 44px;
}
.topbar .mono { color: var(--gold); font-size: 10.5px; }
.topbar .deal { display: flex; align-items: center; gap: 10px; color: var(--paper); }
.pill {
  background: var(--oxblood); color: var(--paper);
  border: 0; padding: 5px 10px; border-radius: 2px;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .08em;
  text-decoration: none; cursor: pointer;
}
.pill:hover { background: #8f2711; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; }
.hero-photo {
  width: min(540px, 100%); margin: 0 auto 48px;
  border: 1px solid var(--paper-3);
  box-shadow: 0 1px 0 #fff8 inset, 0 24px 50px -24px #2b241a88, 0 2px 6px #2b241a33;
  padding: 8px; background: var(--paper-2);
  transform: rotate(-.6deg);
}
.hero-photo img { aspect-ratio: 16/10; object-fit: cover; width: 100%; filter: sepia(.12) saturate(.92); }
.rule-line { display: flex; align-items: center; gap: 16px; color: var(--brass); margin-bottom: 20px; }
.rule-line::after { content: ""; flex: 1; height: 1px; background: var(--paper-3); order: 1; }
.rule-line span:last-child { order: 2; }
h1 {
  font-size: clamp(34px, 5.4vw, 56px); line-height: 1.06; letter-spacing: -.02em;
  font-weight: 600; margin: 0 0 14px; font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 em { font-weight: 600; }
.note { font-style: italic; font-size: 14px; color: var(--ink-3); margin: 0 0 28px; }
.dropcap::first-letter {
  float: left; font-size: 74px; line-height: .82; padding: 8px 10px 0 0;
  color: var(--oxblood); font-style: italic; font-weight: 600;
}
.lede { color: var(--ink-2); }

/* ---------- Buttons ---------- */
.cta-block { margin-top: 30px; }
.cta-block.center { display: flex; flex-direction: column; align-items: center; }
.lock { color: var(--brass); margin-bottom: 10px; display: block; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em;
  font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
  padding: 18px 26px; border-radius: 2px; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn-buy {
  background: var(--oxblood); color: var(--paper); border: 1px solid var(--oxblood-dk);
  box-shadow: 0 2px 0 var(--oxblood-dk), 0 14px 28px -14px #7a1f0eaa;
}
.btn-buy:hover { background: #8f2711; transform: translateY(-1px); }
.btn-buy.big { font-size: 16px; padding: 22px 60px; min-width: min(380px, 100%); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-size: 11px; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.fine { color: var(--muted); margin-top: 14px; font-size: 9.5px; line-height: 1.8; }

/* ---------- Section shells ---------- */
section { position: relative; scroll-margin-top: 44px; }
.band { background: var(--paper-2); border-top: 1px solid var(--paper-3); border-bottom: 1px solid var(--paper-3); }
.pad { padding: 84px 0; }
.kicker { color: var(--oxblood); display: block; margin-bottom: 4px; }
h2 {
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.02em;
  font-weight: 600; margin: 8px 0 18px; font-variation-settings: "opsz" 144, "SOFT" 30;
}
.stats { color: var(--ink-3); font-size: 12px; }
.stats b { color: var(--oxblood); font-family: var(--serif); font-size: 17px; letter-spacing: 0; }
.stats .sep { color: var(--gold-dk); margin: 0 8px; }
.sec-num { font-family: var(--serif); font-style: italic; color: var(--gold-dk); font-size: 22px; }

/* ---------- Product mockup (CSS book covers) ---------- */
.mockup {
  margin: 46px auto 16px; max-width: 900px; padding: 44px 24px 34px;
  background: radial-gradient(120% 90% at 50% 20%, #3a2c1b 0%, #1d160d 70%);
  border-radius: 6px; box-shadow: 0 30px 60px -30px #15110bcc;
  display: flex; align-items: flex-end; justify-content: center; gap: 18px; flex-wrap: wrap;
}
.cover {
  width: 190px; aspect-ratio: 2/3; position: relative; border-radius: 2px 6px 6px 2px;
  background: linear-gradient(90deg, #00000055 0 6px, transparent 6px 100%), linear-gradient(160deg, #6b1a0c, #3f0f06);
  color: var(--gold); padding: 18px 14px; text-align: center;
  box-shadow: 0 18px 30px -10px #000c, inset 0 0 0 1px #d4b07055;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cover::before { content: ""; position: absolute; inset: 8px 8px 8px 14px; border: 1px solid #d4b07066; pointer-events: none; }
.cover .t { font-weight: 700; font-size: 22px; line-height: 1.02; color: #f0dca8; }
.cover .s { font-size: 10px; font-style: italic; color: #e6d3a3cc; }
.cover .a { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; }
.cover .portrait { width: 70px; height: 70px; border-radius: 50%; margin: 6px auto; object-fit: cover; border: 2px solid var(--gold); filter: sepia(.5); }
.cover.main { width: 230px; z-index: 2; }
.cover.green { background: linear-gradient(90deg, #00000055 0 6px, transparent 6px), linear-gradient(160deg, #2e4630, #18261a); }
.cover.cream { background: linear-gradient(90deg, #00000033 0 6px, transparent 6px), linear-gradient(160deg, #efe3c0, #d8c79a); color: var(--ink); }
.cover.cream .t { color: var(--ink); font-size: 17px; }
.cover.cream .s { color: var(--ink-3); }
.cover.small { width: 128px; padding: 12px 10px; }
.cover.small .t { font-size: 15px; }
.card-mock {
  width: 160px; aspect-ratio: 3/2; background: #f3e7c4; color: var(--ink); border-radius: 3px;
  padding: 10px; font-size: 11px; box-shadow: 0 14px 24px -10px #000b; transform: rotate(3deg);
}
.card-mock b { display: block; font-size: 13px; margin-bottom: 4px; }
.mock-cap { color: var(--ink-2); font-size: 16px; margin: 6px 0 40px; }

/* ---------- Value stack ---------- */
.stack {
  background: #fbf6e6; border: 1px solid var(--paper-3); border-radius: 4px; padding: 28px 28px 22px;
  box-shadow: 0 20px 40px -30px #2b241a88; text-align: left;
}
.stack h3 { color: var(--ink); margin: 0 0 14px; font-size: 12px; }
.stack ul { list-style: none; margin: 0; padding: 0; }
.stack li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px dashed var(--paper-3); font-size: 16px; line-height: 1.45;
}
.stack li b { color: var(--ink); }
.stack .was { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.stack .was.strike { text-decoration: line-through; }
.stack .free { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--paper); background: var(--oxblood); padding: 2px 7px; border-radius: 2px; letter-spacing: .1em; }
.stack .incl { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.totals { margin-top: 16px; }
.totals div { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.totals .label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); }
.totals .today { font-size: 34px; font-weight: 700; color: var(--oxblood); }
.totals .today s { font-size: 18px; color: var(--muted); font-weight: 400; margin-right: 10px; }
.price-tag { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 8px 0 26px; }
.price-tag .now { font-size: 64px; font-weight: 700; line-height: 1; color: var(--oxblood); }
.price-tag .then { font-size: 26px; color: var(--muted); text-decoration: line-through; }
.price-tag .save { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; background: var(--ink); color: var(--gold); padding: 5px 9px; }

.guarantee {
  display: flex; gap: 18px; align-items: flex-start; margin: 34px auto 0; max-width: 640px;
  padding: 22px 24px; border: 1px solid var(--gold-dk); background: #f6eed3; text-align: left; font-size: 16px;
}
.seal {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--oxblood); color: var(--paper); font-family: var(--mono); font-size: 8.5px; line-height: 1.2; letter-spacing: .08em;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--oxblood);
}
.seal b { display: block; font-family: var(--serif); font-size: 20px; letter-spacing: 0; }
.secure { margin-top: 20px; color: var(--muted); font-size: 10px; }
.secure .dot { color: var(--gold-dk); margin: 0 6px; }
.secure-note { font-size: 13px; font-style: italic; color: var(--ink-3); margin-top: 6px; }

.downloads { margin: 34px 0 22px; }
.downloads li { align-items: center; }
.downloads .btn.dl { padding: 10px 14px; font-size: 11px; }
@media (max-width: 720px) { .downloads li .was { display: none; } }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.ledger { background: #fbf6e6; border: 1px solid var(--paper-3); padding: 24px; border-radius: 4px; }
.ledger.good { border-color: var(--gold-dk); box-shadow: 0 0 0 4px #d4b07033; }
.ledger h3 { margin: 0; font-size: 12px; color: var(--muted); }
.ledger.good h3 { color: var(--oxblood); }
.ledger p.sub { margin: 4px 0 14px; font-size: 15px; font-style: italic; color: var(--ink-3); }
.ledger ul { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--paper-3); font-size: 15.5px; }
.ledger li span:last-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.ledger.bad li span:last-child { color: var(--muted); }
.ledger.good li span:last-child { color: var(--oxblood); font-weight: 700; }
.pull { font-size: 22px; font-style: italic; text-align: center; color: var(--ink-2); max-width: 640px; margin: 40px auto 0; }
.disclaimer { font-size: 13px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- Chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
.chapter { background: #fbf6e6; border: 1px solid var(--paper-3); border-radius: 4px; padding: 26px 26px 18px; position: relative; }
.chapter .roman { position: absolute; top: 18px; right: 22px; font-size: 40px; font-style: italic; color: var(--paper-3); font-weight: 600; line-height: 1; }
.chapter .mono { color: var(--oxblood); }
.chapter h3 { font-size: 25px; margin: 6px 0 4px; line-height: 1.15; }
.chapter p { margin: 0 0 12px; font-style: italic; color: var(--ink-3); font-size: 15.5px; }
.chapter ul { margin: 0; padding: 0; list-style: none; }
.chapter li { padding: 6px 0 6px 22px; position: relative; font-size: 15.5px; border-top: 1px dotted var(--paper-3); }
.chapter li::before { content: "✦"; position: absolute; left: 0; top: 6px; color: var(--gold-dk); font-size: 12px; }

.keepsake {
  margin: 34px auto 0; max-width: 820px; text-align: center; padding: 34px 30px;
  border: 1px solid var(--gold-dk); outline: 1px solid var(--gold-dk); outline-offset: 5px; background: #f6eed3;
}
.keepsake .orn { color: var(--gold-dk); font-size: 24px; }
.keepsake h3 { font-size: 30px; margin: 6px 0 10px; }
.keepsake .sign { color: var(--oxblood); font-style: italic; font-weight: 600; margin-bottom: 0; }

.taste-head { display: flex; align-items: center; gap: 16px; margin: 64px 0 26px; color: var(--brass); font-style: italic; letter-spacing: .1em; }
.taste-head::before, .taste-head::after { content: ""; flex: 1; height: 1px; background: var(--gold-dk); opacity: .5; }
.tastes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.taste { background: #f8f0d8; border: 1px solid var(--paper-3); padding: 18px; border-radius: 3px; box-shadow: 0 12px 24px -20px #2b241a; }
.taste .mono { font-size: 9.5px; color: var(--ink-3); }
.taste h4 { margin: 8px 0 4px; font-size: 17px; line-height: 1.2; }
.taste p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 36px; }
.review { background: #fbf6e6; border: 1px solid var(--paper-3); padding: 24px; border-radius: 4px; }
.review .stars { color: var(--gold-dk); letter-spacing: 3px; }
.review blockquote { margin: 10px 0 18px; font-style: italic; font-size: 16px; }
.review .who { display: flex; gap: 12px; align-items: center; }
.review .av { width: 38px; height: 38px; border-radius: 50%; background: var(--oxblood); color: var(--paper); display: grid; place-items: center; font-weight: 700; }
.review .who b { display: block; line-height: 1.2; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; margin-top: 40px; }
.album { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.album figure { margin: 0; background: var(--paper-2); padding: 6px; border: 1px solid var(--paper-3); box-shadow: 0 14px 26px -18px #2b241a; }
.album figure:nth-child(odd) { transform: rotate(-1.2deg); }
.album figure:nth-child(even) { transform: rotate(1deg); margin-top: 18px; }
.album img { aspect-ratio: 1/1; object-fit: cover; width: 100%; filter: sepia(.15); }
.album figcaption { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 2px 0; }
.about-text p { margin: 0 0 18px; }
.about-text .sign-off { font-size: 22px; font-style: italic; color: var(--oxblood); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--paper-3); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--oxblood); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 16.5px; }

/* ---------- Footer & sticky bar ---------- */
footer { background: var(--ink); color: var(--paper-3); padding: 48px 0 110px; font-size: 14px; }
footer .mono { color: var(--gold); }
footer a { color: var(--paper-2); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal { margin-top: 24px; font-size: 12px; color: #a99d7c; max-width: 760px; }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); border-top: 2px solid var(--oxblood);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-buy.show { transform: none; }
.sticky-buy .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.sticky-buy .what { color: var(--paper); font-size: 15px; line-height: 1.25; }
.sticky-buy .what s { color: #a99d7c; margin-left: 6px; }
.sticky-buy .what b { color: var(--gold); }
.sticky-buy .btn { padding: 13px 20px; font-size: 12px; }

.toast {
  position: fixed; left: 50%; top: 64px; transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: var(--paper); padding: 14px 18px; border-left: 4px solid var(--oxblood);
  font-size: 14px; max-width: 92vw; box-shadow: 0 10px 30px #0006;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tastes { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap, .narrow { padding: 0 16px; }
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
  .pad { padding: 60px 0; }
  .compare, .chapters { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .stack { padding: 20px 16px; }
  .stack li { grid-template-columns: 1fr auto; }
  .stack li .was { display: none; }
  .hero-photo { width: calc(100% - 32px); }
  .mockup { flex-wrap: nowrap; gap: 10px; padding: 28px 12px 22px; }
  .cover { width: 120px; } .cover.main { width: 160px; } .cover.small, .card-mock { display: none; }
  .cover .t { font-size: 16px; }
  .price-tag .now { font-size: 52px; }
  .btn-buy.big { padding: 20px 18px; font-size: 14px; }
  .guarantee { flex-direction: column; }
  .sticky-buy .what { font-size: 13px; }
  .sticky-buy .btn { flex: none; white-space: nowrap; padding: 12px 16px; }
}
@media (max-width: 420px) { .tastes { grid-template-columns: 1fr; } }
