/* ============================================================
   Church of Christ Bible Studies — Site Stylesheet (v2)
   Warm parchment palette, Cormorant Garamond display serif,
   burnished gold accents, decorative ornaments.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* --- Parchment / paper tones --- */
  --color-bg: #f6efe0;            /* warm parchment */
  --color-bg-deep: #ede3cd;       /* slightly darker parchment for bands */
  --color-surface: #fcf8ee;       /* cream card surface */
  --color-surface-soft: #f1e9d4;

  /* --- Inks --- */
  --color-ink: #2b2620;           /* warm near-black */
  --color-ink-soft: #4d453c;
  --color-muted: #756b5e;
  --color-line: #d9cdb1;          /* warm beige border */
  --color-line-soft: #e4d8bc;

  /* --- Brand --- */
  --color-primary: #1f3a5f;       /* deep navy */
  --color-primary-dark: #14263e;  /* darker navy */
  --color-primary-light: #2f4f7d;

  /* --- Accents --- */
  --color-gold: #b08a4a;          /* burnished gold */
  --color-gold-dark: #8a6a35;
  --color-gold-light: #d4b67d;
  --color-maroon: #80373a;        /* deep maroon (sparingly) */
  --color-forest: #4e6a4f;        /* muted forest (sparingly) */

  --font-display: 'Cormorant Garamond', 'Cormorant', 'Georgia', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --radius: 3px;
  --shadow-sm: 0 1px 2px rgba(56, 40, 20, 0.07);
  --shadow-md: 0 6px 18px rgba(56, 40, 20, 0.10);
  --shadow-card: 0 1px 0 rgba(176, 138, 74, 0.18),
                 0 8px 22px rgba(56, 40, 20, 0.08);

  --max-width: 1140px;
}

/* ============================================================
   PARCHMENT TEXTURE — subtle SVG noise overlay on body
   ============================================================ */
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.32 0 0 0 0 0.18 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  background-size: 320px 320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  line-height: 1.18;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1 { font-size: 2.8rem; margin-bottom: 0.4em; }
h2 { font-size: 2rem; margin-bottom: 0.5em; }
h3 { font-size: 1.45rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-gold-light);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: var(--color-maroon);
  text-decoration-color: var(--color-gold);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 2px 0 rgba(176, 138, 74, 0.15), var(--shadow-sm);
  position: relative;
}
.site-header::after {
  /* fine gold rule under the header */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-gold) 20%,
    var(--color-gold) 80%,
    transparent 100%);
  opacity: 0.4;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--color-primary-dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.05;
}
.site-title small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
  font-family: var(--font-body);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: var(--radius);
  position: relative;
}
.site-nav a:hover {
  color: var(--color-primary-dark);
  background: var(--color-surface-soft);
}
.site-nav a.active {
  color: var(--color-primary-dark);
  font-weight: 700;
}
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0.9rem; right: 0.9rem;
  bottom: 4px;
  height: 2px;
  background: var(--color-gold);
}

/* ============================================================
   HERO  (image-background banner — home page only)
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--color-primary-dark);
  background-image:
    linear-gradient(180deg, rgba(20, 38, 62, 0.55) 0%, rgba(14, 28, 47, 0.78) 100%),
    url('../images/home/bible-study-group.png');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--color-gold);
  padding: 6rem 1.5rem 5.5rem;
  text-align: center;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before, .hero::after {
  /* subtle gold corner ornaments — visible against dark photo */
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  background-repeat: no-repeat;
  opacity: 0.22;
  pointer-events: none;
}
.hero::before {
  top: -40px; left: -40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23d4b67d' stroke-width='1'><circle cx='100' cy='100' r='90'/><circle cx='100' cy='100' r='70'/><path d='M100 10 v180 M10 100 h180'/></g></svg>");
}
.hero::after {
  bottom: -60px; right: -60px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23d4b67d' stroke-width='1'><circle cx='100' cy='100' r='90'/><circle cx='100' cy='100' r='70'/></g></svg>");
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  z-index: 1;
}

.hero-flourish {
  display: block;
  margin: 0 auto 1.5rem;
  color: var(--color-gold-light);
  opacity: 0.95;
}

