/* Hearth & Vow - site styles. Colors and fonts match the planner's Garden design. */
:root {
  --ink: #2a2c25;
  --ink-soft: #585b4e;
  --ink-faint: #66695c; /* 4.5:1 or better on paper, ivory and ivory-2 */
  --paper: #fffdf8;
  --ivory: #f7f3ea;
  --ivory-2: #efe9db;
  --line: #d5d7ca;
  --line-strong: #a3a694;
  --sage: #7d8a66;
  --sage-deep: #515d3c;
  --sage-soft: #e6eadb;
  --gold: #a88c55;
  --gold-deep: #846d3c;

  --display: 'Sorts Mill Goudy', 'Goudy Old Style', Garamond, 'Times New Roman', serif;
  --body: 'Jost', 'Century Gothic', 'Segoe UI', system-ui, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(42, 44, 37, 0.06), 0 12px 32px -12px rgba(42, 44, 37, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 3px; border-radius: 3px; }
.btn:focus-visible { border-radius: 999px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }

.kicker { font: 500 12.5px/1.2 var(--body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 16px/1.2 var(--body); letter-spacing: 0.02em; text-decoration: none;
  border-radius: 999px; padding: 16px 30px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
/* shown instead of the buy button while checkoutUrl is empty */
.btn.is-soon { margin: 0; background: var(--paper); color: var(--ink); border: 1px dashed var(--gold); cursor: default; }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(168, 140, 85, 0.18); flex: none; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.buy-alt { font-size: 15.5px; font-weight: 500; padding: 10px 0; }
.center .buy-row, .price-card .buy-row { justify-content: center; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-small { padding: 9px 18px; font-size: 14.5px; background: var(--sage-deep); color: #fff; }
.btn-small:hover { background: var(--ink); color: #fff; }
.buy-note { margin-top: 12px; font-size: 14px; color: var(--ink-faint); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 248, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.site-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 400 22px/1 var(--display); white-space: nowrap; }
.logo img { width: 40px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 8px 0; }
.site-nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } .logo { font-size: 20px; } }

/* ---------- hero ---------- */
.hero { background: var(--ivory); padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.01em; }
.hero-lead { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 34ch; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.hero-facts li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.hero-facts li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 7px; border-left: 1.6px solid var(--sage); border-bottom: 1.6px solid var(--sage); transform: rotate(-45deg); }
.hero-facts strong { color: var(--ink); font-weight: 500; }
.hero-buy { margin-top: 32px; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 560px; margin: 0 auto; }
}

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.strip-list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; padding-top: 18px; padding-bottom: 18px; }
.strip-list li { font-size: 14.5px; letter-spacing: 0.04em; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.strip-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--ivory); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); }
.section-lead { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 30px; }
.tile-icon { width: 44px; height: 44px; margin-bottom: 18px; }
.tile h3 { font-size: 24px; margin-bottom: 10px; }
.tile p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* gallery */
.gallery { list-style: none; padding: 0; margin: 0 0 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; }
.gallery-item { display: block; border-radius: 3px; box-shadow: var(--shadow); background: #fff; overflow: hidden; transition: transform .25s; }
.gallery-item:hover { transform: translateY(-4px); }
.gallery-item img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; }
.gallery-title { margin-top: 16px; font: 400 20px/1.2 var(--display); }
.gallery-caption { margin-top: 4px; font-size: 14.5px; color: var(--ink-soft); }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } .gallery-caption { display: none; } .gallery-title { font-size: 17px; } }

/* contents */
.contents { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.contents-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.contents-num { font: 400 30px/1 var(--display); color: var(--gold-deep); padding-top: 2px; }
.contents-item h3 { font-size: 23px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.contents-item h3 span { font: 500 12px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.contents-item p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 760px) { .contents { grid-template-columns: 1fr; } }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-art { margin: 0; }
.split-art img { border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.split-art figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-faint); text-align: center; }
.split-copy h2 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; }
.split-copy > p { color: var(--ink-soft); font-size: 18px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split.is-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.split.is-rev .split-art img { box-shadow: none; border-radius: 0; width: 100%; }
.split-art figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-faint); text-align: center; }
.app-note { margin-top: 22px; font-size: 15.5px; color: var(--ink-soft); }
.app-actions { margin-top: 22px; }
@media (max-width: 880px) { .split.is-rev { grid-template-columns: 1fr; } .split.is-rev .split-art { order: -1; } }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 0.6em; width: 13px; height: 7px; border-left: 1.6px solid var(--sage); border-bottom: 1.6px solid var(--sage); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); font-weight: 500; }

