/* ============================================================
   Pick Up Your Bible — Modern rebuild
   Design system: warm paper, deep sage, soft gold
   Fonts: Fraunces (display) + Inter (body)
   ============================================================ */

:root {
  --paper: #faf7f1;
  --paper-deep: #f3eee4;
  --ink: #22302a;
  --ink-soft: #55635b;
  --sage: #33513f;
  --sage-deep: #24392d;
  --sage-soft: #e4ebe3;
  --gold: #b9924f;
  --gold-soft: #f0e6d4;
  --line: rgba(34, 48, 42, 0.12);
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(34, 48, 42, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }
a { color: var(--sage); text-decoration-color: rgba(51, 81, 63, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--sage-deep); }

.wrap { width: min(1120px, 92vw); margin-inline: auto; }
.wrap--narrow { width: min(760px, 92vw); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1.5px;
  background: var(--gold);
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { width: min(1240px, 96vw); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sage-deep); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a.btn { color: #fff; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.site-nav a.btn:hover { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--sage);
  color: #fdfbf7;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--sage-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--sage-soft); color: var(--sage-deep); box-shadow: none; }
.btn--light { background: #fdfbf7; color: var(--sage-deep); }
.btn--light:hover { background: var(--gold-soft); color: var(--sage-deep); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a37f40; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fdfbf7;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 31, 25, 0.55), rgba(20, 31, 25, 0.78));
}
.hero__inner {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) 0 clamp(5rem, 12vh, 8.5rem);
  max-width: 780px;
}
.hero h1 { color: #fdfbf7; margin-bottom: 0.4em; }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero__sub { font-size: clamp(1.15rem, 2vw, 1.35rem); color: rgba(253, 251, 247, 0.88); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(180deg, var(--paper-deep), var(--paper));
  border-bottom: 1px solid var(--line);
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 clamp(2.5rem, 6vh, 4rem);
}
.page-hero p.lead { max-width: 640px; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 9vh, 6.5rem) 0; }
.section--tint { background: var(--paper-deep); border-block: 1px solid var(--line); }
.section--sage { background: var(--sage-deep); color: rgba(253, 251, 247, 0.9); }
.section--sage h2, .section--sage h3 { color: #fdfbf7; }
.section--sage .eyebrow { color: var(--gold-soft); }
.section--sage .eyebrow::before { background: var(--gold-soft); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--text-first { align-items: start; }
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(185, 146, 79, 0.5); }
.card__icon { font-size: 1.7rem; line-height: 1; margin-bottom: 0.7rem; }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* Devotion cards */
.post-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(185, 146, 79, 0.5); }
.post-card__meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--sage); }
.post-card p { color: var(--ink-soft); flex: 1; }
.post-card__more {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--sage);
}
.post-card__more::after { content: " →"; transition: margin 0.2s ease; }
.post-card__more:hover::after { margin-left: 4px; }

/* ---------- Quote ---------- */
.quote {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 2rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--sage-deep);
}
.quote cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 0.8rem; }

/* ---------- Detail rows (conference info) ---------- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.info-strip__item {
  background: rgba(253, 251, 247, 0.09);
  border: 1px solid rgba(253, 251, 247, 0.18);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
}
.info-strip__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.3rem;
}
.info-strip__value { font-family: var(--font-display); font-size: 1.25rem; color: #fdfbf7; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.7rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.28rem;
}
.section--sage .checklist li::before { background: rgba(253, 251, 247, 0.15); color: var(--gold-soft); }

.icon-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.85rem; }
.icon-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.icon-list .ico { flex: 0 0 auto; font-size: 1.25rem; line-height: 1.5; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--sage-deep);
  border-radius: calc(var(--radius) * 1.4);
  padding: clamp(2.5rem, 6vw, 4rem);
  color: rgba(253, 251, 247, 0.9);
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(185, 146, 79, 0.35), transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { color: #fdfbf7; }
.cta-banner .btn { margin-top: 1rem; }

/* ---------- Prose (long-form pages / posts) ---------- */
.prose { max-width: 720px; }
.prose h2, .prose h3, .prose h4 { margin-top: 2.2em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.8rem 0;
  padding: 1.2rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sage-deep);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin: 1.8rem 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.post-header { padding: clamp(3.5rem, 8vh, 5rem) 0 1rem; }
.post-header .post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.post-nav a { text-decoration: none; font-weight: 600; max-width: 46%; }
.post-nav span { display: block; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.25rem; }

/* ---------- Team ---------- */
.team-member {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.team-member:last-child { margin-bottom: 0; }
.team-member img { border-radius: var(--radius); box-shadow: var(--shadow); }
.team-member__role {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Book list ---------- */
.book-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.book-list li {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}
.book-list .book-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.book-list .book-author { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Filters (devotions index) ---------- */
.year-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.2rem; }
.year-nav a {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.2s ease;
}
.year-nav a:hover { border-color: var(--gold); color: var(--sage-deep); background: var(--gold-soft); }
.year-label { margin-top: 3rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 1rem; }
.year-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-deep);
  color: rgba(253, 251, 247, 0.75);
  padding: clamp(3rem, 7vh, 4.5rem) 0 2rem;
  margin-top: clamp(3rem, 8vh, 5rem);
}
.site-footer a { color: rgba(253, 251, 247, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.8rem;
}
.site-footer h4 { color: #fdfbf7; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.site-footer__brand .brand__name { color: #fdfbf7; }
.site-footer__legal {
  border-top: 1px solid rgba(253, 251, 247, 0.15);
  padding-top: 1.6rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--sage-deep);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 50;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid, .info-strip { grid-template-columns: 1fr 1fr; }
  .split, .team-member { grid-template-columns: 1fr; }
  .team-member img { max-width: 340px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  /* Dropdown panel below the sticky header. The header's backdrop-filter
     makes it the containing block for fixed/absolute descendants, so a
     full-viewport fixed overlay cannot work here. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.8rem 4vw 1.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { font-size: 1.05rem; padding: 0.55rem 0; width: 100%; }
  .site-nav a.btn { width: auto; margin-top: 0.6rem; padding: 0.7rem 1.5rem; }
  .nav-toggle { display: block; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.9rem; }
  .card-grid, .card-grid--2, .book-list, .info-strip { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
