/* JonathanLegerPodcast.com — mockup design system (bronze & ember, from the channel's video cards) */
:root {
  --bg: #111418;
  --surface: #171b21;
  --surface-2: #1e232a;
  --line: #2a3039;
  --text: #ece6dc;
  --text-2: #c9c2b6;
  --muted: #958e83;
  --bronze: #c99a5b;
  --bronze-2: #e0b77e;
  --ember: #ec9550;
  --wj: #f08a76;            /* words of Jesus on dark */
  --hl: rgba(201,154,91,.16);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --read-size: 1.2rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f8f5ef;
  --surface: #ffffff;
  --surface-2: #f1ece3;
  --line: #e2dacd;
  --text: #1f1b16;
  --text-2: #3d362d;
  --muted: #776e62;
  --bronze: #9a6a2c;
  --bronze-2: #7d5420;
  --ember: #b8591a;
  --wj: #b3261e;
  --hl: rgba(184,124,46,.14);
  --shadow: 0 10px 30px rgba(60,40,10,.10);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--bronze-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bronze); color: #111; padding: 8px 12px; border-radius: 8px; z-index: 99; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand img { border-radius: 50%; }
.brand-name { font: 700 1.08rem/1.05 var(--serif); letter-spacing: .01em; }
.brand-name small { display: block; font: 600 .62rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a[aria-current] { color: var(--bronze-2); background: var(--hl); }
.hdr-tools { display: flex; gap: 4px; }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .menu-btn { display: grid; }
  .hdr-tools { margin-left: auto; }
  .wrap { padding: 0 16px; }
}

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: grid; align-items: start; justify-items: center; padding: 12vh 16px 0; }
.search-overlay[hidden] { display: none; }
.search-box { width: min(680px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.search-box input { width: 100%; font: 500 1.15rem var(--sans); padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.search-hint { margin: 10px 4px 0; color: var(--muted); font-size: .9rem; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; }
.btn-primary { background: var(--bronze); color: #15110b; }
.btn-primary:hover { background: var(--bronze-2); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.eyebrow { font: 700 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); }
.rule { width: 56px; height: 3px; background: var(--bronze); border-radius: 2px; margin: 14px 0 18px; }

/* ---------- home ---------- */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 400px at 85% 0%, color-mix(in srgb, var(--bronze) 14%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font: 700 clamp(2.1rem, 4.4vw, 3.4rem)/1.08 var(--serif); margin: 14px 0 0; letter-spacing: -.01em; }
.hero h1 em { color: var(--bronze-2); font-style: italic; }
.hero p.lead { font-size: 1.15rem; color: var(--text-2); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.feature-video { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16/9; background: #000; }
.feature-video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play span { width: 72px; height: 72px; border-radius: 50%; background: rgba(201,154,91,.92); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.feature-caption { margin-top: 12px; }
.feature-caption b { font: 700 1.05rem var(--serif); }
.searchbar { margin-top: -28px; position: relative; z-index: 2; }
.searchbar .box { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; cursor: text; color: var(--muted); }
.searchbar .box span { flex: 1; }
section.band { padding: 64px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.band-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.band-head h2 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--serif); margin: 8px 0 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--bronze) 50%, var(--line)); }
.card .thumb { aspect-ratio: 16/9; background: #000; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.78); color: #fff; font-size: .78rem; padding: 2px 7px; border-radius: 5px; }
.card .body { padding: 14px 16px 18px; }
.card h3 { font: 700 1.08rem/1.3 var(--serif); margin: 0 0 6px; }
.card .meta { font-size: .85rem; color: var(--muted); }
.series { display: grid; grid-template-columns: 340px 1fr; gap: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.series ol { margin: 0; padding: 0; list-style: none; counter-reset: ep; display: grid; gap: 4px; }
.series li { counter-increment: ep; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; }
.series li:hover { background: var(--surface-2); }
.series li::before { content: counter(ep); font: 700 1.1rem var(--serif); color: var(--bronze); text-align: center; }
.series li a { color: var(--text); font-weight: 500; }
.series .tag { font-size: .75rem; color: var(--muted); }
.series .soon { color: var(--muted); }
.bible-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.verse-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; position: relative; overflow: hidden; }
.verse-card::before { content: "“"; position: absolute; right: 18px; top: -30px; font: 700 10rem/1 var(--serif); color: var(--hl); }
.verse-card blockquote { margin: 0; font: 500 1.45rem/1.5 var(--serif); }
.verse-card blockquote .wj { color: var(--wj); }
.verse-card cite { display: block; margin-top: 14px; font-style: normal; color: var(--bronze); font-weight: 600; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 22px 0 28px; padding: 0; list-style: none; }
.features li { display: flex; gap: 10px; color: var(--text-2); font-size: .95rem; }
.features li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--bronze); }
.book { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.book img { border-radius: 6px; box-shadow: var(--shadow); }
.stars { color: var(--ember); letter-spacing: 2px; }
@media (max-width: 900px) {
  .hero-grid, .bible-band, .series, .book { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .book img { max-width: 200px; }
}
@media (max-width: 600px) {
  .grid-3, .features { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  section.band { padding: 44px 0; }
  .series { padding: 18px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.ftr { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-top: 44px; padding-bottom: 30px; }
.ftr h3 { font: 700 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin: 4px 0 12px; }
.ftr a:not(.brand) { display: block; color: var(--text-2); padding: 3px 0; font-size: .95rem; }
.legal { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; color: var(--muted); font-size: .85rem; }
.legal a { color: var(--muted); }
@media (max-width: 760px) { .ftr { grid-template-columns: 1fr 1fr; } .ftr > div:first-child { grid-column: 1 / -1; } }

/* ---------- v2 additions: page heads, prose, articles, lists ---------- */
.page-head { padding: 54px 0 26px; border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 90% 0%, color-mix(in srgb, var(--bronze) 10%, transparent), transparent 70%); }
.page-head h1 { font: 700 clamp(2rem, 4vw, 3rem)/1.1 var(--serif); margin: 10px 0 8px; }
.page-head .lead { font-size: 1.12rem; color: var(--text-2); max-width: 46em; margin: 0; }
.wrap.narrow { max-width: 780px; }
.h2 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--serif); margin: 28px 0 16px; }
.small { font-size: .88rem; }
.prose { font: 400 1.12rem/1.75 var(--serif); color: var(--text-2); }
.prose h2 { font: 700 1.6rem/1.25 var(--serif); color: var(--text); margin: 1.6em 0 .5em; }
.prose h3 { font: 700 1.25rem var(--serif); color: var(--text); margin: 1.4em 0 .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.filter { margin-top: 22px; width: min(520px, 100%); font: 500 1rem var(--sans); padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.card[hidden] { display: none; }
.series-blurb { margin-top: 0; font: 500 1.15rem/1.55 var(--serif); }
.book-title { font: 700 clamp(1.8rem, 3.4vw, 2.6rem)/1.1 var(--serif); margin: 8px 0 4px; }
.book-sub { font: italic 400 1.2rem var(--serif); color: var(--text-2); }
.pull { font: 400 1.1rem/1.6 var(--serif); border-left: 3px solid var(--bronze); padding-left: 14px; color: var(--text-2); }
.book .btn { margin: 4px 8px 4px 0; }

/* video article */
.article { padding-top: 34px; }
.article-head h1 { font: 700 clamp(1.8rem, 3.6vw, 2.7rem)/1.15 var(--serif); margin: 10px 0 22px; max-width: 26em; }
.video-embed { max-width: 1000px; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-lite { all: unset; display: block; width: 100%; height: 100%; background-size: cover; background-position: center; cursor: pointer; position: relative; }
.yt-lite .play { position: absolute; inset: 0; display: grid; place-items: center; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 34px; }
.transcript { font: 400 1.13rem/1.8 var(--serif); color: var(--text-2); max-width: 720px; }
.transcript h2.eyebrow { margin: 0 0 6px; }
.transcript p { margin: 0 0 1.1em; }
.transcript .sref { color: var(--bronze-2); border-bottom: 1px dotted var(--bronze); text-decoration: none; }
.ts { all: unset; cursor: pointer; font: 600 .72rem var(--sans); color: var(--muted); background: var(--surface-2); border-radius: 5px; padding: 1px 6px; margin-right: 8px; vertical-align: 2px; }
.ts:hover { color: var(--bronze-2); }
.article-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; align-self: start; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-box h3 { margin: 0 0 10px; }
.ref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ref-list a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; }
.book-mini { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.book-mini img { border-radius: 3px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .article-side { position: static; } }

/* bible index */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 30px; }
.book-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.book-item summary { cursor: pointer; padding: 10px 14px; font-weight: 600; display: flex; justify-content: space-between; list-style: none; }
.book-item summary::-webkit-details-marker { display: none; }
.book-item[open] { grid-column: 1 / -1; }
.chap-grid { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 14px; }
.chap-grid a { min-width: 40px; text-align: center; padding: 7px 0; border-radius: 8px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .92rem; }
.chap-grid a:hover, .chap-grid a.on { background: var(--bronze); color: #15110b; text-decoration: none; }
.chap-grid.big a { min-width: 52px; padding: 12px 0; font-size: 1.05rem; }

/* book page samples */
.sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .sample-grid { grid-template-columns: 1fr; } }

/* teaching box (also used on chapter pages) */
.bookbox { margin: 1.2em 0 1.6em; background: linear-gradient(180deg, color-mix(in srgb, var(--bronze) 9%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--bronze) 35%, var(--line)); border-radius: 14px; padding: 18px 20px; font-family: var(--sans); }
.bookbox-head { display: flex; gap: 12px; align-items: center; }
.bookbox-head img { border-radius: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.bookbox h3 { font: 700 1.12rem/1.25 var(--serif); margin: 4px 0 0; color: var(--text); }
.bookbox blockquote { margin: 12px 0 10px; font: italic 400 1.04rem/1.65 var(--serif); color: var(--text-2); }
.bookbox-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; font-size: .86rem; }
.bookbox-foot a { font-weight: 600; }
.bookbox.compact { margin: 0 0 14px; padding: 14px 16px; }
.bookbox.compact blockquote { font-size: .97rem; }
.sample-grid .bookbox { margin: 0; }
.sample-grid .bookbox figcaption { font-size: .85rem; color: var(--muted); }

/* search (Pagefind UI) */
.search-box { --pagefind-ui-scale: .9; --pagefind-ui-primary: var(--bronze); --pagefind-ui-text: var(--text); --pagefind-ui-background: var(--surface); --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--surface-2); --pagefind-ui-font: var(--sans); max-height: 80vh; overflow-y: auto; }

/* Support: page and banner */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.donate-panel { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.donate-panel h2 { font: 700 1.4rem var(--serif); margin: 0 0 6px; }
.amounts { display: flex; gap: 6px; margin: 14px 0; }
.amount { flex: 1 1 0; min-width: 0; box-sizing: border-box; padding: 9px 2px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: 600 .95rem var(--sans); text-align: center; cursor: pointer; text-decoration: none; }
.amount:hover { background: var(--surface-2); }
.amount.on { background: var(--bronze); border-color: var(--bronze); color: #15110b; }
.amount-custom { width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 500 1rem var(--sans); }
.donate-form .btn { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.support-banner { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: min(400px, calc(100vw - 32px)); box-sizing: border-box; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
.support-banner[hidden] { display: none; }
@media (min-width: 1081px) { body:has(.reader) .support-banner { right: auto; left: 20px; } }   /* clear of the study panel */
.support-banner.in { opacity: 1; transform: none; }
.support-banner .amounts { margin: 10px 0; }
.support-banner p { margin: 0 22px 0 0; font-size: .92rem; line-height: 1.4; color: var(--text-2); }
.support-banner strong { color: var(--text); }
.support-x { position: absolute; top: 8px; right: 8px; padding: 6px 8px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.support-later { display: block; margin: 8px auto 0; padding: 6px 10px; background: none; border: 0; color: var(--muted); font: 500 .88rem var(--sans); cursor: pointer; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } .donate-panel { position: static; } }
@media (max-width: 520px) { .support-banner { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* Report a problem */
.report { width: min(520px, calc(100vw - 32px)); box-sizing: border-box; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.report::backdrop { background: rgba(0,0,0,.6); }
.report h2 { font: 700 1.4rem var(--serif); margin: 0 0 6px; }
.report label { display: block; font-weight: 600; margin: 12px 0 6px; }
.report textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 400 1rem var(--sans); }
.report details { margin: 10px 0; font-size: .85rem; color: var(--muted); }
.report pre { white-space: pre-wrap; word-break: break-word; font: 400 .78rem/1.5 ui-monospace, monospace; max-height: 170px; overflow: auto; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.report .btn { cursor: pointer; }