.hero h1 {
  font-size: 3.6rem;
  margin-bottom: 0.4em;
  line-height: 1.05;
  color: #fffaf0;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.hero h1 em {
  font-style: italic;
  color: var(--color-gold-light);
  font-weight: 500;
}
.hero .lead {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: rgba(255, 250, 240, 0.92);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.scripture {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: #fffaf0;
  font-size: 1.55rem;
  line-height: 1.45;
  margin: 2.5rem auto 0;
  max-width: 660px;
  text-align: center;
  position: relative;
  padding: 1.25rem 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.scripture::before, .scripture::after {
  content: '';
  display: block;
  width: 60px; height: 1px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), transparent);
}
.scripture::after { margin: 1.25rem auto 0; }
.scripture cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-gold-light);
  margin-top: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
main.narrow {
  max-width: 760px;
}

/* ============================================================
   HOME PAGE FEATURE IMAGES
   ============================================================ */

/* Wide feature image, slotted between hero and "Browse the Studies" */
.home-feature {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}
.home-feature figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: var(--color-bg-deep);
}
.home-feature figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-feature figure::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-gold);
}
.home-feature figcaption {
  position: absolute;
  bottom: 14px;
  right: 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: white;
  background: rgba(20, 38, 62, 0.55);
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Two-column feature: image beside text */
.home-feature-pair {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.home-feature-pair .feature-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  aspect-ratio: 4 / 3;
  background: var(--color-primary-dark);
}
.home-feature-pair .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-feature-pair .feature-image::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-gold);
}
.home-feature-pair .feature-text {
  text-align: left;
}
.home-feature-pair .feature-text h2 {
  margin-bottom: 0.5em;
  font-size: 1.85rem;
}

@media (max-width: 760px) {
  .home-feature { padding: 2rem 1rem 0; }
  .home-feature-pair {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .home-feature-pair .feature-text { text-align: center; }
}

/* ============================================================
   STUDY HERO (banner image at top of an individual study page)
   ============================================================ */
.study-hero {
  position: relative;
  margin: 0 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  aspect-ratio: 16 / 9;
  max-height: 460px;
  background: var(--color-primary-dark);
}
.study-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.study-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--color-gold);
}

.page-title {
  position: relative;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.page-title h1 {
  margin-bottom: 0.2em;
  font-size: 3rem;
}
.page-title .subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
  font-style: italic;
  font-family: var(--font-serif);
  margin: 0;
}
.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Section heading (used inside long pages) */
.section-heading {
  text-align: center;
  margin: 1rem auto 0.5rem;
}
.section-heading h2 {
  margin-bottom: 0.25em;
}
.section-heading::after {
  content: '\2766'; /* floral heart fleuron */
  display: block;
  text-align: center;
  color: var(--color-gold);
  font-size: 1.4rem;
  margin: 0.5rem 0 1.5rem;
}

/* ============================================================
   CATEGORY CARDS (home page)
   ============================================================ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}
.category-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.category-card::before {
  /* top accent bar */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-primary);
}
.category-card.cat-book::before     { background: var(--color-primary); }
.category-card.cat-character::before { background: var(--color-maroon); }
.category-card.cat-topical::before  { background: var(--color-gold); }

.category-card .cat-icon {
  display: block;
  width: 48px; height: 48px;
  margin-bottom: 1rem;
  color: var(--color-primary);
  opacity: 0.85;
}
.category-card.cat-character .cat-icon { color: var(--color-maroon); }
.category-card.cat-topical .cat-icon   { color: var(--color-gold-dark); }

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 0 rgba(176, 138, 74, 0.25),
              0 14px 32px rgba(56, 40, 20, 0.14);
}
.category-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
  font-size: 1.65rem;
  font-weight: 600;
}
.category-card p {
  color: var(--color-ink-soft);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.55;
}
.category-card .more {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--color-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.category-card:hover .more {
  color: var(--color-maroon);
}

/* ============================================================
   STUDY LIST (category index pages)
   ============================================================ */
.study-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin: 2.5rem 0;
}
.study-item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.study-item.has-cover .study-item-body { padding: 1.5rem 1.5rem 1.5rem; }
.study-item:not(.has-cover) { padding: 1.75rem 1.5rem 1.5rem; }
.study-item:not(.has-cover) .study-item-body { padding: 0; }

