:root {
    --bg: #FBF7F0;
    --bg-deep: #F4EDE2;
    --card: #FFFFFF;
    --ink: #2A2420;
    --ink-soft: #5E554D;
    --ink-faint: #8C8279;
    --line: #E8DFD2;
    --coral: #E0674F;
    --coral-deep: #C4513B;
    --coral-soft: #FCE9E3;

    --prophetic: #6E53C9;  --prophetic-bg: #EFEAFB;
    --wisdom:    #16806F;  --wisdom-bg:    #E1F3EE;
    --stories:   #C8552F;  --stories-bg:   #FDEBE1;
    --recs:      #A87A06;  --recs-bg:      #FBF1D3;
    --prayer:    #2F66C9;  --prayer-bg:    #E4ECFB;

    --radius: 14px;
    --col: 700px;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Figtree", system-ui, sans-serif;
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--coral-deep); }
  img { max-width: 100%; display: block; }

  /* ---------- Top bar ---------- */
  .topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(251, 247, 240, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-inner {
    max-width: 1120px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 28px;
  }
  .logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
  }
  .logo-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--coral); color: #fff;
    display: grid; place-items: center; font-size: 16px;
  }
  .nav { display: flex; gap: 22px; margin-left: 8px; }
  .nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 16px; }
  .nav a:hover { color: var(--ink); }
  .topbar .btn { margin-left: auto; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--coral); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  }
  .btn:hover { background: var(--coral-deep); }

  /* ---------- Article header ---------- */
  .wrap { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
  .crumbs { font-size: 14px; color: var(--ink-faint); margin: 36px 0 18px; }
  .crumbs a { color: var(--ink-faint); text-decoration: none; }
  .crumbs a:hover { color: var(--coral-deep); }
  .kicker {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--coral-deep); background: var(--coral-soft); padding: 4px 10px; border-radius: 999px;
  }
  h1 {
    font-family: "Fraunces", Georgia, serif; font-weight: 600;
    font-size: clamp(32px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.015em;
    margin: 16px 0 14px;
  }
  .dek { font-size: 20px; color: var(--ink-soft); margin: 0 0 22px; }
  .byline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-soft); flex-wrap: wrap; }
  .avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #F3B49F, #E0674F); color: #fff;
    display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none;
  }
  .byline strong { color: var(--ink); }
  .dot { color: var(--line); }

  /* ---------- Video ---------- */
  .video {
    max-width: 860px; margin: 32px auto 0; padding: 0 24px;
  }
  .video-frame {
    position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
    background: #1d1a17; box-shadow: 0 18px 40px -22px rgba(60, 35, 20, 0.45);
  }
  .video-frame img, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
  .play {
    position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
    background: rgba(224, 103, 79, 0.95); border: 0; cursor: pointer;
    display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform .15s ease;
  }
  .play:hover { transform: scale(1.06); }
  .play svg { width: 32px; height: 32px; margin-left: 5px; fill: #fff; }
  .video-caption { font-size: 14px; color: var(--ink-faint); text-align: center; margin-top: 10px; }
  .video-caption a { color: var(--ink-soft); }

  /* ---------- Body ---------- */
  main { padding-bottom: 40px; }
  .intro { margin-top: 34px; }
  .intro p { margin: 0 0 16px; }

  .takeaways {
    background: #FFF4DC; border: 1px solid #F3E0B5; border-radius: var(--radius);
    padding: 26px 28px 20px; margin: 30px 0;
  }
  .takeaways h2 { font-size: 21px; margin: 0 0 12px; font-family: "Figtree", sans-serif; font-weight: 800; }
  .takeaways ul { margin: 0; padding-left: 0; list-style: none; }
  .takeaways li { position: relative; padding-left: 28px; margin-bottom: 10px; }
  .takeaways li::before {
    content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 50%;
    background: var(--coral);
  }

  .jump {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px 24px; margin: 30px 0 10px;
  }
  .jump h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; font-weight: 700; }
  .jump-list { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-size: 15px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  }
  .chip .n { font-weight: 800; opacity: .75; font-size: 13px; }
  .c-prophetic { color: var(--prophetic); background: var(--prophetic-bg); }
  .c-wisdom    { color: var(--wisdom);    background: var(--wisdom-bg); }
  .c-stories   { color: var(--stories);   background: var(--stories-bg); }
  .c-recs      { color: var(--recs);      background: var(--recs-bg); }
  .c-prayer    { color: var(--prayer);    background: var(--prayer-bg); }

  section.cat { margin-top: 54px; scroll-margin-top: 90px; }
  .cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
  .cat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex: none; }
  .cat h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.2; margin: 0; }
  .cat-sub { color: var(--ink-soft); margin: 4px 0 20px; font-size: 17px; }

  .hl {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px 18px; margin-bottom: 16px; position: relative;
  }
  .hl::before {
    content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0;
  }
  .cat-prophetic .hl::before { background: var(--prophetic); }
  .cat-wisdom .hl::before    { background: var(--wisdom); }
  .cat-stories .hl::before   { background: var(--stories); }
  .cat-recs .hl::before      { background: var(--recs); }
  .cat-prayer .hl::before    { background: var(--prayer); }
  .hl h3 { font-size: 19px; line-height: 1.35; margin: 0 0 8px; font-weight: 700; }
  .hl p { margin: 0 0 12px; color: #3B342E; }
  .hl ul { margin: 0 0 12px; padding-left: 20px; color: #3B342E; }
  .hl li { margin-bottom: 6px; }
  blockquote {
    margin: 4px 0 14px; padding: 14px 18px; border-radius: 10px;
    background: var(--bg); font-family: "Fraunces", Georgia, serif; font-size: 18.5px; line-height: 1.5; color: var(--ink);
  }
  blockquote::before { content: "\201C"; }
  blockquote::after { content: "\201D"; }
  .ts {
    display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
    font-size: 14px; font-weight: 700; color: var(--ink-soft);
    background: var(--bg-deep); padding: 5px 12px 5px 9px; border-radius: 999px;
  }
  .ts:hover { background: var(--coral-soft); color: var(--coral-deep); }
  .ts svg { width: 14px; height: 14px; fill: currentColor; }
  .ts + .ts { margin-left: 6px; }
  .note-inline { font-size: 15px; color: var(--ink-faint); font-style: italic; }

  .callout {
    border-radius: var(--radius); padding: 22px 24px; margin: 20px 0;
    background: var(--bg-deep); font-size: 16px; color: var(--ink-soft);
  }
  .callout h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
  .callout p { margin: 0 0 8px; }
  .callout p:last-child { margin-bottom: 0; }

  .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 16px; }
  .person { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; }
  .person strong { display: block; font-size: 16px; }
  .person span { color: var(--ink-faint); }

  /* ---------- Support + subscribe ---------- */
  .support {
    margin-top: 60px; background: var(--coral-soft); border-radius: 20px; padding: 30px 30px 26px;
  }
  .support h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 28px; margin: 0 0 8px; }
  .support p { margin: 0 0 18px; color: var(--ink-soft); }
  .support-links { display: flex; flex-wrap: wrap; gap: 10px; }
  .btn-ghost {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    background: #fff; color: var(--ink); border: 1px solid #F1CFC4;
    font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 999px;
  }
  .btn-ghost:hover { border-color: var(--coral); color: var(--coral-deep); }

  .subscribe {
    margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  }
  .subscribe h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 28px; margin: 0 0 6px; }
  .subscribe > p { margin: 0 0 20px; color: var(--ink-soft); }
  .sub-group { margin-bottom: 18px; }
  .sub-group .label { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
  .opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .opt { position: relative; }
  .opt input { position: absolute; opacity: 0; pointer-events: none; }
  .opt span {
    display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
    font-size: 15px; font-weight: 600; color: var(--ink-soft); cursor: pointer; background: var(--bg);
  }
  .opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
  .opt input:focus-visible + span { outline: 2px solid var(--coral); outline-offset: 2px; }
  .sub-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .sub-row input[type=email] {
    flex: 1 1 240px; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  }
  .sub-note { font-size: 13px; color: var(--ink-faint); margin-top: 10px; }

  footer {
    border-top: 1px solid var(--line); margin-top: 70px; padding: 30px 24px 50px; text-align: center;
    font-size: 14px; color: var(--ink-faint);
  }
  footer p { max-width: 640px; margin: 0 auto 8px; }

  .toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
    opacity: 0; transition: all .2s ease; pointer-events: none; z-index: 50;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 720px) {
    body { font-size: 17px; }
    .nav { display: none; }
    .topbar-inner { padding: 12px 16px; }
    .wrap, .video { padding: 0 16px; }
    .takeaways, .hl, .jump, .support, .subscribe { padding-left: 18px; padding-right: 18px; }
    .cat h2 { font-size: 26px; }
    .play { width: 66px; height: 66px; }
  }
  @media (max-width: 420px) {
    .topbar-inner { gap: 10px; }
    .logo { font-size: 16px; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .logo-mark { width: 26px; height: 26px; font-size: 14px; flex: none; }
    .topbar .btn { padding: 8px 13px; font-size: 14px; flex: none; }
  }

/* ---------- Home page ---------- */
.home-hero { max-width: 760px; margin: 0 auto; padding: 64px 24px 20px; text-align: center; }
.home-hero h1 { font-size: clamp(36px, 6vw, 56px); margin: 14px 0 16px; }
.home-hero p { font-size: 20px; color: var(--ink-soft); margin: 0 auto; max-width: 600px; }
.home-wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.home-section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 48px 0 16px; }
.teacher {
  display: flex; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 20px 24px;
}
.teacher .avatar { width: 64px; height: 64px; font-size: 22px; }
.teacher h3 { margin: 0 0 2px; font-size: 20px; }
.teacher p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.teacher .btn-ghost { margin-left: auto; flex: none; }
.post-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  text-decoration: none; color: inherit; margin-bottom: 18px; transition: box-shadow .15s ease, transform .15s ease;
}
.post-card:hover { box-shadow: 0 14px 30px -20px rgba(60, 35, 20, 0.45); transform: translateY(-2px); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.post-card .meta { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-deep); margin: 6px 0 6px; }
.post-card h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 25px; line-height: 1.2; margin: 0 0 8px; }
.post-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips span { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 720px) {
  .home-hero { padding: 40px 16px 10px; }
  .home-wrap { padding: 0 16px; }
  .post-card { grid-template-columns: 1fr; gap: 12px; }
  .teacher { flex-wrap: wrap; }
  .teacher .btn-ghost { margin-left: 0; }
}

