/* Havenly — the app's look on the web.
   Layout: one centered column (max 1080px); the hero pairs the promise with a
   "Verse of the Day" card; features are frosted-glass cards on the app's
   sage-and-gold ambient glow; the mission sits in the app's deep-green card. */
:root {
  --bg: #f6f2ea;            /* app primaryBackground */
  --ink: #1a211c;           /* primaryText */
  --muted: #5e6b62;         /* secondaryText */
  --green: #4f7d63;         /* primary */
  --green-deep: #2f4a3b;    /* the "Sent out" card */
  --rubric: #9a3b2e;        /* prayer-book red, used sparingly */
  --line: #e4ded3;          /* alternate */
  --glass-top: rgba(255, 255, 255, 0.86);
  --glass-bot: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glow-sage: rgba(143, 184, 160, 0.55);
  --glow-gold: rgba(232, 205, 150, 0.5);
  --on-green: #f4e8d4;
  --font-word: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-serif: "Lora", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 26px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f0c; --ink: #f2efe8; --muted: #b7c1b9; --green: #8cc09f;
    --green-deep: #20342a; --rubric: #db8e7a; --line: rgba(255, 255, 255, 0.12);
    --glass-top: rgba(255, 255, 255, 0.10); --glass-bot: rgba(255, 255, 255, 0.04);
    --glass-edge: rgba(255, 255, 255, 0.16);
    --glow-sage: rgba(79, 125, 99, 0.45); --glow-gold: rgba(120, 96, 52, 0.35);
    --on-green: #f4e8d4; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f0c; --ink: #f2efe8; --muted: #b7c1b9; --green: #8cc09f;
  --green-deep: #20342a; --rubric: #db8e7a; --line: rgba(255, 255, 255, 0.12);
  --glass-top: rgba(255, 255, 255, 0.10); --glass-bot: rgba(255, 255, 255, 0.04);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --glow-sage: rgba(79, 125, 99, 0.45); --glow-gold: rgba(120, 96, 52, 0.35);
  --on-green: #f4e8d4; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  padding-inline: max(18px, env(safe-area-inset-left));
  padding-block: 0 max(24px, env(safe-area-inset-bottom));
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* the app's ambient background: sage glow up top, gold glow below */
body::before {
  content: "";
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 34vmax at 82% 8%, var(--glow-sage), transparent 70%),
    radial-gradient(44vmax 36vmax at 10% 92%, var(--glow-gold), transparent 70%),
    var(--bg);
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1080px; margin-inline: auto; }
.prose { max-width: 680px; margin-inline: auto; }

/* ---- header */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: max(18px, env(safe-area-inset-top)) 6px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); }
.brand span { font-family: var(--font-word); font-weight: 600; font-size: 1.9rem; letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--glass-top); }

/* ---- glass, as in the app */
.glass {
  background: linear-gradient(var(--glass-top), var(--glass-bot));
  border: 0.8px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.eyebrow {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---- hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-block: clamp(36px, 7vw, 84px) clamp(40px, 6vw, 72px);
}
.hero > * { min-width: 0; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  line-height: 1.08; margin: 14px 0 18px; text-wrap: balance; letter-spacing: -0.01em;
}
.hero p.lede { font-family: var(--font-serif); font-size: 1.15rem; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; padding: 14px 22px; border-radius: 999px;
}
.btn-primary { background: var(--green); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* the Verse of the Day card */
.verse {
  position: relative; border-radius: 30px; overflow: hidden; min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 26px 28px; color: #fff;
  background: #3b5a47 url("img/sierra.jpg") center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  max-width: 100%;
}
.verse::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
}
.verse > * { position: relative; }
.verse .eyebrow { color: rgba(255, 255, 255, 0.8); }
.verse blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.38; }
.verse cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); letter-spacing: 0.04em; }
.verse .credit { font-size: 0.68rem; color: rgba(255, 255, 255, 0.62); margin-top: 14px; }

/* ---- the three moves: life, Scripture, speaking */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-block: 0 clamp(40px, 6vw, 64px); }
.how > div { padding: 20px 22px; min-width: 0; }
.how h3 { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 600; margin: 6px 0 4px; }
.how p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- features */
.section-head { text-align: center; margin-block: 0 22px; }
.section-head h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 8px 0 0; text-wrap: balance; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { padding: 22px 22px 24px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green);
}
.feature .icon svg { width: 21px; height: 21px; }
.feature h3 { font-family: var(--font-serif); font-size: 1.16rem; font-weight: 600; margin: 6px 0 0; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature .plus { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; color: var(--green); }

/* ---- mission: the app's deep-green "Sent out" card */
.mission {
  margin-block: clamp(44px, 7vw, 76px);
  background: linear-gradient(135deg, var(--green-deep), #4e7d63);
  color: var(--on-green); border-radius: 30px; padding: clamp(26px, 5vw, 48px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  box-shadow: 0 20px 50px rgba(20, 40, 30, 0.25);
}
.mission > * { min-width: 0; }
.mission .eyebrow { color: rgba(244, 232, 212, 0.75); }
.mission h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 10px 0 12px; text-wrap: balance; }
.mission p { margin: 0; color: rgba(244, 232, 212, 0.9); font-family: var(--font-serif); }
.mission blockquote { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; }
.mission cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-ui); font-size: 0.72rem; letter-spacing: 0.14em; color: rgba(244, 232, 212, 0.7); }

/* ---- documents (privacy, terms, support) */
.doc { padding-block: clamp(28px, 5vw, 52px) 20px; }
.doc header { margin-bottom: 26px; }
.doc h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 4.6vw, 2.8rem); line-height: 1.12; margin: 10px 0 8px; text-wrap: balance; }
.doc .updated { color: var(--muted); font-size: 0.9rem; }
.doc .card { padding: clamp(22px, 4vw, 38px); }
.doc h2 { font-family: var(--font-serif); font-weight: 600; font-size: 1.32rem; margin: 30px 0 8px; text-wrap: balance; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1rem; font-weight: 600; margin: 18px 0 4px; }
.doc p, .doc li { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.68; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--green); }
.summary { padding: 18px 22px; margin-bottom: 16px; border-left: 3px solid var(--green); }
.summary p { margin: 0; }
.doc .toc, .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-family: var(--font-ui); font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--glass-top); border: 0.8px solid var(--glass-edge); }

/* support */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 20px 22px; margin-bottom: 16px; }
.contact .addr { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; user-select: all; word-break: break-all; }
.copy {
  font: 600 0.85rem var(--font-ui); border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green);
}
.faq details { padding: 4px 0; border-bottom: 0.8px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-family: var(--font-serif); font-weight: 600; font-size: 1.08rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-family: var(--font-ui); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.care { padding: 18px 22px; margin-top: 16px; }
.care p { margin: 0; }

/* ---- footer */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px;
  padding-block: 28px 8px; margin-top: 36px; border-top: 0.8px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ---- motion: one gentle rise on load, from a visible resting state */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.16s; }
  @keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
}

/* ---- narrow screens */
@media (max-width: 860px) {
  .hero, .mission { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .how, .features { grid-template-columns: 1fr; }
  .nav { display: none; }
  .verse { min-height: 300px; }
  .brand span { font-size: 1.7rem; }
}
