/* ============================================================
   Ken Reads Jyotish — "Forest Sanctuary" design system
   Calm, natural, meditative. Sage & forest greens, warm stone,
   airy Cormorant Garamond headings, generous whitespace.
   ============================================================ */

:root {
  --forest:    #445138;   /* deep forest green — earthiness */
  --forest-d:  #333d2a;
  --sage:      #7f9070;   /* soft sage */
  --sage-tint: #e8ece1;   /* pale sage section wash */
  --clay:      #cf9a34;   /* luminous temple gold — CTA / illumination */
  --clay-d:    #a5761c;   /* deeper gold — button hover & readable link text */
  --gold:      #d9a94a;   /* bright gold accent */
  --cream:     #faf7f0;   /* warm luminous paper background */
  --cream-2:   #f3eee1;
  --ink:       #35322b;   /* warm near-black */
  --ink-soft:  #5f5a4e;
  --line:      #e6dfcf;   /* warm hairline */
  --white:     #ffffff;

  --maxw: 1080px;
  --radius: 10px;
  --shadow: 0 14px 50px rgba(53, 50, 43, 0.08);
  --shadow-sm: 0 6px 22px rgba(53, 50, 43, 0.06);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--clay-d); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--forest); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.15em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }
.section { padding: 92px 0; }
.section-tint { background: var(--sage-tint); }
.section-cream2 { background: var(--cream-2); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clay-d);
  margin-bottom: 18px;
}

/* ---------- Buttons (understated, letter-spaced) ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 15px 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-d); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-outline { border-color: var(--sage); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); border-color: var(--forest); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* header nav gets a wider container than the 1080px reading column so the full menu has room */
.site-header .container { max-width: 1240px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: 78px; }
.brand {
  display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600;
  font-size: 1.3rem; color: var(--ink); letter-spacing: .01em;
  white-space: nowrap; flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.nav-links a {
  color: var(--ink-soft); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); text-decoration: none; }
/* CTA button in nav must keep white button text, not inherit the dark nav-link color */
.nav-links .btn-primary, .nav-links .btn-primary:hover, .nav-links .btn-primary:active { color: #fff; }
.nav-cta { margin-left: 4px; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 14px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 150px 0 160px;
  background: linear-gradient(rgba(34, 40, 26, .30), rgba(34, 40, 26, .48)), var(--hero-img, none);
  background-size: cover;
  background-position: center 55%;
}
.hero .eyebrow { color: #e7d9bd; }
.hero h1 { color: #fff; max-width: 16ch; margin-inline: auto; font-weight: 500; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero p.lead { font-size: 1.22rem; font-weight: 300; max-width: 48ch; margin: 24px auto 34px; color: rgba(255,255,255,.94); }
.hero .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* page banner — soft forest, calm */
.page-banner {
  position: relative; color: #fff; padding: 96px 0 84px; text-align: center;
  background: linear-gradient(rgba(38,43,30,.48), rgba(38,43,30,.62)), var(--banner-img, none);
  background-size: cover; background-position: center 50%;
  background-color: var(--forest);
}
.page-banner .eyebrow { color: #e7d9bd; }
.page-banner h1 { color: #fff; font-weight: 500; }
.page-banner p { color: rgba(255,255,255,.9); max-width: 54ch; margin: 10px auto 0; font-weight: 300; font-size: 1.1rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.card .card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .card-foot { margin-top: auto; padding-top: 16px; }

/* reading rows */
.reading {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 34px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr auto; gap: 12px 28px; align-items: center;
}
.reading + .reading { margin-top: 20px; }
.reading h3 { margin: 0; }
.reading .meta { color: var(--clay-d); font-weight: 700; font-size: .82rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
.reading .price { font-family: var(--serif); font-size: 1.7rem; color: var(--forest); font-weight: 600; }
.reading p { margin: 12px 0 0; color: var(--ink-soft); }
.reading .cta { text-align: center; }
.reading .cta .price { display: block; margin-bottom: 12px; }
@media (max-width: 640px) {
  .reading { grid-template-columns: 1fr; }
  .reading .cta { text-align: left; }
  .reading .cta .price { display: inline-block; margin: 0 16px 0 0; }
}

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border-radius: var(--radius); padding: 32px 34px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  break-inside: avoid; margin-bottom: 30px;
}
.quote p { font-size: 1.02rem; color: var(--ink); font-weight: 400; }
.quote p:first-child { font-family: var(--serif); font-size: 1.24rem; line-height: 1.55; font-weight: 500; color: var(--ink); }
.quote .who { font-weight: 700; color: var(--forest); font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.quotes-masonry { columns: 2; column-gap: 30px; }
@media (max-width: 820px) { .quotes-masonry { columns: 1; } }

/* ---------- Prose ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--ink-soft); font-size: 1.08rem; }
.prose p.lead { color: var(--ink); }
.prose h2 { margin-top: 1.7em; color: var(--forest); }
.prose ul { margin: 0 0 1.15em; padding-left: 1.4em; color: var(--ink-soft); }
.prose li { margin-bottom: .5em; font-size: 1.08rem; }
.prose figure { margin: 26px 0; }
.prose figure img { border-radius: 10px; box-shadow: var(--shadow-sm); width: 100%; }
.prose img { border-radius: 10px; margin: 26px 0; box-shadow: var(--shadow-sm); }

/* ---------- CTA band (soft forest) ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--forest), var(--forest-d));
  color: #fff; text-align: center; padding: 90px 0;
}
.cta-band .eyebrow { color: #d9c9a6; }
.cta-band h2 { color: #fff; font-weight: 500; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 48ch; margin: 0 auto 30px; font-weight: 300; font-size: 1.1rem; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--sage); border-color: transparent; }

/* Newsletter (Kit) — themed to match */
.newsletter-form { max-width: 520px; margin-top: 24px; }
.newsletter-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.newsletter-form input[type="email"] {
  flex: 1 1 240px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--sage); border-color: transparent; }
.newsletter-form .btn { flex: 0 0 auto; border: 1px solid transparent; }
.newsletter-success { color: var(--forest); font-weight: 700; font-size: 1.1rem; margin-top: 8px; }

/* Stripe buy button */
.stripe-button-wrap { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-d); color: rgba(255,255,255,.78); padding: 66px 0 34px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.footer-brand { display: flex; align-items: center; gap: 13px; font-family: var(--serif); font-size: 1.4rem; color: #fff; margin-bottom: 12px; }
.footer-brand img { width: 42px; height: 42px; }
.footer-col h4 { color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 14px; font-family: var(--sans); font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 46px; padding-top: 24px; font-size: .85rem; text-align: center; letter-spacing: .03em; }

/* ---------- misc ---------- */
.lead { font-size: 1.2rem; color: var(--ink-soft); font-weight: 400; line-height: 1.7; }
.tag { display:inline-block; background: var(--sage-tint); color: var(--forest); border-radius:999px; padding:5px 14px; font-size:.72rem; font-weight:700; text-transform: uppercase; letter-spacing:.1em; }
.notice { background: #fbf7ee; border: 1px solid #ecdfc4; border-left: 3px solid var(--gold); border-radius: 8px; padding: 18px 22px; font-size: 1rem; color: var(--ink-soft); line-height: 1.6; }
.divider-symbol { text-align:center; color: var(--sage); font-size: 1.4rem; letter-spacing: .5em; margin: 8px 0 0; }
