/* Steve Holcomb - one shared stylesheet for every page.
   Colors: midnight navy (main), dawn gold (buttons), off-white (background). */

:root {
  --navy: #13213c;
  --navy-deep: #0b1528;
  --gold: #f0b54a;
  --gold-deep: #9a6400;   /* gold dark enough to read as text on off-white */
  --dawn: #f6a96b;
  --paper: #fbf8f2;
  --ink: #1c2230;
  --muted: #4c5466;
  --line: #e4ddd0;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.section { padding: 64px 0; }
.section.alt { background: #f3eee4; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy); padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header and menu ---------- */
/* Light header so Steve's navy-and-gold logo reads properly */
.site-header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.brand { display: block; padding: 8px 0; }
.brand img { height: 56px; width: auto; }

.menu-toggle {
  background: transparent; color: var(--navy); border: 2px solid var(--navy);
  border-radius: 10px; font: inherit; font-size: 1rem; font-weight: 700;
  padding: 10px 16px; min-height: 48px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; color: var(--navy); text-decoration: none; font-weight: 600;
  padding: 14px 4px;
}
.site-nav a[aria-current="page"] { color: var(--gold-deep); }
.site-nav a:hover { color: var(--gold-deep); }
.site-nav a.nav-cta {
  background: var(--gold); color: var(--navy-deep); border-radius: 999px; padding: 10px 20px;
}
.site-nav a.nav-cta:hover { background: #ffc766; color: var(--navy-deep); }

@media (max-width: 979px) {
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; padding: 4px 20px 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(11,21,40,.3);
  }
  .site-nav.open { display: block; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { font-size: 1.15rem; }
  .site-nav a.nav-cta { margin-top: 12px; text-align: center; padding: 14px 20px; }
}
@media (min-width: 980px) {
  .menu-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 22px; }
}

/* Home page header graphic */
.hero-art { background: #05070d; }
.hero-art img { width: 100%; max-width: 1600px; margin: 0 auto; height: auto; }
.hero-band { background: var(--navy-deep); color: #fff; text-align: center; padding: 32px 0 40px; }
.hero-band .lead { font-size: clamp(1.15rem, 3.2vw, 1.4rem); color: #eef1f7; max-width: 640px; margin: 0 auto 24px; }
.hero-band .btn-row { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1.1rem; text-decoration: none; border: 0;
  cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffc766; color: var(--navy-deep); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 520px) { .btn-row .btn { width: 100%; } }

/* ---------- Dawn hero ---------- */
.hero {
  color: #fff; text-align: center;
  background:
    radial-gradient(120% 70% at 50% 108%, rgba(246,169,107,.95) 0%, rgba(240,181,74,.55) 22%, rgba(19,33,60,0) 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, #2c3557 100%);
  padding: 72px 0 96px;
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero .eyebrow {
  color: var(--gold); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-size: .9rem; margin-bottom: 14px;
}
.hero .lead { font-size: clamp(1.2rem, 3.4vw, 1.5rem); max-width: 640px; margin: 0 auto 32px; color: #eef1f7; }
.hero .btn-row { justify-content: center; }
.page-hero { padding: 56px 0 64px; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Email signup box ---------- */
.signup {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 36px 28px; text-align: center;
  box-shadow: 0 18px 40px -24px rgba(11,21,40,.6);
}
.signup h2 { color: #fff; }
.signup p { color: #dfe4ee; max-width: 560px; margin-left: auto; margin-right: auto; }
.signup-form { display: grid; gap: 12px; max-width: 520px; margin: 22px auto 0; }
@media (min-width: 640px) { .signup-form { grid-template-columns: 1fr 1fr auto; max-width: 760px; } }
.signup-form input {
  min-height: 56px; border-radius: 12px; border: 2px solid transparent;
  padding: 12px 16px; font: inherit; font-size: 1.05rem; width: 100%;
}
.signup-form input:focus { border-color: var(--gold); outline: none; }
.signup .fine { font-size: .9rem; color: #b9c2d3; margin: 16px auto 0; }
.signup .fine a { color: #fff; }
.form-note {
  margin-top: 14px; font-weight: 600; color: var(--gold); min-height: 1.4em;
}

/* ---------- Video cards ---------- */
.video-grid { display: grid; gap: 28px; }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .video-grid.three { grid-template-columns: repeat(3, 1fr); } }

.teaching {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.teaching .body { padding: 20px 22px 24px; }
.teaching h3 { margin-bottom: .3em; }
.teaching .meta { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.tag {
  display: inline-block; background: #fdf0d6; color: #6b4600;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; margin-right: 6px;
}

/* Click-to-play video: shows the thumbnail, loads YouTube only when tapped */
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  background: #000 center / cover no-repeat; border: 0; padding: 0; cursor: pointer;
}
.yt::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45) 100%);
}
.yt .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; z-index: 1;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.yt .play::before {
  content: ""; margin-left: 6px;
  border-left: 24px solid var(--navy-deep);
  border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}
.yt:hover .play { background: #ffc766; }
.yt-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }

/* ---------- The timeline chart ---------- */
.chart {
  background: #05070d; color: #f2f2f2; border-radius: var(--radius);
  padding: 32px 24px; border: 1px solid #23283a;
}
.chart h2 { color: #fff; text-align: center; margin-bottom: .2em; }
.chart .chart-sub { text-align: center; color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 3px; background: var(--gold);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; background: #05070d; border: 3px solid var(--gold);
}
.timeline .when { color: var(--gold); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.timeline h3 { color: #fff; margin: 2px 0 4px; font-size: 1.2rem; }
.timeline p { color: #c9cdd8; margin: 0; font-size: 1rem; }
.timeline .ref { color: #8ea2c8; font-size: .9rem; }
.timeline li.key::after { background: var(--gold); box-shadow: 0 0 0 6px rgba(240,181,74,.25); }
.timeline li.key h3 { color: var(--gold); font-size: 1.4rem; }
.timeline li.wrath::before { background: #c4452f; }
.timeline li.wrath::after { border-color: #e2664f; }

@media (min-width: 900px) {
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 18px; }
  .timeline li { padding: 34px 0 0; }
  .timeline li::before { left: 0; right: -18px; top: 13px; bottom: auto; width: auto; height: 3px; }
  .timeline li:last-child::before { display: block; right: 0; }
  .timeline li::after { top: 4px; }
}
.timeline-teaser { display: block; margin-top: 28px; border: 1px solid #23283a; border-radius: 10px; overflow: hidden; }
.timeline-teaser img { width: 100%; }

/* Full timeline page: the chart scrolls sideways on phones so the text stays readable */
.timeline-scroll { overflow-x: auto; background: #000; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.tl-stage { position: relative; width: 1400px; }
.tl-stage img { width: 100%; max-width: none; }
@media (min-width: 1100px) { .tl-stage { width: 100%; } }

/* Tappable verse spots over the chart */
.tl-spot {
  position: absolute; padding: 0; cursor: pointer;
  background: rgba(240,181,74,.08); border: 1.5px solid rgba(240,181,74,.75); border-radius: 4px;
}
.tl-spot:hover, .tl-spot:focus-visible { background: rgba(240,181,74,.28); outline: 2px solid var(--gold); outline-offset: 1px; }

.verse-dialog {
  width: min(640px, calc(100vw - 32px)); max-height: 85vh; overflow: auto;
  border: 0; border-radius: var(--radius); padding: 28px 24px 24px; color: var(--ink); background: var(--paper);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.verse-dialog::backdrop { background: rgba(5,7,13,.7); }
.verse-dialog h2 { font-size: 1.5rem; padding-right: 36px; }
.verse-dialog blockquote { margin: 0 0 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.verse-dialog blockquote p { margin: 0 0 .6em; }
.verse-dialog sup { color: var(--gold-deep); font-weight: 700; }
.verse-dialog cite { display: block; font-style: normal; font-weight: 700; color: var(--muted); font-size: .95rem; }
.vd-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #ece6da; color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.vd-actions { margin: 0; }

.chart .draft { margin: 18px 0 0; text-align: center; font-size: .9rem; color: #8b93a7; }

/* ---------- General content ---------- */
.two-col { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1.3fr; } }

.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, #22325a, #0b1528);
  color: #c9d2e6; display: grid; place-items: center; text-align: center;
  padding: 24px; font-weight: 600; border: 3px dashed rgba(240,181,74,.6);
}

.draft-banner {
  background: #fff4dc; border: 2px dashed var(--gold-deep); color: #5a3b00;
  border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: .95rem; margin-bottom: 24px;
}

.callout {
  background: #fff; border: 1px solid var(--line); padding: 24px 26px;
  border-radius: var(--radius);
}

.topic-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 32px; }
.topic-list a {
  display: inline-block; padding: 10px 16px; border-radius: 999px; min-height: 44px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600;
}
.topic-list a:hover { border-color: var(--gold-deep); }

.list-check { padding-left: 1.2em; }
.list-check li { margin-bottom: .4em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; max-width: 620px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; font: inherit; padding: 14px 16px; border-radius: 12px;
  border: 2px solid #c9c1b1; background: #fff; min-height: 56px;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: none; }
.form .form-note { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c3cbdb; padding: 48px 0 36px; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; font-size: .9rem; }

.center { text-align: center; }
.mt { margin-top: 32px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Steve's photo */
.portrait { width: 100%; max-width: 420px; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(11,21,40,.55); }

/* ---------- Studies ---------- */
.page-hero .byline { color: #dfe4ee; font-size: 1rem; margin: 0; }
.page-hero .byline a { color: #fff; }
.page-hero .byline a:hover { color: var(--gold); }

.study-card h2 { font-size: 1.3rem; margin-bottom: .4em; }
.study-card h2 a { text-decoration: none; }
.study-card h2 a:hover { text-decoration: underline; }
.study-card .body { display: flex; flex-direction: column; flex: 1; }
.study-card .read { margin: auto 0 0; font-weight: 700; }

.article { font-size: 1.1rem; line-height: 1.8; }
.article p, .article li { margin-bottom: 1.1em; }
.article ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article blockquote {
  margin: 0 0 1.4em; padding: 20px 24px;
  background: #f3eee4; border: 1px solid var(--line); border-radius: 12px;
  font-family: "Lora", Georgia, "Times New Roman", serif; font-size: 1.02rem; line-height: 1.7;
}
.article blockquote p { margin-bottom: .6em; }
.article blockquote cite {
  display: block; font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-style: normal; font-weight: 700; font-size: .9rem; letter-spacing: .03em; color: var(--muted);
}
.study-nav { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; }
.study-next span, .study-label {
  display: block; color: var(--muted); font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.study-next a { font-family: "Lora", Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; }
.study-links { font-size: 1rem; color: var(--muted); }
.study-related { margin-bottom: 28px; }
.study-label { margin-bottom: 8px; }
/* Home: study links under Daniel's week (dark chart panel) */
.key-studies-label { text-align: center; color: #c9cdd8; margin: 8px 0 6px; }
.key-studies { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; text-align: center; }
.key-studies li { margin-bottom: .4em; }
.key-studies a { color: #fff; }
.key-studies a:hover { color: var(--gold); }

/* Timeline full-size view */
.tl-toolbar { display: none; }
.timeline-scroll.tl-full {
  position: fixed; inset: 0; z-index: 100; border-radius: 0; overflow: auto;
}
.timeline-scroll.tl-full .tl-toolbar {
  display: flex; gap: 8px; position: fixed; top: 12px; right: 12px; z-index: 101;
}
.tl-toolbar button {
  min-width: 48px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--gold); color: var(--navy-deep); font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
}

/* Study page with its own banner image (set --art and --art-sm on the section) */
.art-hero {
  background:
    linear-gradient(90deg, rgba(5,10,24,.85) 0%, rgba(5,10,24,.55) 55%, rgba(5,10,24,.2) 100%),
    var(--art-sm) var(--art-pos, center) / cover no-repeat;
  padding: 96px 0 104px; text-align: left;
}
@media (min-width: 900px) {
  .art-hero {
    background:
      linear-gradient(90deg, rgba(5,10,24,.85) 0%, rgba(5,10,24,.5) 50%, rgba(5,10,24,.1) 100%),
      var(--art) var(--art-pos, center) / cover no-repeat;
    padding: 140px 0 150px;
  }
}
.art-hero h1 { text-shadow: 0 2px 16px rgba(0,0,0,.6); }

.vd-art { display: block; width: calc(100% + 48px); max-width: none; margin: -28px -24px 18px; border-radius: var(--radius) var(--radius) 0 0; }

/* Real sign-up form (Listmonk) */
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-captcha { grid-column: 1 / -1; display: flex; justify-content: center; }
.signup-captcha altcha-widget { --altcha-max-width: 320px; --altcha-color-base: #fff; --altcha-color-text: var(--ink); --altcha-border-radius: 12px; }

/* ---------- Video pages (/videos/*) ----------
   Laid out like a Daily Faith episode page: player, title, about, quotes, what's discussed,
   scripture, common questions, transcript. One narrow column so it reads well on phones. */
.video-page { padding: 28px 0 56px; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a59d8d; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
.video-page .yt, .video-page .yt-player { border-radius: var(--radius); overflow: hidden; }
.ep-meta { color: var(--muted); font-size: .95rem; margin: 18px 0 8px; }
.video-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.video-page h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); margin-top: 1.6em; }
.credit { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 1rem; }
.quotes { display: grid; gap: 14px; margin: 0; }
.quotes blockquote {
  margin: 0; padding: 4px 0 4px 18px; background: none; border: 0; border-left: 2px solid var(--gold); border-radius: 0;
  font-family: "Lora", Georgia, "Times New Roman", serif; font-size: 1.1rem;
}
.quotes blockquote p { margin: 0 0 .4em; }
.quotes cite { font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; font-style: normal; font-size: .9rem; font-weight: 700; color: var(--muted); }
.chapters { list-style: none; padding: 0; margin: 0 0 1em; }
.chapters li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ts { display: inline-block; min-width: 3.4em; font-variant-numeric: tabular-nums; color: var(--gold-deep); font-weight: 700; }
.scripture { padding-left: 1.2em; }
.scripture li { margin-bottom: .35em; }
.faq h3 { font-size: 1.15rem; margin: 1.2em 0 .3em; }
details.transcript { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-top: 1.6em; }
details.transcript summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; min-height: 48px; }
details.transcript .note { color: var(--muted); font-size: .95rem; }
details.transcript .tx { font-size: 1rem; line-height: 1.7; max-height: 70vh; overflow-y: auto; padding-bottom: 12px; }
