/* ============================================================
   5×5 — The Healthspan Dividend
   Distinctive identity: editorial serif display on warm paper,
   a single deep-green accent, the 5×5 wordmark as signature.
   ============================================================ */

:root {
  --paper:      #FBFAF6;   /* warm off-white */
  --paper-2:    #F3F1E9;   /* slightly deeper panel */
  --ink:        #1A1917;   /* warm near-black */
  --ink-soft:   #514E45;   /* muted body / captions */
  --accent:     #16624A;   /* deep vital green — the dividend */
  --accent-2:   #C89A3C;   /* aged gold, used sparingly */
  --rule:       #E2DFD3;   /* hairlines */
  --maxw:       1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.wordmark .times { color: var(--accent); font-weight: 500; margin: 0 0.02em; }
.wordmark-sm { font-size: 2.4rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(22,98,74,0.06), transparent 60%),
    var(--paper);
}

.nav {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 1.8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-cta {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.nav-cta:hover { color: var(--accent); }

.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: auto auto 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.hero-h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero-h1 .accent { color: var(--accent); font-style: italic; font-weight: 500; }

.hero-sub {
  margin-top: 1.8rem;
  max-width: 44ch;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  transition: transform 0.12s ease, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #124f3b; }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 1.15rem; padding: 1rem 1.9rem; margin-top: 2rem; }

/* ---------- Hero equation strip ---------- */
.equation {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
}
.eq-num {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--ink);
  line-height: 1;
}
.eq-pct { font-size: 0.5em; color: var(--accent); vertical-align: super; }
.eq-op {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  color: var(--accent);
  font-weight: 400;
}
.eq-lbl {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}
.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.section-lead {
  margin-top: 1.4rem;
  max-width: 46ch;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.prose { margin-top: 1.8rem; max-width: 58ch; }
.prose p { margin-bottom: 1.2rem; color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }

.footnote {
  margin-top: 2.4rem;
  max-width: 58ch;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* section rhythm — alternating panel */
.dividend, .proof { background: var(--paper-2); max-width: none; }
.dividend > *, .proof > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* ---------- The loop / layers ---------- */
.layers {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.layer {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 1.7rem;
}
.layer-featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.layer-num {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent);
}
.layer-featured .layer-num { color: var(--accent-2); }
.layer h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0.6rem 0 0.8rem;
}
.layer p { font-size: 0.98rem; color: var(--ink-soft); }
.layer-featured p { color: #D8D5C8; }
.layer-featured strong { color: #fff; }
.layer-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 0.9rem !important;
}

.loop-close {
  margin-top: 2.2rem;
  padding: 1.8rem 2rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  border-radius: 0 4px 4px 0;
}
.loop-close p { max-width: 64ch; font-size: 1.08rem; }

/* method + venue frames */
.frames {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.frame {
  padding: 1.9rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.frame-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.frame h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}
.frame p { font-size: 0.98rem; color: var(--ink-soft); }
.frame-src { margin-top: 0.9rem; font-size: 0.82rem; font-style: italic; }

/* ---------- Proof ---------- */
.proof-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.proof-card {
  padding: 1.9rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.proof-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}
.proof-card p { font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Ask ---------- */
.ask { text-align: left; }
.ask .section-h2 { max-width: 24ch; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 3.5rem clamp(1.5rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.footer-line {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0.8rem 0 1.2rem;
}
.footer-fine {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .layers, .frames, .proof-grid { grid-template-columns: 1fr; }
  .hero-h1 { max-width: 100%; }
}
