:root {
  --paper: #F6F1E7;
  --paper-deep: #EDE5D6;
  --ink: #252620;
  --green: #274C38;
  --green-deep: #1C3828;
  --muted: #615E55;
  --rule: #CBC3B4;
  --honey: #E3B04B;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5.4vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  background: var(--green); color: #fff;
  font: 700 1.02rem/1 var(--sans); text-decoration: none;
  border-radius: 999px; border: 2px solid var(--green);
  transition: background .15s;
}
.btn:hover { background: var(--green-deep); }
.btn-quiet { background: transparent; color: var(--green); }
.btn-quiet:hover { background: var(--paper-deep); }
.btn-block { width: 100%; }

/* Announcement */
.notice {
  background: var(--green); color: #F6F1E7;
  text-align: center; font-size: .84rem; padding: 8px 12px; margin: 0;
}
.notice strong { color: var(--honey); font-weight: 700; }

/* Hero */
.hero { padding: 24px 0 56px; }
.hero-grid { display: grid; gap: 22px; align-items: center; }
.hero-book { display: flex; flex-direction: column; align-items: center; }
.book {
  position: relative; width: min(50vw, 360px); aspect-ratio: 4 / 5;
  transform: perspective(1400px) rotateY(-16deg) rotateX(2deg);
  transform-origin: left center;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 22px 26px 40px -18px rgba(37, 38, 32, .55), 4px 4px 0 #e4dccb, 8px 7px 0 #d9d0bd;
  background: var(--paper);
  overflow: hidden;
}
.book::before { /* spine crease */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 18px; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 45%, rgba(0,0,0,.08));
}
.book img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-caption { font-size: .78rem; color: var(--muted); margin: 14px 0 0; }

.hero-copy .kicker { font: italic 400 1.15rem/1.3 var(--serif); color: var(--muted); margin-bottom: 6px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.6rem); color: var(--green); }
.hero .lede { font: 400 1.2rem/1.45 var(--serif); margin: 12px 0 18px; max-width: 30em; }
.hero-buy { display: grid; gap: 12px; max-width: 420px; }
.hero-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-price .now { font: 500 2.4rem/1 var(--serif); }
.hero-price .later { color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }
.fine a { color: inherit; }
.gift-note {
  margin-top: 22px; max-width: 420px; padding: 14px 16px;
  border-left: 3px solid var(--honey); background: var(--paper-deep);
  font-size: .95rem;
}

