/* ============================================================
   Kerygma — shared stylesheet for SEO content pages
   (categories, use-cases, blog, sample-questions, about).
   The homepage uses its own inline styles; this file covers
   everything else with a leaner brand-consistent base.
   ============================================================ */

:root {
  --bg: #fafaf8;
  --bg-elev: #ffffff;
  --ink: #1A1612;
  --ink-2: #3B342A;
  --ink-3: #6B6253;
  --ink-4: #9A9082;
  --line: #E8DFCB;
  --brass: #B8923D;
  --brass-deep: #8C6E25;
  --brass-soft: #E9D9A8;
  --accent-2: #D4B26A;
  --shadow-sm: 0 1px 2px rgba(26, 22, 18, .04);
  --shadow-card: 0 8px 24px -10px rgba(26, 22, 18, .10), 0 2px 4px rgba(26, 22, 18, .04);
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brass-deep); text-decoration: none; transition: color .18s; }
a:hover { color: var(--brass); }
p { margin: 0 0 1em; color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
img { max-width: 100%; display: block; }

.container { max-width: 880px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ============================================================
   Nav (matches homepage floating pill)
   ============================================================ */
.nav { position: sticky; top: 16px; z-index: 50; margin-top: 16px; pointer-events: none; }
.nav-inner {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  backdrop-filter: blur(7px) saturate(140%);
  -webkit-backdrop-filter: blur(7px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border: 1px solid var(--bg);
  box-shadow:
    0 4px 18px -4px rgba(26, 22, 18, 0.06),
    0 1px 2px rgba(26, 22, 18, 0.03);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  transition: background .2s, color .2s, box-shadow .2s;
}
.nav-links a:hover {
  background: var(--ink);
  color: var(--bg-elev);
  box-shadow: 0 8px 20px -8px rgba(26, 22, 18, .4);
}
.nav-cta { display: flex; gap: 12px; align-items: center; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg-elev);
  box-shadow: 0 8px 20px -8px rgba(26,22,18,.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(26,22,18,.5);
  color: var(--bg-elev);
}
.btn-secondary {
  color: var(--ink-2);
  padding: 0 8px;
}
.btn-secondary:hover { color: var(--ink); }
.nav-cta .btn-primary { height: 38px; padding: 0 16px; font-size: 14px; }

/* ============================================================
   Article body
   ============================================================ */
article {
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
}
.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 18px;
}
.page-eyebrow a {
  color: var(--brass-deep);
}
.page-eyebrow a:hover {
  color: var(--brass);
}
.page-title {
  font-family: var(--font-serif);
  font-weight: 320;
  letter-spacing: -0.025em;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.page-lede {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 0 56px;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 360;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  margin: clamp(48px, 6vw, 64px) 0 16px;
  color: var(--ink);
}
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: clamp(32px, 4vw, 40px) 0 12px;
  color: var(--ink);
}

/* ============================================================
   Sub-topic and feature lists
   ============================================================ */
ul.subtopics { list-style: none; padding: 0; margin: 0 0 1em; }
ul.subtopics li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-2);
  display: flex;
  align-items: baseline;
  gap: 14px;
  line-height: 1.5;
}
ul.subtopics li:last-child { border-bottom: 0; }
ul.subtopics li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brass);
  transform: translateY(-2px);
}
ul.subtopics li strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   Sample-question card (used on category + sample-questions pages)
   ============================================================ */
.sample {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px);
  margin: 24px 0 0;
  box-shadow: var(--shadow-sm);
}
.sample-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  background: color-mix(in oklab, var(--brass-soft) 50%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.sample-q {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 22px;
}
.sample-options {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sample-options li {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink-2);
  display: flex;
  gap: 12px;
  align-items: baseline;
  line-height: 1.4;
}
.sample-options li.correct {
  background: color-mix(in oklab, var(--brass-soft) 35%, transparent);
  border-color: var(--brass);
  color: var(--ink);
  font-weight: 500;
}
.sample-options li::before {
  content: attr(data-letter);
  color: var(--brass-deep);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.sample-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  padding: 18px 22px;
  border-left: 2px solid var(--brass);
  background: color-mix(in oklab, var(--brass-soft) 18%, transparent);
  margin: 0 0 16px;
  border-radius: 0 12px 12px 0;
}
.sample-verse .ref {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  color: var(--brass-deep);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.sample-commentary {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Related cards grid (cross-link to other pages)
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.related-grid li a {
  display: block;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.related-grid li a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(26,22,18,.16);
  border-color: var(--brass-soft);
  color: var(--ink);
}
.related-grid li a small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 4px;
}

/* ============================================================
   In-page CTA (dark band before footer)
   ============================================================ */
.cta {
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(40px, 6vw, 64px);
  background: var(--ink);
  color: var(--bg);
  border-radius: clamp(24px, 3vw, 32px);
  text-align: center;
}
.cta h2 {
  color: var(--bg);
  margin: 0 0 12px;
  font-weight: 320;
}
.cta p {
  color: rgba(250, 250, 248, 0.75);
  max-width: 50ch;
  margin: 0 auto 28px;
  font-size: clamp(15px, 1.2vw, 17px);
}
.cta .btn-primary {
  background: var(--bg-elev);
  color: var(--ink);
}
.cta .btn-primary:hover { color: var(--ink); }
.cta-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(250, 250, 248, 0.5);
}

/* ============================================================
   Footer (matches homepage)
   ============================================================ */
.site-footer {
  background: #0a0a0a;
  color: rgba(250, 250, 248, 0.7);
  padding: clamp(56px, 7vw, 88px) 24px clamp(28px, 3vw, 40px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 56px);
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.3fr repeat(4, 1fr); }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.footer-brand-mark { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 360;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.6);
  margin: 4px 0 0;
}
.footer-col-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: rgba(250, 250, 248, 0.6);
  transition: color .18s;
}
.footer-col a:hover { color: var(--bg); }
.footer-bottom {
  max-width: 1200px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 250, 248, 0.1);
  font-size: 13px;
  color: rgba(250, 250, 248, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