.study-item:not(.has-cover)::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-gold);
  opacity: 0.85;
  z-index: 2;
}

.study-item .cover-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-primary-dark);
}
.study-item .cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.study-item:hover .cover-link img { transform: scale(1.03); }
.study-item .cover-link::after {
  /* gold rule between cover and content */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-gold);
}
.study-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(176, 138, 74, 0.25),
              0 14px 30px rgba(56, 40, 20, 0.13);
}
.study-item h3 {
  margin-bottom: 0.3rem;
  font-size: 1.5rem;
}
.study-item h3 a {
  text-decoration: none;
  color: var(--color-primary-dark);
}
.study-item h3 a:hover { color: var(--color-maroon); }
.study-item .meta {
  color: var(--color-gold-dark);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.study-item p {
  color: var(--color-ink-soft);
  line-height: 1.55;
}

/* --- Berean In-Depth Study badge (overlaid on cover art) --- */
.berean-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  background: rgba(20, 38, 62, 0.92);   /* deep navy, slightly translucent */
  color: var(--color-gold-light);
  border: 1px solid var(--color-gold);
  padding: 0.32rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  white-space: nowrap;
}
.study-hero .berean-badge {
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
}

.coming-soon {
  opacity: 0.55;
  position: relative;
}
.coming-soon h3 {
  padding-right: 6.5rem; /* leave room for the badge */
}
.coming-soon::after {
  content: 'Coming soon';
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  background: var(--color-gold);
  color: white;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
}

/* ============================================================
   LESSON LIST (individual study page)
   ============================================================ */
.lesson-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.lesson-list li {
  border-bottom: 1px solid var(--color-line-soft);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: background 0.15s ease;
}
.lesson-list li:last-child { border-bottom: 0; }
.lesson-list li:hover { background: var(--color-surface-soft); }

.lesson-list .lesson-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary-dark);
}
.lesson-list .lesson-num {
  display: inline-block;
  font-family: var(--font-body);
  background: transparent;
  color: var(--color-gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem 0.15rem 0;
  border-right: 1px solid var(--color-gold-light);
  margin-right: 0.85rem;
}

/* Container for one or more action buttons on a lesson row */
.lesson-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-download {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border: 1px solid var(--color-primary-dark);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
  transition: all 0.15s ease;
}
.btn-download:hover {
  background: var(--color-primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-download.outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}
.btn-download.outline:hover {
  background: var(--color-primary);
  color: white;
}
.btn-download.gold {
  background: var(--color-gold);
  border-color: var(--color-gold-dark);
}
.btn-download.gold:hover { background: var(--color-gold-dark); }

/* ============================================================
   PROSE / static pages
   ============================================================ */
.prose {
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.85rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.prose h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 50px; height: 2px;
  background: var(--color-gold);
}
.prose h3 { margin-top: 1.5rem; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: 0.45em; }
.prose blockquote {
  background: var(--color-surface);
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.5rem;
  color: var(--color-ink-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Drop cap for the first paragraph of prose */
.prose > p.lead-paragraph::first-letter,
.prose > p:first-of-type:not(.no-dropcap)::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  font-size: 4.6rem;
  line-height: 0.85;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--color-gold-dark);
}

/* ============================================================
   ABOUT PAGE — bio layout with portrait + action photo
   ============================================================ */
.bio-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 0 0 2rem;
}
.bio-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  aspect-ratio: 4 / 5;
  background: var(--color-primary-dark);
}
.bio-portrait::after {
  /* gold rule along the bottom */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-gold);
}
.bio-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-intro-text {
  padding-top: 0.25rem;
}
.bio-intro-text p:first-child { margin-top: 0; }

/* Override drop cap inside .bio-intro-text — drop cap looks
   awkward when paragraph sits beside a portrait */
.prose .bio-intro-text > p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
}

.bio-action {
  margin: 3rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 380px;
  background: var(--color-bg-deep);
}
.bio-action img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-action::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--color-gold);
}
.bio-action figcaption {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: white;
  background: rgba(20, 38, 62, 0.6);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* "Connect" section — link cards at bottom of bio */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.connect-card {
  display: block;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.connect-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--color-gold);
}
.connect-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-gold-light);
  color: var(--color-ink);
  text-decoration: none;
}
.connect-card .label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.35rem;
}
.connect-card .title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.connect-card .url {
  font-size: 0.85rem;
  color: var(--color-muted);
  word-break: break-all;
}

