/* =============================================================
   Design Tokens
   ============================================================= */
:root {
  --cream:        #faf8f3;
  --cream-alt:    #f0ebe0;
  --green:        #3d6b58;
  --green-dark:   #2c5040;
  --green-light:  #d4e4de;
  --black:        #1c1917;
  --muted:        #6a6460;
  --border:       #d6d0c6;
  --white:        #ffffff;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --body:  'Lora', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --nav-h:       56px;
  --max-w:       820px;
  --section-pad: 5rem;
  --reveal-dur:  0.6s;
}

/* =============================================================
   Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 400; }
h3 { font-size: 1.125rem; font-weight: 700; }

p { max-width: 65ch; }
p + p { margin-top: 1.25em; }

ul, ol { padding-left: 1.5rem; }
li + li { margin-top: 0.5rem; }

/* =============================================================
   Accessibility
   ============================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-nav {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green); color: var(--white);
  padding: 0.5rem 1rem; border-radius: 0 0 4px 4px;
  font-weight: 600; text-decoration: none; z-index: 9999;
}
.skip-nav:focus { top: 0; }

/* =============================================================
   Container
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================
   Header — minimal wordmark only, no nav
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 20px;
}

.nav-wordmark {
  font-family: var(--serif);
  font-size: 1.1rem; font-weight: 400; font-style: italic;
  color: var(--black); text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-wordmark:hover { color: var(--green); }

.site-header nav { margin-left: auto; }

.nav-link {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-link:hover,
.nav-link.active { color: var(--green); }

/* =============================================================
   Sections — base rule
   ============================================================= */
section { padding: var(--section-pad) 20px; }

/* =============================================================
   Hero
   ============================================================= */
.section-hero {
  background: var(--cream);
  padding-top: 9rem;
  padding-bottom: 7rem;
}

.section-hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* =============================================================
   Capture Form
   ============================================================= */
.capture-form {
  display: flex;
  max-width: 480px;
  margin-bottom: 0.875rem;
}

.capture-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.15s;
}
.capture-form input[type="email"]:focus { border-color: var(--green); }
.capture-form input::placeholder { color: var(--muted); }

