/* Morning Manna — public site
   Palette mirrors the app (DESIGN_DECISIONS.md): warm dark ground, amber accent,
   Lora for the devotional voice, Inter for utility. One file, no build step. */

:root {
  --bg: #1a1714;
  --bg-raised: #221e1a;
  --card: #262119;
  --border: #3a332a;
  --accent: #e8b44c;
  --accent-soft: rgba(232, 180, 76, 0.12);
  --text: #f1e9d8;
  --text-body: #d6cbb6;
  --text-secondary: #a99e8a;
  --text-muted: #746b5c;
  --max: 1040px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Dawn glow — the Chapel language's one decorative gesture ── */
.glow {
  position: relative;
  isolation: isolate;
}
.glow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(232, 180, 76, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.25rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 26px; font-size: 0.95rem; }
.nav a { color: var(--text-secondary); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero .ornament {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-body);
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero .epigraph {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 40px;
}
.hero .epigraph span {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #f0c05e; }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.store-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Sections ── */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.section-intro { max-width: 640px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-secondary); margin: 0; font-size: 0.97rem; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card .step {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-body);
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin: 28px 0;
}
.verse cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Tier comparison ── */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 28px; }
.tier { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.tier.featured { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--card) 60%); }
.tier h3 { font-size: 1.4rem; }
.tier ul { padding-left: 18px; margin: 12px 0 0; color: var(--text-secondary); font-size: 0.97rem; }
.tier li { margin-bottom: 6px; }

/* ── Legal / prose pages ── */
.prose { max-width: 720px; padding: 40px 0 72px; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose .updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 36px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 0.5em; }
.prose .callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 0.97rem;
}
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 18px 0; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }

/* ── FAQ ── */
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
details summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; color: var(--text-body); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; }
.site-footer .links a { color: var(--text-secondary); }
.site-footer .fleuron { color: var(--accent); margin: 0 8px; }

@media (max-width: 640px) {
  .nav { gap: 16px; font-size: 0.9rem; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 44px 0; }
}
