/* Shared styles for the crawlable content pages (/library, /bible-plans,
   /bible-games, /devotionals ...). Plain CSS, no build step. Matches the
   Wonda Daily marketing look: cream ground, purple accent, heavy display
   weights, uppercase labels. Light theme only, like the rest of the site. */

:root {
  --bg: #FDFCF0;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-faint: #78716c;
  --purple: #7c3aed;
  --purple-deep: #581c87;
  --yellow: #facc15;
  --card: #ffffff;
  --line: #e7e5e4;
  --line-soft: #f5f5f4;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- header ---- */
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  font-weight: 900; font-size: 1.15rem; color: var(--purple);
  letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }
.site-nav a {
  font-size: 0.7rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-faint); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--purple); }

/* ---- hero ---- */
.hero { padding: 3.5rem 0 2rem; }
.eyebrow {
  font-size: 0.7rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--purple); margin-bottom: 1rem;
}
h1 {
  font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; line-height: 1.06;
  letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 1rem;
}
.hero .intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }

/* ---- prose ---- */
.prose { padding: 1rem 0 2rem; }
.prose h2 {
  font-size: 1.6rem; font-weight: 900; letter-spacing: -0.01em;
  text-wrap: balance; margin: 2.75rem 0 0.75rem;
}
.prose h3 { font-size: 1.05rem; font-weight: 800; margin: 1.75rem 0 0.4rem; }
.prose p { margin: 0.85rem 0; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0.85rem 0; padding-left: 1.35rem; color: var(--ink-soft); }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--ink-faint); }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---- card grid ---- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin: 1.75rem 0;
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 1.25rem; overflow: hidden; display: flex; flex-direction: column;
}
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card .card-body { padding: 1rem 1.1rem; }
.card h3 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 800; }
.card p { margin: 0; font-size: 0.85rem; color: var(--ink-faint); }

.figure { margin: 1.75rem 0; }
.figure img { border-radius: 1.25rem; border: 1px solid var(--line); }
.figure figcaption {
  margin-top: 0.6rem; font-size: 0.78rem; color: var(--ink-faint); text-align: center;
}

/* ---- CTA ---- */
.cta {
  background: var(--purple-deep); border-radius: 1.5rem; padding: 2.5rem 2rem;
  text-align: center; margin: 3rem 0 1rem; color: #fff;
}
.cta h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 900; }
.cta p { color: #e9d5ff; margin: 0 auto 1.5rem; max-width: 30rem; }
.cta .buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-block; background: var(--yellow); color: #581c87;
  font-weight: 900; text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 0.78rem; padding: 0.9rem 1.5rem; border-radius: 0.9rem;
  text-decoration: none;
}
.btn.ghost { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---- FAQ ---- */
.faq { margin: 3rem 0 1rem; }
.faq h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 0.5rem; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  font-weight: 800; cursor: pointer; list-style: none; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--purple); }
.faq details p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--line); background: #fff; margin-top: 3rem; }
.site-foot .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; }
.foot-col { display: flex; flex-direction: column; gap: 0.45rem; min-width: 12rem; }
@media (max-width: 560px) {
  .foot-cols { flex-direction: column; gap: 1.75rem; }
  .foot-col { min-width: 0; }
}
.foot-col .lbl {
  font-size: 0.62rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.3rem;
}
.foot-col a { font-size: 0.82rem; color: var(--ink-soft); text-decoration: none; }
.foot-col a:hover { color: var(--purple); }
.foot-legal {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  font-size: 0.72rem; color: var(--ink-faint); text-align: center;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
