:root {
  --evergreen: #102c2a;
  --evergreen-light: #1b4640;
  --ink: #17211f;
  --gold: #d6a84f;
  --gold-light: #f1d592;
  --cream: #f8f3e9;
  --paper: #fffdf8;
  --sage: #dfe9df;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, sans-serif; }
h1, h2, h3, blockquote { font-family: "Cormorant Garamond", Georgia, serif; }
a { color: inherit; }
.container { max-width: 1140px; }
.site-nav { position: absolute; inset: 0 0 auto; z-index: 3; padding: 1.25rem 0; background: linear-gradient(180deg, rgba(5,22,21,.9), transparent); }
.brand-lockup { display: flex; align-items: center; gap: .6rem; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--gold-light); border: 1px solid rgba(241,213,146,.55); border-radius: 50%; }
.site-nav .nav-link { color: rgba(255,255,255,.82); margin-left: 1.25rem; }
.site-nav .nav-link:hover { color: var(--gold-light); }
.eyebrow { margin: 0 0 1rem; color: var(--gold-light); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: #987226; }

.hero { position: relative; min-height: 760px; overflow: hidden; color: white; background:
    linear-gradient(90deg, rgba(8,31,29,.98) 0%, rgba(12,45,42,.91) 40%, rgba(14,45,40,.28) 100%),
    url("/images/bible-study-porch.webp") center/cover no-repeat,
    #0b2422; }
.hero::after { content: ""; position: absolute; right: -7%; bottom: -25%; width: 62%; aspect-ratio: 1; opacity: .22; border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 70px rgba(214,168,79,.08), 0 0 0 140px rgba(214,168,79,.05); }
.hero-glow { position: absolute; inset: auto 12% 15% auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(243,200,107,.25), transparent 68%); }
.hero-content { position: relative; z-index: 1; padding-top: 12rem; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(4rem, 8vw, 7rem); font-weight: 500; line-height: .88; letter-spacing: -.045em; }
.hero h1 em { color: var(--gold-light); font-weight: 500; }
.hero-copy { max-width: 620px; margin: 2rem 0; color: rgba(255,255,255,.75); font-size: 1.08rem; line-height: 1.8; }
.button { display: inline-flex; align-items: center; gap: 2rem; padding: 1rem 1.3rem; text-decoration: none; font-weight: 600; border-radius: 2px; }
.button-gold { color: #152622; background: var(--gold-light); }
.button-gold:hover { color: #152622; background: white; }
.hero-verse { position: absolute; z-index: 1; right: 0; bottom: 3.25rem; left: 0; display: flex; justify-content: flex-end; align-items: baseline; gap: 1rem; color: rgba(255,255,255,.7); }
.hero-verse blockquote { margin: 0; font-size: 1.3rem; font-style: italic; }
.hero-verse cite { color: var(--gold-light); font-size: .75rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }

.featured-section { padding: 7rem 0; background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(3rem, 6vw, 5rem); line-height: .9; }
.section-heading time { color: #6e756f; }
.featured-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 420px; overflow: hidden; background: white; box-shadow: 0 25px 70px rgba(26,38,34,.1); }
.scripture-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 4rem; color: white; background: var(--evergreen); }
.verse-mark { position: absolute; top: 1.3rem; left: 2rem; color: rgba(214,168,79,.35); font: 8rem/1 Georgia, serif; }
.scripture-panel p, .theme-scripture p { position: relative; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
.scripture-panel strong { color: var(--gold-light); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.lesson-intro { display: flex; flex-direction: column; justify-content: center; padding: 4rem; }
.lesson-intro h3 { max-width: 540px; margin-bottom: 1.5rem; font-size: 2.6rem; line-height: 1.05; }
.lesson-intro > p:not(.eyebrow) { color: #5a645f; line-height: 1.8; }
.text-link { margin-top: 1rem; color: #80601f; font-weight: 600; text-decoration: none; }
.text-link span { margin-left: .6rem; }
.invitation-section { padding: 6rem 0; color: white; background: var(--evergreen); }
.invitation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: end; }
.invitation-grid h2 { margin: 0; font-size: 3.6rem; line-height: 1; }
.invitation-grid > p { margin: 0; color: rgba(255,255,255,.7); line-height: 1.9; }

.page-banner, .lesson-banner { padding: 10rem 0 5rem; color: white; background: radial-gradient(circle at 80%, rgba(214,168,79,.18), transparent 22%), var(--evergreen); }
.page-banner h1, .lesson-banner h1 { margin: 0; font-size: clamp(4rem, 8vw, 6.5rem); }
.page-banner p:last-child, .lesson-banner-inner > p:last-child { max-width: 640px; color: rgba(255,255,255,.7); font-size: 1.1rem; }
.archive-section { min-height: 50vh; padding: 5rem 0; background: var(--cream); }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.archive-card { padding: 2.4rem; background: white; text-decoration: none; border-top: 3px solid var(--gold); box-shadow: 0 14px 40px rgba(16,44,42,.07); transition: transform .2s ease; }
.archive-card:hover { color: inherit; transform: translateY(-5px); }
.archive-card time { color: #8b7040; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.archive-card h2 { margin: 1.5rem 0 .75rem; font-size: 2.5rem; }
.archive-card p { min-height: 4.8rem; color: #69716d; line-height: 1.6; }
.archive-card span { color: #80601f; font-weight: 600; }

.back-link { display: inline-block; margin-bottom: 2.5rem; color: rgba(255,255,255,.7); text-decoration: none; }
.lesson-page { padding: 5rem 0; background: var(--paper); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 5rem; align-items: start; }
.lesson-image { margin: 0 0 2rem; overflow: hidden; background: var(--evergreen); box-shadow: 0 20px 55px rgba(16,44,42,.13); }
.lesson-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lesson-image figcaption { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 1rem 1.25rem; color: rgba(255,255,255,.78); background: var(--evergreen); font: italic 1.05rem "Cormorant Garamond", Georgia, serif; }
.lesson-image figcaption span { flex: 0 0 auto; color: var(--gold-light); font: 600 .7rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.theme-scripture { position: relative; margin: 0 0 5rem; padding: 3.5rem; color: white; background: var(--evergreen); }
.theme-scripture cite { color: var(--gold-light); font: 600 .75rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.study-section { padding: 1rem 0 4rem; border-bottom: 1px solid #e2ded4; }
.study-section + .study-section { padding-top: 4rem; }
.study-section h2 { margin-bottom: 1rem; font-size: 3rem; }
.section-intro { max-width: 720px; color: #5e6863; font-size: 1.08rem; line-height: 1.8; }
.study-points { margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: points; }
.study-points li { counter-increment: points; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; margin: 1rem 0; line-height: 1.7; }
.study-points li::before { content: counter(points, decimal-leading-zero); color: #a17b2f; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; }
.section-closing { margin: 2rem 0 0; padding: 1.25rem 1.5rem; color: #31524b; background: var(--sage); border-left: 3px solid var(--gold); font-family: "Cormorant Garamond", serif; font-size: 1.4rem; }
.reference-card { position: sticky; top: 2rem; padding: 2rem; background: var(--cream); border-top: 3px solid var(--gold); }
.reference-card h2 { font-size: 2rem; }
.reference-card ul { padding: 0; list-style: none; }
.reference-card li { padding: .75rem 0; border-bottom: 1px solid #ddd6c7; }
.scripture-link { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; color: #31524b; background: none; border: 0; font: 600 1rem Inter, sans-serif; text-align: left; }
.scripture-link:hover, .scripture-link:focus-visible { color: #80601f; }
.scripture-link span { color: #a17b2f; }
.reference-note { margin: 1.5rem 0 0; color: #747a76; font-size: .78rem; line-height: 1.6; }
.scripture-dialog { width: min(680px, calc(100% - 2rem)); max-height: min(78vh, 760px); padding: 0; color: var(--ink); background: var(--paper); border: 0; border-top: 5px solid var(--gold); box-shadow: 0 28px 90px rgba(5,22,21,.35); }
.scripture-dialog::backdrop { background: rgba(5,22,21,.72); backdrop-filter: blur(3px); }
.scripture-dialog-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 2rem 2rem 1.25rem; background: var(--paper); border-bottom: 1px solid #e2ded4; }
.scripture-dialog-head .eyebrow { margin-bottom: .4rem; }
.scripture-dialog-head h2 { margin: 0; font-size: 2.5rem; }
.dialog-close { width: 2.5rem; height: 2.5rem; color: var(--evergreen); background: var(--cream); border: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; }
.scripture-dialog-body { padding: 2rem; color: #394540; font: 1.22rem/1.85 "Cormorant Garamond", Georgia, serif; white-space: pre-line; }
.scripture-dialog-body.is-loading { color: #747a76; font-style: italic; }
.scripture-dialog-note { margin: 0; padding: 1rem 2rem; color: #747a76; background: var(--cream); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer { padding: 2rem 0; color: rgba(255,255,255,.65); background: #091d1c; }
.site-footer .container { display: flex; justify-content: space-between; }

@media (max-width: 767px) {
  .site-nav { position: absolute; background: rgba(8,31,29,.92); }
  .brand-lockup { max-width: calc(100% - 64px); font-size: .98rem; line-height: 1.15; }
  .brand-mark { flex: 0 0 1.8rem; width: 1.8rem; height: 1.8rem; }
  .navbar-toggler { margin-left: auto; }
  .navbar-collapse { padding-top: 1rem; }
  .site-nav .nav-link { margin-left: 0; }
  .hero { min-height: 760px; }
  .hero-content { padding-top: 10rem; }
  .hero h1 { font-size: clamp(3.15rem, 14.5vw, 3.6rem); line-height: .94; letter-spacing: -.035em; }
  .hero-copy { font-size: 1rem; line-height: 1.7; }
  .hero-verse { display: block; bottom: 2rem; padding-inline: 1.5rem; }
  .hero-verse blockquote { font-size: 1.08rem; }
  .hero-verse cite { display: block; margin-top: .5rem; }
  .featured-section { padding: 4.5rem 0; }
  .section-heading { display: block; }
  .section-heading time { display: block; margin-top: 1rem; }
  .featured-card, .invitation-grid, .lesson-grid, .lesson-layout { grid-template-columns: 1fr; }
  .scripture-panel, .lesson-intro { padding: 3rem 2rem; }
  .invitation-grid { gap: 2rem; }
  .invitation-grid h2 { font-size: 3rem; }
  .lesson-grid { gap: 1rem; }
  .theme-scripture { padding: 3rem 2rem; }
  .reference-card { position: static; }
  .site-footer .container { display: grid; gap: .5rem; text-align: center; }
}
