/* Scrollah — shared styles. Palette mirrors Brand in SelahView.swift */
:root {
  --orange: #F28C28;
  --cream: #F6ECDC;
  --ink: #2A160E;
  --cocoa: #1A0F0B;
  --umber: #3D2216;
  --clay: #6B3C24;
  --gold: #FFCC66;
  --muted: rgba(246, 236, 220, 0.78);
  --serif: "New York", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 22px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cream);
  background:
    radial-gradient(ellipse 70% 45% at 50% 12%, rgba(242, 140, 40, 0.18), transparent 70%),
    linear-gradient(180deg, var(--cocoa) 0%, var(--umber) 55%, #4F2B1A 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--cream); }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin: 0 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

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

/* Header */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  color: var(--cream); text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--cream); text-decoration: underline; }

/* Hero */
.hero { padding: 32px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--orange); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; margin: 0 0 12px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.hero-art img { width: 100%; max-width: 440px; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,0.35)); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--ink);
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: 14px 26px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(242, 140, 40, 0.35);
  transition: transform 0.15s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn-note { font-size: 0.9rem; color: var(--muted); margin-top: 12px; }

/* Verse card */
.verse-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); padding: 28px 30px; margin: 0 0 28px; max-width: 34em;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}
.verse-card p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; margin: 0 0 10px; }
.verse-card cite { font-style: normal; font-weight: 700; color: var(--clay); }

/* Features */
.section { padding: 56px 0; }
.section-intro { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.feature {
  background: rgba(246, 236, 220, 0.06);
  border: 1px solid rgba(246, 236, 220, 0.14);
  border-radius: var(--radius); padding: 24px;
}
.feature .icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.split img { max-width: 340px; margin: 0 auto; }
.cta { text-align: center; }
.cta img { max-width: 260px; margin: 0 auto 16px; }

/* Documents (privacy / terms / support) */
.doc { padding: 24px 0 64px; }
.doc .wrap { max-width: 780px; }
.doc-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}
.doc-card h1, .doc-card h2, .doc-card h3 { color: var(--ink); }
.doc-card h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc-card h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc-card a { color: #8A3F0A; }
.doc-card a:hover { color: var(--ink); }
.doc-card .meta { color: var(--clay); margin-top: -0.4em; }
.doc-card ul { padding-left: 1.3em; }
.doc-card li { margin-bottom: 0.4em; }
.doc-card hr { border: 0; border-top: 1px solid rgba(42, 22, 14, 0.15); margin: 2em 0; }
.doc-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.doc-hero img { width: 120px; flex: none; }

.faq details {
  border: 1px solid rgba(42, 22, 14, 0.15); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 12px; background: #FBF5EA;
}
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 1.1rem; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p, .faq details ol { margin: 0.4em 0; }

.contact-box {
  background: var(--ink); color: var(--cream); border-radius: 16px; padding: 22px 24px; margin: 20px 0 8px;
}
.contact-box a { color: var(--gold); font-weight: 700; font-size: 1.15rem; }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid rgba(246, 236, 220, 0.12); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--cream); }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero .lede, .hero .verse-card { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 260px; }
  .split img { max-width: 240px; }
  .doc-hero img { width: 80px; }
}