/* Small disclaimer styling at end of bio */
.bio-disclaimer {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface-soft);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .bio-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .bio-portrait {
    max-width: 260px;
    margin: 0 auto;
  }
  .bio-action { margin: 2rem 0; }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-gold);
}
.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(176, 138, 74, 0.15);
}
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form button {
  background: var(--color-primary);
  color: white;
  border: 0;
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-form button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* ============================================================
   DEVOTIONAL CALLOUT  (Becoming Like Christ Daily app feature,
   shown at the bottom of individual study pages)
   ============================================================ */
.devotional-callout {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.75rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  margin: 3rem 0 0;
  box-shadow: var(--shadow-card);
}
.devotional-callout .callout-screenshot {
  width: 100%;
  max-width: 100px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 16px rgba(20, 38, 62, 0.16),
              0 2px 4px rgba(20, 38, 62, 0.10);
  border: 1px solid rgba(20, 38, 62, 0.08);
}
.devotional-callout .callout-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 0.35rem;
}
.devotional-callout h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-primary-dark);
  margin: 0 0 0.5rem;
}
.devotional-callout .callout-body {
  margin: 0 0 1rem;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}
.devotional-callout .callout-body em {
  font-style: italic;
  color: var(--color-gold-dark);
}
.devotional-callout .btn-download {
  font-size: 0.78rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 600px) {
  .devotional-callout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.35rem;
    text-align: center;
  }
  .devotional-callout .callout-screenshot {
    max-width: 90px;
    margin: 0 auto;
  }
}

/* ============================================================
   HOME OUTREACH SECTION  (You Can Know app feature)
   ============================================================ */
.home-outreach {
  position: relative;
  margin-top: 5rem;
  padding: 4.5rem 1.5rem 4rem;
  background:
    linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0 0.08 0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  background-size: 320px 320px, auto;
  color: #e8dcc0;
  border-top: 3px solid var(--color-gold);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  overflow: hidden;
}
.home-outreach::before, .home-outreach::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  background-repeat: no-repeat;
  opacity: 0.10;
  pointer-events: none;
}
.home-outreach::before {
  top: -40px; left: -40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23d4b67d' stroke-width='1'><circle cx='100' cy='100' r='90'/><circle cx='100' cy='100' r='70'/></g></svg>");
}
.home-outreach::after {
  bottom: -50px; right: -50px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%23d4b67d' stroke-width='1'><circle cx='100' cy='100' r='90'/><circle cx='100' cy='100' r='70'/><path d='M100 10 v180 M10 100 h180'/></g></svg>");
}
.outreach-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.outreach-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 1rem;
}
.outreach-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  color: #fffaf0;
  line-height: 1.15;
  margin: 0 auto 1rem;
  max-width: 760px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.outreach-title em {
  color: var(--color-gold-light);
  font-style: italic;
  font-weight: 500;
}
.outreach-lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(232, 220, 192, 0.95);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.outreach-description {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(232, 220, 192, 0.88);
}
.outreach-description strong { color: #fffaf0; font-weight: 600; }

.outreach-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto 2.5rem;
}
.outreach-pillar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 182, 125, 0.20);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}
.outreach-pillar svg {
  display: block;
  margin: 0 auto 0.6rem;
  color: var(--color-gold-light);
  opacity: 0.95;
}
.outreach-pillar .pillar-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fffaf0;
  margin-bottom: 0.25rem;
}
.outreach-pillar .pillar-body {
  display: block;
  font-size: 0.9rem;
  color: rgba(232, 220, 192, 0.78);
  line-height: 1.45;
}

.outreach-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.outreach-actions .btn-download {
  background: var(--color-gold);
  border-color: var(--color-gold-dark);
  color: var(--color-primary-dark);
}
.outreach-actions .btn-download:hover {
  background: var(--color-gold-dark);
  color: #fffaf0;
}
.outreach-actions .btn-download.outline {
  background: transparent;
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
  box-shadow: none;
}
.outreach-actions .btn-download.outline:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
}

.outreach-footnote {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(232, 220, 192, 0.6);
  font-family: var(--font-serif);
  font-style: italic;
}