.capture-form button {
  padding: 0.875rem 1.25rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.capture-form button:hover { background: var(--green-dark); }

.trust-line {
  font-family: var(--body);
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}
.trust-line::before {
  content: '·';
  margin-right: 0.4em;
}

/* =============================================================
   Empathy
   ============================================================= */
.section-empathy {
  background: var(--green-light);
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.section-empathy h2 { margin-bottom: 1.75rem; }

.section-empathy p { line-height: 1.8; }

/* =============================================================
   Benefits
   ============================================================= */
.section-benefits { background: var(--cream-alt); }

.section-benefits h2 { margin-bottom: 3rem; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.benefit-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 0.875rem;
}

.benefit h3 { margin-bottom: 0.625rem; }

.benefit p {
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* =============================================================
   FAQ
   ============================================================= */
.section-faq {
  background: var(--white);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.section-faq h2 { margin-bottom: 2.5rem; }

.faq-list { list-style: none; padding: 0; }
.faq-list li { border-top: 1px solid var(--border); }
.faq-list li:last-child { border-bottom: 1px solid var(--border); }

.faq-list details { width: 100%; }

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--green);
  flex-shrink: 0;
  line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }

.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  max-width: 65ch;
}

/* =============================================================
   Final CTA (green band)
   ============================================================= */
.section-cta {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-cta h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.section-cta .cta-sub {
  font-family: var(--sans);
  color: rgba(255, 255, 255, 0.75);
  max-width: 48ch;
  margin: 0 auto 2.25rem;
  font-size: 1.0625rem;
}

.section-cta .capture-form {
  margin-left: auto;
  margin-right: auto;
}

.section-cta .capture-form input[type="email"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.section-cta .capture-form input[type="email"]:focus { border-color: var(--white); }
.section-cta .capture-form input::placeholder { color: rgba(255, 255, 255, 0.55); }

.section-cta .capture-form button {
  background: var(--white);
  color: var(--green);
}
.section-cta .capture-form button:hover { background: var(--cream); }

.section-cta .trust-line { color: rgba(255, 255, 255, 0.6); max-width: none; text-align: center; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  padding: 2rem 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  background: var(--cream);
}
.site-footer p { max-width: none; }

/* =============================================================
   Thank-You: Confirmation
   ============================================================= */
.section-confirmation {
  background: var(--cream);
  padding-top: 5rem;
  padding-bottom: 4rem;
}
.section-confirmation h1 { margin-bottom: 1.25rem; }
.confirmation-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.75;
}

/* =============================================================
   Thank-You: Audio Player
   ============================================================= */
.section-player { background: var(--cream-alt); }

.player-label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.audio-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 520px;
  margin-bottom: 1.5rem;
}
.audio-wrap audio { width: 100%; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s;
}
.btn-download:hover { background: var(--green-dark); color: var(--white); }

.player-tip {
  display: block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
  max-width: 55ch;
}

/* =============================================================
   Thank-You: Before You Begin
   ============================================================= */
.section-before { background: var(--white); }
.section-before h2 { margin-bottom: 1.75rem; }
.section-before > .container > p { margin-bottom: 1.75rem; }

.steps {
  list-style: none;
  padding: 0;
  counter-reset: steps;
  max-width: 640px;
}

.steps li {
  counter-increment: steps;
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.steps li:first-child { border-top: 1px solid var(--border); }

.steps li::before {
  content: counter(steps);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.5;
  flex-shrink: 0;
  line-height: 1.4;
  min-width: 1.5rem;
}

.steps li strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* =============================================================
   Thank-You: How to Meditate
   ============================================================= */
.section-howto { background: var(--cream-alt); }
.section-howto h2 { margin-bottom: 1.75rem; }
.howto-body p { line-height: 1.8; }
.howto-body strong { font-weight: 600; }

/* =============================================================
   Thank-You: Inbox
   ============================================================= */
.section-inbox { background: var(--white); }
.section-inbox h2 { margin-bottom: 1.5rem; }
.section-inbox ul { margin: 1rem 0 1.5rem; }

.sign-off {
  margin-top: 2.5rem;
  font-style: italic;
  color: var(--muted);
}

/* =============================================================
   Scroll Reveal
   ============================================================= */
html.js [data-reveal] {
  opacity: 0;
  transition: opacity var(--reveal-dur) ease, transform var(--reveal-dur) ease;
}
html.js [data-reveal="up"]    { transform: translateY(20px); }
html.js [data-reveal="left"]  { transform: translateX(-24px); }
html.js [data-reveal="right"] { transform: translateX(24px); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

html.js [data-delay="1"] { transition-delay: 0.12s; }
html.js [data-delay="2"] { transition-delay: 0.25s; }
html.js [data-delay="3"] { transition-delay: 0.38s; }

/* =============================================================
   Article Pages
   ============================================================= */

.article-header {
  background: var(--cream);
  padding: 5rem 20px 3rem;
}

.article-header h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
}

.article-body {
  background: var(--white);
  padding: 3rem 20px 5rem;
}

.article-lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.75;
  max-width: 58ch;
  margin-bottom: 3rem;
}

.prose p { line-height: 1.8; margin-bottom: 1.25rem; }
.prose p + p { margin-top: 0; }

.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
}

.prose h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
  max-width: 65ch;
}

.prose li {
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--green-dark); }

.article-cta {
  background: var(--cream-alt);
  border-left: 3px solid var(--green);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
  border-radius: 0 4px 4px 0;
  font-family: var(--sans);
  font-weight: 500;
  max-width: 65ch;
}

.article-cta a { color: var(--green); font-weight: 600; text-decoration: none; }
.article-cta a:hover { color: var(--green-dark); text-decoration: underline; }

.article-disclaimer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: normal;
  max-width: 65ch;
}

/* =============================================================
   Blog Page
   ============================================================= */

.section-blog-hero {
  background: var(--cream);
  padding-top: 6rem;
  padding-bottom: 3.5rem;
}
.section-blog-hero h1 { margin-bottom: 1rem; }
.blog-intro {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.75;
}

.section-blog-grid { background: var(--white); }

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}

.article-card {
  border-top: 2px solid var(--green);
  padding-top: 1.5rem;
}

.article-card-num {
  font-family: var(--serif);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.article-card h2 {
  font-size: clamp(1.1rem, 2vw, 1.375rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.article-card h2 a {
  color: var(--black);
  text-decoration: none;
}
.article-card h2 a:hover { color: var(--green); }

.article-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: none;
  margin-bottom: 1.25rem;
}

.article-card-link {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.article-card-link:hover { color: var(--green-dark); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 680px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 2rem; }
  .article-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 540px) {
  .capture-form { flex-direction: column; gap: 0.625rem; }

  .capture-form input[type="email"] {
    border-right: 1.5px solid var(--border);
    border-radius: 4px;
  }
  .section-cta .capture-form input[type="email"] {
    border-right: 1.5px solid rgba(255, 255, 255, 0.35);
  }
  .capture-form button { border-radius: 4px; }
}