/* Proof wall */
.proof { background: var(--ink); color: var(--paper); }
.proof .section-head p { color: #c9c3b6; }
.proof h2 { color: var(--paper); }
.wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { position: relative; margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: #3a3a33; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 36px 12px 11px;
  background: linear-gradient(transparent, rgba(20, 20, 16, .86));
  color: #fff; font-size: .86rem; line-height: 1.25;
}
.tile .views { display: block; font: 500 1.35rem/1.1 var(--serif); color: var(--honey); }
.proof-total { margin-top: 28px; color: #c9c3b6; font-size: .95rem; }

/* Pages */
.spreads {
  display: grid; grid-auto-flow: column; grid-auto-columns: 92%;
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
}
.spreads figure { margin: 0; scroll-snap-align: start; }
.spreads img { border-radius: 3px; box-shadow: 0 14px 30px -16px rgba(37,38,32,.5); }
.spreads figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.features { display: grid; gap: 18px 32px; margin-top: 36px; padding: 0; list-style: none; }
.features li { border-top: 1px solid var(--rule); padding-top: 14px; }
.features strong { display: block; font: 500 1.2rem/1.3 var(--serif); }
.features span { color: var(--muted); font-size: .96rem; }

/* Story */
.story { background: var(--paper-deep); }
.story-grid { display: grid; gap: 36px; align-items: start; }
.story-photo img { border-radius: 4px; width: 100%; }
.story-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.story-copy { font: 400 1.22rem/1.6 var(--serif); max-width: 34em; }
.story-copy h2 { margin-bottom: 8px; }
.story-copy .from { font: 400 .95rem/1.4 var(--sans); color: var(--muted); margin-bottom: 26px; }
.story-copy blockquote { margin: 0 0 1.2em; padding: 0; }
.story-copy .sign { font-style: italic; color: var(--green); }

/* Comments */
/* Endless sideways loop; the track holds the cards twice (JS adds the copy), so -50% lands on the seam. */
.marquee { overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 110s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; padding: 4px 20px; }
  .marquee-track { animation: none; }
  .marquee .comment { scroll-snap-align: center; }
}
.comment { flex: none; width: min(78vw, 330px); display: flex; flex-direction: column; justify-content: space-between; margin: 0; padding: 22px 22px 18px; background: #fff; border-radius: 4px; border: 1px solid var(--rule); }
.comment p { font: 400 1.22rem/1.45 var(--serif); margin: 0 0 12px; }
.comment cite { font-style: normal; font-size: .86rem; color: var(--muted); }

/* Contents */
.toc { columns: 1; column-gap: 40px; }
.toc section { break-inside: avoid; margin-bottom: 26px; }
.toc h3 { font-size: 1.2rem; color: var(--green); border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { font-size: .97rem; padding: 3px 0; }

/* Pricing */
.pricing { background: var(--green); color: var(--paper); }
.pricing h2 { color: var(--paper); }
.pricing .section-head p { color: #cbd6cd; }
.plans { display: grid; gap: 22px; align-items: stretch; }
.plan-featured { order: -1; } /* recommended plan first on phones */
.plan {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 26px 22px 22px; position: relative;
}
.plan-featured { outline: 4px solid var(--honey); }
.plan .badge {
  position: absolute; top: -13px; left: 22px;
  background: var(--honey); color: var(--ink);
  font: 700 .8rem/1 var(--sans); padding: 7px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.6rem; }
.plan .price { font: 500 2.6rem/1 var(--serif); }
.plan .price small { font: 400 .95rem var(--sans); color: var(--muted); margin-left: 6px; }
.plan ul { margin: 0; padding: 0 0 0 1.1em; font-size: .97rem; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .fine { text-align: center; }
.pay-note { margin-top: 24px; font-size: .92rem; color: #cbd6cd; text-align: center; }

/* Gift */
.gift-grid { display: grid; gap: 32px; align-items: center; }
.gift-card-img { transform: rotate(-2deg); box-shadow: 0 22px 40px -20px rgba(37,38,32,.55); border-radius: 4px; }
.timeline { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: step; }
.timeline li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font: 700 .9rem/30px var(--sans); text-align: center;
}
.timeline strong { display: block; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font: 500 1.25rem/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem var(--sans); color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* Final */
.final { text-align: center; padding: 80px 0 120px; }
.final h2 { max-width: 16em; margin: 0 auto 14px; }
.final p { color: var(--muted); }
footer { border-top: 1px solid var(--rule); padding: 28px 0 110px; font-size: .88rem; color: var(--muted); }

/* Sticky mobile buy bar */
.buybar {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246, 241, 231, .97); border-top: 1px solid var(--rule);
  transform: translateY(110%); transition: transform .25s ease;
}
.buybar.show { transform: none; }
.buybar .t { font-size: .9rem; line-height: 1.25; }
.buybar .t strong { display: block; font: 500 1.2rem var(--serif); }
.buybar .btn { min-height: 46px; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) { .buybar { transition: none; } }

@media (min-width: 720px) {
  .wall { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .spreads { grid-auto-columns: 78%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .toc { columns: 2; }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  .section { padding: 104px 0; }
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .book { width: min(34vw, 380px); }
  .book-caption { margin-top: 30px; }
  .hero .lede { font-size: 1.32rem; margin: 18px 0 26px; }
  .wall { grid-template-columns: repeat(4, 1fr); }
  .spreads { grid-auto-columns: 64%; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .story-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .story-photo { position: sticky; top: 32px; }
  .toc { columns: 3; }
  .plans { grid-template-columns: 1fr 1.08fr 1fr; align-items: center; }
  .plan-featured { padding: 36px 26px 28px; order: 0; }
  .gift-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .buybar { display: none; }
  footer { padding-bottom: 40px; }
}
