:root {
  --espresso: #2B1B12;   /* page background */
  --roast:    #3A271B;   /* raised sections on dark */
  --bean:     #5A3A26;   /* coffee surface, borders */
  --dawn:     #F0B441;   /* accent, from the channel's yellow */
  --steam:    #F5F3F0;   /* text on dark, light sections */
  --ink:      #231710;   /* text on light */
  --muted-d:  #CDBDAE;   /* secondary text on dark */
  --muted-l:  #6B5A4D;   /* secondary text on light */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--steam);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Bitter", Georgia, "Times New Roman", serif; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .8rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 "Figtree", system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--dawn); color: var(--espresso); }
.btn-primary:hover { background: #F7C761; }
.btn-ghost { border-color: var(--muted-d); color: var(--steam); }
.btn-ghost:hover { border-color: var(--steam); background: rgba(245,243,240,.08); }
.btn-dark { background: var(--espresso); color: var(--steam); }
.btn-dark:hover { background: #3A271B; }
.btn-small { padding: .6rem 1.1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(43,27,18,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245,243,240,.1);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.wordmark {
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-weight: 600; font-size: 1.75rem; line-height: 1;
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.site-header nav { display: flex; gap: 1.75rem; }
.site-header nav a { text-decoration: none; color: var(--muted-d); font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--steam); }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 5.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.01em; }
.lede { margin-top: 1.5rem; max-width: 36rem; font-size: 1.2rem; color: var(--muted-d); }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-art { position: relative; justify-self: center; width: min(100%, 360px); }
.hero-art::before {
  content: ""; position: absolute; inset: -12% -20% 0;
  background: radial-gradient(circle at 50% 30%, rgba(240,180,65,.26), transparent 62%);
}
.hero-art svg { position: relative; width: 100%; height: auto; display: block; }
.draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 2.2s ease-out .3s forwards; }
.draw.late { animation-delay: 1.7s; animation-duration: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Video players ---------- */
.player {
  position: relative; overflow: hidden;
  border-radius: 10px; background: #1A100A;
  aspect-ratio: 9 / 16;
}
.player.wide { aspect-ratio: 16 / 9; }
.player .thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.player .thumb img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--dawn); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  transition: scale .15s;
}
.thumb:hover .play { scale: 1.08; }
.play::after {
  content: ""; margin-left: 4px;
  border-left: 16px solid var(--espresso);
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 1rem; text-align: center; color: var(--muted-d); font-size: .95rem;
  border: 2px dashed var(--bean); border-radius: 10px;
}

/* ---------- Email signup ---------- */
.signup { background: var(--espresso); padding: 0 0 4.5rem; }
.signup-grid { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 3rem; align-items: center; }
.signup-copy .kicker { color: var(--dawn); font-weight: 700; margin-bottom: .6rem; }
.signup-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.signup-copy .desc { margin-top: .75rem; color: var(--muted-d); max-width: 30rem; }
.signup-form { display: flex; }
.btn-signup {
  width: 100%; min-height: 84px; padding: 1.25rem 2rem;
  font-size: 1.2rem; line-height: 1.3; text-align: center; white-space: normal;
}

@media (max-width: 820px) {
  .signup-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .signup { padding-bottom: 3.5rem; }
}

/* ---------- Latest ---------- */
.latest { background: var(--roast); padding: 4.5rem 0; }
.latest-grid { display: grid; grid-template-columns: minmax(230px, 310px) 1fr; gap: 3.5rem; align-items: center; }
.latest-copy .kicker { color: var(--dawn); font-weight: 700; margin-bottom: .75rem; }
.latest-copy h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.latest-copy .desc { margin-top: 1rem; max-width: 32rem; color: var(--muted-d); }
.latest-copy .btn { margin-top: 1.75rem; }

/* ---------- Library ---------- */
.library { padding: 5rem 0 5.5rem; }
.library h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 1.75rem; }
.library h2:not(:first-child) { margin-top: 4.5rem; }
.grid { display: grid; gap: 2rem 1.5rem; }
.grid-short { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-wide  { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { display: flex; flex-direction: column; gap: .8rem; }
.card .ref { color: var(--dawn); font-size: .95rem; font-weight: 700; }
.card h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.card .yt { margin-top: auto; color: var(--muted-d); font-size: .95rem; }
.card .yt:hover { color: var(--steam); }

/* ---------- Mission and about ---------- */
.light { background: var(--steam); color: var(--ink); }
.mission { padding: 5.5rem 0 4.5rem; }
.mission .statement {
  font-family: "Bitter", Georgia, serif; font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; max-width: 26ch;
}
.pillars { margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.pillars div { border-top: 3px solid var(--espresso); padding-top: 1.1rem; }
.pillars dt { font-family: "Bitter", Georgia, serif; font-weight: 800; font-size: 1.3rem; }
.pillars dd { margin: .5rem 0 0; color: var(--muted-l); }

.about { padding: 1rem 0 6rem; }
.about-grid { display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: 3.5rem; align-items: center; border-top: 1px solid rgba(35,23,16,.18); padding-top: 4rem; }
.photo { position: relative; aspect-ratio: 7 / 5; border-radius: 10px; overflow: hidden; background: var(--bean); color: var(--muted-d); display: grid; place-items: center; text-align: center; padding: 1rem; font-size: .95rem; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 1.25rem; }
.about p { max-width: 36rem; font-size: 1.125rem; }
.about p + p { margin-top: 1rem; }

.testimony { margin-top: 4.5rem; }
.testimony > * { max-width: 820px; }
.testimony h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.testimony p { margin: .4rem 0 1.5rem; color: var(--muted-l); }

/* ---------- Call to action ---------- */
.cta { background: var(--dawn); color: var(--espresso); padding: 3.75rem 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.cta p { margin-top: .4rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 3rem 0; color: var(--muted-d); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.site-footer .wordmark { color: var(--steam); }
.socials { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.socials a { text-decoration: none; }
.socials a:hover { color: var(--steam); text-decoration: underline; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; }
  .site-header nav {
    order: 3; width: 100%; gap: 1.5rem;
    overflow-x: auto; padding: .1rem 0 .75rem; margin-top: -.25rem;
  }
  .site-header nav a { white-space: nowrap; }
  .hero { padding: 3rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { width: min(70%, 280px); justify-self: start; }
  .latest-grid { grid-template-columns: 1fr; gap: 2rem; }
  .latest .player { max-width: 300px; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .photo { max-width: 100%; }
}
@media (max-width: 480px) {
  .wordmark { font-size: 1.45rem; }
  .site-header .wrap { gap: 1rem; }
  .grid-short { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .grid-wide { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .play { transition: none; }
}

/* ==========================================================
   Devotion pages, index pages, cards
   ========================================================== */

/* ---------- Page headings ---------- */
.page-head { padding: 3.5rem 0 2.5rem; }
.page-head .kicker { color: var(--dawn); font-weight: 700; margin-bottom: .6rem; }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; max-width: 22ch; }
.page-head .lede { margin-top: 1rem; }
.page-body { padding: 0 0 5rem; }

.crumbs { font-size: .95rem; color: var(--muted-d); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--steam); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 .4rem; }

/* ---------- Cards that link to a devotion ---------- */
.card-link { display: flex; flex-direction: column; gap: .8rem; text-decoration: none; }
.card-link:hover h3 { text-decoration: underline; text-decoration-color: var(--dawn); text-underline-offset: 3px; }
.card-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #1A100A; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb.vertical img { object-fit: contain; }
.card-thumb .badge {
  position: absolute; right: .5rem; bottom: .5rem;
  background: rgba(26,16,10,.88); color: var(--steam);
  font-size: .8rem; font-weight: 700; padding: .15rem .45rem; border-radius: 4px;
}
.card .meta { color: var(--muted-d); font-size: .9rem; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.more { margin-top: 2.5rem; }

/* ---------- Single devotion ---------- */
.devotion { padding: 2rem 0 3.5rem; }
.narrow { max-width: 880px; }
.devotion .player.vertical { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.devotion-head { margin-top: 2rem; }
.devotion-head h1 { display: flex; flex-direction: column; gap: .5rem; }
.ref-line { color: var(--dawn); font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; }
.title-line { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.devotion .meta { margin-top: 1rem; color: var(--muted-d); }
.devotion .actions { margin-top: 1.75rem; }
.devotion .summary { margin-top: 2rem; color: var(--muted-d); max-width: 42rem; }

.chips { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-block; padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--bean); color: var(--muted-d);
  text-decoration: none; font-size: .95rem;
}
.chip:hover { border-color: var(--dawn); color: var(--steam); }
.chip .count { color: var(--dawn); font-weight: 700; margin-left: .35rem; }

.transcript { padding: 4rem 0 4.5rem; }
.transcript h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 1.5rem; }
.transcript p { max-width: 42rem; font-size: 1.125rem; line-height: 1.75; }
.transcript p + p { margin-top: 1.1rem; }
.transcript .note { margin-top: 2.25rem; color: var(--muted-l); font-size: .95rem; }

.related { background: var(--roast); padding: 4rem 0 4.5rem; }
.related h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 1.75rem; }

/* ---------- Scripture and topic indexes ---------- */
.index-group + .index-group { margin-top: 3.5rem; }
.index-group > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 1.25rem; }
.index-group > h2 a { text-decoration: none; }
.index-group > h2 a:hover { text-decoration: underline; text-decoration-color: var(--dawn); }
.testament { font-size: 1rem; font-family: "Figtree", system-ui, sans-serif; font-weight: 700; color: var(--dawn); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.5rem; }
.testament:not(:first-child) { margin-top: 4rem; }
.ref-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ref-list a { text-decoration: none; }
.ref-list a:hover .t { text-decoration: underline; }
.ref-list .ref { color: var(--dawn); font-weight: 700; margin-right: .6rem; }

/* ---------- Homepage additions ---------- */
.latest-grid.wide-video { grid-template-columns: 1.25fr 1fr; }
.latest-copy .links { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.latest-copy .links .btn { margin-top: 0; }
.browse { margin-top: 4.5rem; }
.browse h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.browse h3 { font-size: 1.1rem; margin-top: 1.75rem; color: var(--muted-d); font-family: "Figtree", system-ui, sans-serif; font-weight: 700; }
.browse .chips { margin-top: .85rem; }

@media (max-width: 820px) {
  .latest-grid.wide-video { grid-template-columns: 1fr; }
  .latest-grid.wide-video .player { max-width: none; }
  .page-head { padding: 2.5rem 0 2rem; }
}

/* ---------- Jump-to list on index pages ---------- */
.jump { margin-bottom: 3.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(245,243,240,.1); }
.jump .chips { margin: 0; }
.index-group .back { margin-top: 1rem; font-size: .9rem; }
.index-group .back a { color: var(--muted-d); text-decoration: none; }
.index-group .back a:hover { color: var(--steam); text-decoration: underline; }
/* The header is two rows tall on phones, so leave more room above a jumped-to section. */
@media (max-width: 820px) { html { scroll-padding-top: 7.5rem; } }
