/* SI Prayer — v1 design system
   Warm, reverent, mobile-first. Solid colors only — no gradients anywhere. */

:root {
  --cream: #faf6ec;        /* page background */
  --ivory: #f4eee0;        /* section alt background */
  --card: #fffdf8;         /* card background */
  --ink: #3b2c20;          /* deep warm brown — primary text */
  --ink-soft: #6b5942;     /* secondary text */
  --ink-faint: #8d7a63;    /* tertiary text */
  --gold: #a8802f;         /* muted gold — accents, buttons */
  --gold-deep: #84651f;    /* gold hover / dark accent */
  --gold-soft: #efe3c6;    /* gold wash for highlights */
  --navy: #233047;         /* deep navy — footer, select headings */
  --line: #e4d9c2;         /* hairline borders */
  --line-strong: #d3c5a4;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(59, 44, 32, 0.08);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink);
}
.brand-text span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 500;
}
.main-nav a:hover { color: var(--ink); background: var(--ivory); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--gold) !important; color: #fff !important;
  font-weight: 600; padding: 9px 16px !important;
}
.nav-cta:hover { background: var(--gold-deep) !important; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero-kicker {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600; margin-bottom: 14px;
}
.hero-tag {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px;
}

/* ---------- Verse card ---------- */
.verse-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}
.verse-label {
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin-bottom: 12px;
}
.verse-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.45; font-weight: 500; color: var(--ink);
  margin-bottom: 14px;
}
.verse-ref {
  font-weight: 600; color: var(--gold-deep);
  font-size: 1rem; margin-bottom: 6px;
}
.verse-version { font-size: 0.8rem; color: var(--ink-faint); margin-bottom: 16px; }
.verse-reflection {
  border-top: 1px solid var(--line);
  padding-top: 16px; margin-top: 4px;
  color: var(--ink-soft); font-size: 0.98rem; font-style: italic;
}
.verse-card .btn-row { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold); color: #fff;
  font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 10px;
  text-decoration: none; border: 2px solid var(--gold);
  cursor: pointer; font-family: var(--font-body);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 2px solid var(--line-strong);
}
.btn-outline:hover { background: var(--ivory); border-color: var(--gold); color: var(--ink); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Signup ---------- */
.signup {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.signup h2 { margin-bottom: 8px; }
.signup p.lead { color: var(--ink-soft); margin-bottom: 20px; }
.signup-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; margin: 0 auto; }
.signup-form input {
  font: inherit; padding: 13px 16px;
  border: 1.5px solid var(--line-strong); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
.signup-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.signup-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 12px; margin-bottom: 0; }
.signup-success { display: none; padding: 12px 0 4px; }
.signup-success .check {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 12px;
}
.form-error { color: #a33b2e; font-size: 0.88rem; min-height: 1.4em; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-alt { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-deep);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 0; }
.step .soon {
  display: inline-block; margin-top: 10px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-deep); background: var(--gold-soft);
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Safeguard strip ---------- */
.safeguard-strip {
  background: var(--navy); color: #f2ead8;
  border-radius: var(--radius); padding: 28px;
  text-align: center; max-width: 860px; margin: 0 auto;
}
.safeguard-strip h3 { color: #fff; margin-bottom: 8px; }
.safeguard-strip p { color: #cfc4a8; margin-bottom: 16px; font-size: 0.96rem; }
.safeguard-strip .btn-outline { color: #fff; border-color: #8b93a8; }
.safeguard-strip .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: #fff; color: #fff; }

/* ---------- Testimonials (placeholders) ---------- */
.quotes { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--card); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 26px 22px;
}
.quote p { font-style: italic; color: var(--ink-soft); margin-bottom: 12px; }
.quote .who { font-size: 0.85rem; color: var(--ink-faint); font-style: normal; }
.placeholder-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); border: 1px solid var(--line-strong);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 18px 20px; margin-bottom: 12px;
}
.faq summary {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  cursor: pointer; color: var(--ink);
}
.faq summary::marker { color: var(--gold-deep); }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- Topic chips / verse archive ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.chip {
  font: inherit; font-size: 0.9rem; font-weight: 500;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink-soft);
  border: 1.5px solid var(--line-strong);
}
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.verse-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .verse-grid { grid-template-columns: repeat(2, 1fr); } }
.verse-tile {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 22px 20px;
}
.verse-tile .t-text { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.5; margin-bottom: 10px; }
.verse-tile .t-ref { font-weight: 600; color: var(--gold-deep); font-size: 0.92rem; }
.verse-tile .t-topics { margin-top: 10px; font-size: 0.78rem; color: var(--ink-faint); }
.verse-tile .t-refl { margin-top: 10px; font-size: 0.9rem; font-style: italic; color: var(--ink-soft); }

/* ---------- Prose pages ---------- */
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.6em; color: var(--ink-soft); }
.prose li strong { color: var(--ink); }
.callout {
  background: var(--gold-soft); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 20px 22px; margin: 24px 0;
}
.callout p { margin-bottom: 0; color: var(--ink); }
.crisis-box {
  background: #fdf3ec; border: 2px solid #c96f3b;
  border-radius: var(--radius); padding: 26px; margin: 28px 0;
}
.crisis-box h3 { color: #8f4423; margin-bottom: 8px; }
.crisis-box p { color: var(--ink-soft); margin-bottom: 8px; }
.crisis-box .big { font-size: 1.5rem; font-weight: 700; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfc4a8; margin-top: 0; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 44px 20px 28px;
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 12px; }
.site-footer p, .site-footer a { font-size: 0.92rem; color: #b7ab8d; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 20px; text-align: center;
  font-size: 0.82rem; color: #8f96a8;
  max-width: 1080px; margin: 0 auto;
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.page-hero { padding: 48px 0 12px; text-align: center; }
.page-hero p.lead { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 1.08rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.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;
}