/* points */
.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.point { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.point h3 { font-size: 23px; margin-bottom: 10px; }
.point p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 1000px) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }

/* how */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: how; }
.how li { text-align: center; padding: 0 12px; }
.how-num { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: 50%; font: 400 24px/1 var(--display); color: var(--gold-deep); margin-bottom: 18px; }
.how h3 { font-size: 24px; margin-bottom: 8px; }
.how p { color: var(--ink-soft); font-size: 15.5px; max-width: 32ch; margin: 0 auto; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }

/* price */
.price-card {
  position: relative; max-width: 620px; margin: 0 auto; text-align: center; background: var(--paper);
  border: 1px solid var(--line-strong); outline: 1px solid var(--line); outline-offset: -9px; border-radius: 4px;
  padding: clamp(40px, 6vw, 64px) clamp(22px, 6vw, 64px) clamp(36px, 5vw, 52px);
}
.price-ornament { width: 96px; height: 96px; margin: 0 auto 18px; }
.price-card h2 { font-size: clamp(30px, 4vw, 40px); }
.price { margin: 22px 0 4px; font: 400 64px/1 var(--display); color: var(--ink); }
.price-cur { font-size: 0.55em; vertical-align: 0.6em; margin-right: 2px; }
.price-code { font: 500 13px/1 var(--body); letter-spacing: 0.18em; color: var(--ink-faint); vertical-align: 0.9em; }
.price-note { color: var(--gold-deep); font-size: 15px; }
.price-list { text-align: left; max-width: 400px; margin: 28px auto 32px; }
.promise { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.promise strong { color: var(--ink); font-weight: 500; }

/* faq */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 400 21px/1.3 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--sage-deep); border-bottom: 1.5px solid var(--sage-deep); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 0 24px; color: var(--ink-soft); }
.faq-a p + p, .faq-a ul { margin-top: 10px; }
.faq-a ul { padding-left: 20px; }
.faq-more { margin-top: 32px; color: var(--ink-soft); }
.sample-note { margin: 14px auto 0; max-width: 52ch; font-size: 14.5px; color: var(--ink-soft); }

.closing h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 18px 0 14px; }
.closing img { margin: 0 auto; }
.closing .buy-row { margin-top: 30px; }

/* sticky mobile buy bar */
.buy-bar { display: none; }
@media (max-width: 760px) {
  .buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, 0.96); border-top: 1px solid var(--line);
    transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s; font-size: 15px;
  }
  .buy-bar.is-visible { transform: none; visibility: visible; }
  body.home { padding-bottom: 64px; }
}

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 860px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 31, 27, 0.82); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); background: #fff; }
.lightbox-caption { color: #f3efe6; text-align: center; margin-top: 12px; font-size: 15px; }
.lightbox :focus-visible { outline-color: #fff; }
@media (max-width: 600px) { .lightbox .lightbox-close { top: -52px; right: 0; } }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-foot { background: var(--ivory); border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 0; }
.site-foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-brand p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; display: inline-block; padding: 6px 0; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-small { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-small p { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- text pages (terms, privacy, thank you) ---------- */
.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.doc h1 { font-size: clamp(38px, 5vw, 54px); margin-bottom: 12px; }
.doc .updated { color: var(--ink-faint); font-size: 14.5px; margin-bottom: 40px; }
.doc h2 { font-size: 28px; margin: 44px 0 14px; scroll-margin-top: 90px; }
.doc h3 { font-size: 21px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc .callout { background: var(--ivory); border-left: 2px solid var(--sage); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.doc .callout p { color: var(--ink); }
.thanks { text-align: center; }
.thanks img { margin: 0 auto 22px; }
.thanks .steps-list { text-align: left; max-width: 560px; margin: 32px auto; }