@media (max-width: 760px) {
  .home-outreach { margin-top: 3rem; padding: 3rem 1rem 2.5rem; }
  .outreach-title { font-size: 1.85rem; }
  .outreach-lead { font-size: 1.05rem; }
  .outreach-pillars {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary-dark);
  background-image:
    linear-gradient(180deg, var(--color-primary-dark) 0%, #0e1c2f 100%);
  color: #d8c9a8;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 5rem;
  position: relative;
  border-top: 3px solid var(--color-gold);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.site-footer h4 {
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  letter-spacing: 0.01em;
}
.site-footer a {
  color: #c7b88f;
  text-decoration: none;
  text-decoration-color: transparent;
}
.site-footer a:hover {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(176, 138, 74, 0.25);
  text-align: center;
  font-size: 0.85rem;
  color: #a89678;
  font-style: italic;
  font-family: var(--font-serif);
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.divider {
  border: 0;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  height: 20px;
}
.divider::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 200px; height: 1px;
  margin-left: -100px;
  background: linear-gradient(90deg, transparent, var(--color-line), transparent);
}
.divider::after {
  content: '\2766'; /* fleuron */
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  background: var(--color-bg);
  color: var(--color-gold);
  font-size: 1.3rem;
  padding: 0 1rem;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .hero {
    padding: 4rem 1rem 3.5rem;
    min-height: 460px;
    background-position: center center;
  }
  .hero h1 { font-size: 2.3rem; }
  .hero .lead { font-size: 1.15rem; }
  .scripture { font-size: 1.2rem; padding: 0.5rem 1rem; }
  .scripture { font-size: 1.2rem; padding: 1rem; }
  .page-title h1 { font-size: 2.2rem; }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .site-title { font-size: 1.45rem; }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0;
  }
  .site-nav a { padding: 0.4rem 0.6rem; font-size: 0.92rem; }
  main { padding: 2.5rem 1rem; }
  .lesson-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .lesson-list .lesson-title { font-size: 1.15rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

/* ============================================================
   DISCOVERY BIBLE STUDY — category accents + bookmark previews
   ============================================================ */
.category-card.cat-discovery::before    { background: var(--color-forest); }
.category-card.cat-discovery .cat-icon  { color: var(--color-forest); }

/* Bookmark preview strip (Discovery study pages) */
.bookmark-previews {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 1rem;
}
.bookmark-previews figure {
  margin: 0;
  text-align: center;
  max-width: 200px;
}
.bookmark-previews img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}
.bookmark-previews figcaption {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-gold-dark);
}

/* Download options block (multiple format choices) */
.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.download-options .download-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.download-options .download-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--color-primary-dark);
}
.download-options .download-card p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
  flex-grow: 1;
}
.download-options .download-card .btn-download { align-self: flex-start; }

/* ============================================================
   STUDY FEATURE (graphic + intro, e.g. a bookmark study)
   ============================================================ */
.study-feature {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.75rem;
  align-items: center;
  margin: 0 0 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.75rem;
}
.study-feature .feature-figure {
  margin: 0;
}
.study-feature .feature-figure img {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.study-feature .feature-figure figcaption {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-gold-dark);
}
.study-feature .feature-text { font-size: 0.98rem; }
.study-feature .feature-text > :first-child { margin-top: 0; }
@media (max-width: 640px) {
  .study-feature { grid-template-columns: 1fr; gap: 1rem; padding: 1.35rem; }
  .study-feature .feature-figure { max-width: 110px; margin: 0 auto; }
  .study-feature .feature-figure img { margin: 0 auto; }
}

/* Compact study card: small thumbnail beside the text (e.g. a bookmark) */
.study-item.study-item-thumb {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
}
.study-item.study-item-thumb .thumb-link {
  flex: 0 0 90px;
  display: block;
  line-height: 0;
}
.study-item.study-item-thumb .thumb-link img {
  width: 90px;
  height: auto;
  display: block;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.study-item.study-item-thumb:hover .thumb-link img { transform: scale(1.03); }
.study-item.study-item-thumb .study-item-body { padding: 0; }
.study-item.study-item-thumb h3 { font-size: 1.3rem; }
.study-item.study-item-thumb p { font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 420px) {
  .study-item.study-item-thumb { flex-direction: column; text-align: center; }
}