/* ---------- Menu: current page, and a scrolling row on phones ---------- */
.nav a.active { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; row-gap: 6px; }
  .nav {
    display: flex; order: 3; width: 100%; margin: 0; gap: 20px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0 2px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 15px; white-space: nowrap; }
}

/* ---------- Simple content pages (About, Brandon Biggs, Prophetic words) ---------- */
.page-head { max-width: var(--col); margin: 0 auto; padding: 48px 24px 8px; }
.page-head h1 { margin-top: 14px; }
.page-head .dek { margin-bottom: 0; }
.prose { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
.prose h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.2; margin: 46px 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.profile { display: flex; gap: 20px; align-items: center; margin: 26px 0 8px; }
.profile img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 8px 20px -12px rgba(60,35,20,.5); }
.profile .facts { font-size: 16px; color: var(--ink-soft); }
.profile .facts strong { color: var(--ink); font-size: 20px; display: block; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.give-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.give { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 16px; }
.give strong { display: block; font-size: 17px; margin-bottom: 4px; }
.give span { color: var(--ink-soft); }
.cat-legend { display: grid; gap: 10px; margin: 14px 0; }
.cat-legend div { display: flex; gap: 12px; align-items: baseline; }
.cat-legend .chip { flex: none; }
.post-group { margin-top: 40px; }
.post-group-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; text-decoration: none; color: inherit; }
.post-group-head img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex: none; }
.post-group-head .meta { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--coral-deep); }
.post-group-head h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 22px; line-height: 1.25; margin: 2px 0 0; }
.post-group-head:hover h2 { color: var(--coral-deep); }
.pw-item { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--prophetic); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.pw-item h3 { font-size: 17.5px; margin: 0 0 4px; }
.pw-item h3 a { color: var(--ink); text-decoration: none; }
.pw-item h3 a:hover { color: var(--coral-deep); }
.pw-item p { margin: 0 0 8px; font-size: 16px; color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 720px) {
  .page-head { padding: 32px 16px 4px; }
  .prose { padding: 0 16px; }
  .post-group-head img { width: 96px; }
}

/* Keep a linked highlight's title clear of the sticky top bar */
.hl { scroll-margin-top: 96px; }
@media (max-width: 720px) { .hl { scroll-margin-top: 130px; } }
.pw-item.story { border-left-color: var(--stories); }

/* "How this was made" line under post bylines (seo_build.py) */
.made { font-size: 14.5px; color: #6b6b6b; margin: 10px 0 0; }
.made a { color: inherit; }
