:root {
        --bg: #fbf9f4;
        --surface: #ffffff;
        --ink: #1d2434;
        --ink-soft: #4a5163;
        --navy: #16294d;
        --navy-deep: #0d1b36;
        --navy-band: #12233f;
        --gold: #a97c22;
        --gold-bright: #c99b3f;
        --gold-soft: #f3e9d2;
        --line: #e2dac6;
        --shadow: 0 10px 30px rgba(13, 27, 54, 0.10);
        --on-navy: #f2ecdc;
        --on-navy-soft: #c3cbdd;
      }
      @media (prefers-color-scheme: dark) {
        :root {
          --bg: #0b1322;
          --surface: #131f38;
          --ink: #ece5d2;
          --ink-soft: #b3bccd;
          --navy: #1a2c50;
          --navy-deep: #081226;
          --navy-band: #0a1730;
          --gold: #d9ab4e;
          --gold-bright: #e8c476;
          --gold-soft: #24304d;
          --line: #26355a;
          --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
          --on-navy: #f2ecdc;
          --on-navy-soft: #c3cbdd;
        }
      }
      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        * { animation: none !important; transition: none !important; }
      }
      body {
        margin: 0;
        background: var(--bg);
        color: var(--ink);
        font-family: "Source Sans 3", system-ui, sans-serif;
        font-size: 1.0625rem;
        line-height: 1.6;
      }
      h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; }
      img { display: block; max-width: 100%; }
      a { color: var(--gold); }
      :focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; border-radius: 4px; }

      .wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

      /* ---------- Top bar ---------- */
      .topbar {
        position: sticky; top: 0; z-index: 20;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
      }
      .topbar-in {
        display: flex; align-items: center; gap: 18px;
        min-height: 64px;
      }
      .wordmark {
        font-family: "Cormorant Garamond", Georgia, serif;
        font-weight: 700; font-size: 1.65rem; letter-spacing: 0.14em;
        color: var(--ink); text-decoration: none; line-height: 1;
        padding: 10px 0;
      }
      .wordmark span { color: var(--gold); }
      nav.mainnav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
      nav.mainnav a {
        color: var(--ink-soft); text-decoration: none; font-weight: 600;
        font-size: 0.98rem; padding: 10px 12px; border-radius: 6px;
        display: inline-flex; align-items: center; min-height: 40px;
      }
      nav.mainnav a:hover { color: var(--ink); background: var(--gold-soft); }
      .btn {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        min-height: 46px; padding: 10px 24px; border-radius: 999px;
        font-weight: 700; font-size: 1rem; text-decoration: none;
        border: 1.5px solid transparent; cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease;
      }
      .btn-gold { background: var(--gold); color: #fff; }
      .btn-gold:hover { background: var(--gold-bright); }
      .btn-outline { border-color: var(--on-navy-soft); color: var(--on-navy); background: transparent; }
      .btn-outline:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
      .btn-navy { background: var(--navy); color: #fff; }
      .btn-navy:hover { background: var(--navy-deep); }
      .topbar .btn { min-height: 42px; padding: 8px 20px; }

      /* ---------- Hero ---------- */
      .hero {
        background: var(--navy-deep);
        color: var(--on-navy);
        text-align: center;
        padding: 76px 0 84px;
      }
      .hero .verse-line {
        font-family: "Cormorant Garamond", Georgia, serif;
        font-style: italic; font-size: 1.25rem; color: var(--gold-bright);
        margin: 0 auto 10px; max-width: 640px;
      }
      .hero .verse-ref { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-navy-soft); margin: 0 0 30px; }
      .rule-ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 30px; }
      .rule-ornament::before, .rule-ornament::after {
        content: ""; height: 1px; width: 72px;
        background: linear-gradient(to right, transparent, var(--gold));
      }
      .rule-ornament::after { background: linear-gradient(to left, transparent, var(--gold)); }
      .rule-ornament i { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); display: block; }
      .hero h1 {
        font-size: 2.9rem; line-height: 1.08; font-weight: 600;
        margin: 0 auto 20px; max-width: 720px;
      }
      .hero p.lede { max-width: 640px; margin: 0 auto 34px; color: var(--on-navy-soft); font-size: 1.13rem; }
      .hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
      .hero .trio-names {
        margin: 44px auto 0; display: flex; gap: 10px 28px; justify-content: center; flex-wrap: wrap;
        font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.12rem; color: var(--on-navy);
      }
      .hero .trio-names span::before { content: "✦"; color: var(--gold); margin-right: 10px; font-size: 0.8em; }
      .hero .trio-names span:first-child::before { content: ""; margin: 0; }

      /* ---------- Sections ---------- */
      section { padding: 76px 0; }
      section[id], .media-group[id] { scroll-margin-top: 84px; }
      .sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
      .sec-label {
        font-size: 0.82rem; font-weight: 700; letter-spacing: 0.26em;
        text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
      }
      .sec-head h2 { font-size: 2.3rem; line-height: 1.12; margin: 0 0 14px; font-weight: 600; }
      .sec-head p { color: var(--ink-soft); margin: 0; }

      /* Devotions */
      .devotions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
      .devotion {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
        display: flex; flex-direction: column;
      }
      .devotion figure { margin: 0; padding: 18px 18px 0; }
      .devotion figure img {
        width: 100%; height: 460px; object-fit: cover; object-position: center 15%;
        border-radius: 170px 170px 8px 8px;
      }
      .devotion .body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
      .devotion h3 { font-size: 1.55rem; margin: 0; line-height: 1.15; font-weight: 600; }
      .devotion .feast { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0; }
      .devotion p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; }
      .devotion blockquote {
        margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line);
        font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
        font-size: 1.14rem; line-height: 1.4; color: var(--ink);
      }
      .devotion .practice {
        margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--ink);
      }
      .devotion .practice b { color: var(--gold); font-weight: 700; }

      /* Verse band */
      .verse-band {
        position: relative; color: #fff; text-align: center;
        padding: 96px 0; overflow: hidden; isolation: isolate;
      }
      .verse-band::before {
        content: ""; position: absolute; inset: 0; z-index: -2;
        background: url("images/candles.jpg") center 62% / cover no-repeat;
      }
      .verse-band::after {
        content: ""; position: absolute; inset: 0; z-index: -1;
        background: rgba(9, 18, 38, 0.74);
      }
      .verse-band blockquote {
        margin: 0 auto; max-width: 780px;
        font-family: "Cormorant Garamond", Georgia, serif;
        font-size: 1.9rem; line-height: 1.35; font-weight: 500;
      }
      .verse-band cite { display: block; margin-top: 18px; font-style: normal; font-family: "Source Sans 3", sans-serif; font-size: 0.9rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-bright); }

      /* Projects */
      .media-group { margin-bottom: 56px; }
      .media-group:last-child { margin-bottom: 0; }
      .media-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
      .media-head h3 { font-size: 1.8rem; margin: 0; font-weight: 600; }
      .media-head .media-sub { color: var(--ink-soft); margin: 0; }
      .media-head .media-icon {
        width: 44px; height: 44px; flex: none; align-self: center;
        border: 1px solid var(--line); border-radius: 50%;
        display: grid; place-items: center; background: var(--surface); color: var(--gold);
      }
      .projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
      .project {
        background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
        padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 8px;
      }
      .project h4 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; margin: 0; line-height: 1.2; font-weight: 600; }
      .project p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
      .project .tag {
        margin-top: auto; padding-top: 10px;
        font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
      }
      .project a.more { font-weight: 700; text-decoration: none; }
      .project a.more:hover { text-decoration: underline; }

      .feature {
        grid-column: 1 / -1;
        display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
        background: var(--navy-band); color: var(--on-navy);
        border-radius: 14px; overflow: hidden; border: 1px solid var(--navy);
      }
      .feature .f-body { padding: 32px 34px; display: flex; flex-direction: column; gap: 10px; }
      .feature h4 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.8rem; margin: 0; font-weight: 600; line-height: 1.15; }
      .feature p { margin: 0; color: var(--on-navy-soft); }
      .feature .f-actions { margin-top: auto; padding-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
      .feature .f-side {
        border-left: 1px solid rgba(242, 236, 220, 0.16);
        padding: 32px 34px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
        background: rgba(255, 255, 255, 0.03);
      }
      .feature .f-side .day { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); margin: 0; }
      .feature .f-side blockquote { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.28rem; line-height: 1.45; }
      .feature .f-side cite { font-style: normal; font-family: "Source Sans 3", sans-serif; font-size: 0.88rem; color: var(--on-navy-soft); }
      .sample-reading { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(242,236,220,0.16); }
      .sample-reading.open { display: block; }
      .sample-reading p { font-size: 0.98rem; }
      .sample-reading .ref { color: var(--gold-bright); font-weight: 600; }

      /* Support */
      .support { background: var(--navy-deep); color: var(--on-navy); }
      .support .sec-head h2 { color: var(--on-navy); }
      .support .sec-head p { color: var(--on-navy-soft); }
      .support .sec-label { color: var(--gold-bright); }
      .support-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; align-items: stretch; }
      .give-panel, .candle-panel {
        border: 1px solid rgba(242, 236, 220, 0.18); border-radius: 14px;
        padding: 30px; background: rgba(255, 255, 255, 0.03);
      }
      .give-panel h3, .candle-panel h3 { font-size: 1.5rem; margin: 0 0 6px; font-weight: 600; }
      .give-panel p, .candle-panel p { color: var(--on-navy-soft); margin: 0 0 18px; font-size: 0.98rem; }
      .freq-row { display: flex; gap: 10px; margin-bottom: 14px; }
      .amount-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
      .chip {
        min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
        border: 1.5px solid rgba(242, 236, 220, 0.35); background: transparent;
        color: var(--on-navy); font: inherit; font-weight: 700; font-size: 0.98rem;
      }
      .chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
      .impact {
        border-top: 1px solid rgba(242, 236, 220, 0.16); padding-top: 16px;
        font-family: "Cormorant Garamond", Georgia, serif; font-style: italic;
        font-size: 1.22rem; line-height: 1.4; margin: 0 0 20px; min-height: 3.4em;
      }
      .tax-note { font-size: 0.86rem; color: var(--on-navy-soft); margin: 14px 0 0; }
      .candle-panel { text-align: center; display: flex; flex-direction: column; align-items: center; }
      .candle-stage { height: 170px; display: flex; align-items: flex-end; justify-content: center; margin: 6px 0 14px; }
      .flame {
        opacity: 0; transform: scale(0.4); transform-origin: 50% 100%;
        transition: opacity 0.5s ease, transform 0.5s ease;
      }
      .candle-panel.lit .flame { opacity: 1; transform: scale(1); animation: flicker 1.6s ease-in-out infinite alternate; }
      @keyframes flicker {
        from { transform: scale(1) rotate(-1.6deg); }
        to { transform: scale(1.05) rotate(1.6deg); }
      }
      .candle-status { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15rem; margin: 0 0 18px; min-height: 1.6em; }

      /* Footer */
      footer { background: var(--navy-deep); color: var(--on-navy-soft); border-top: 1px solid rgba(242,236,220,0.14); }
      .footer-in { padding: 46px 0 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
      footer .wordmark { color: var(--on-navy); padding: 0; }
      footer p { margin: 10px 0 0; font-size: 0.95rem; max-width: 340px; }
      footer h5 { font-family: "Source Sans 3", sans-serif; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-bright); margin: 6px 0 12px; }
      footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
      footer ul a { color: var(--on-navy-soft); text-decoration: none; padding: 6px 0; display: inline-block; min-height: 32px; }
      footer ul a:hover { color: var(--on-navy); }
      .footer-bottom {
        border-top: 1px solid rgba(242, 236, 220, 0.14);
        padding: 18px 0 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between;
        font-size: 0.88rem;
      }
      .footer-bottom .gloria { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.02rem; color: var(--gold-bright); }

      @media (max-width: 900px) {
        .devotions, .projects { grid-template-columns: 1fr; }
        .feature { grid-template-columns: 1fr; }
        .feature .f-side { border-left: none; border-top: 1px solid rgba(242,236,220,0.16); }
        .support-grid { grid-template-columns: 1fr; }
        .footer-in { grid-template-columns: 1fr; }
        .hero h1 { font-size: 2.25rem; }
        .verse-band blockquote { font-size: 1.5rem; }
        section { padding: 56px 0; }
        .hero { padding: 56px 0 64px; }
        .devotion figure img { height: 400px; }
        nav.mainnav { display: none; }
        .topbar-in { justify-content: space-between; }
        .hero .trio-names { flex-direction: column; gap: 6px; align-items: center; }
        .hero .trio-names span::before { content: ""; margin: 0; }
      }
    
/* ---------- Shared subpages (same navy/gold system) ---------- */
.page-hero { background: var(--navy-deep); color: var(--on-navy); text-align: center; padding: 64px 0 60px; }
.page-hero .sec-label { color: var(--gold-bright); }
.page-hero h1 { font-size: 2.6rem; line-height: 1.1; font-weight: 600; margin: 0 auto 14px; max-width: 760px; }
.page-hero p.lede { max-width: 640px; margin: 0 auto; color: var(--on-navy-soft); font-size: 1.13rem; }
.page { padding: 56px 0 76px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.9rem; line-height: 1.2; font-weight: 600; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.4rem; font-weight: 600; margin: 32px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 16px; }
.prose p.lead { color: var(--ink); font-size: 1.15rem; }
.prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--gold); background: var(--gold-soft); font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.prose blockquote cite { display: block; margin-top: 10px; font-style: normal; font-family: "Source Sans 3", sans-serif; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.prose ul { color: var(--ink-soft); margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.prose .btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.prose .btn-outline-navy:hover { border-color: var(--gold); color: var(--gold); }
.prose figure.post-img { margin: 0 0 28px; }
.prose figure.post-img img { width: 100%; max-height: 420px; object-fit: cover; object-position: center 15%; border-radius: 170px 170px 12px 12px; }
.prose .post-meta { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.prose .notice { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 16px 20px; font-size: 0.95rem; margin: 28px 0; }
.prose .notice b { color: var(--ink); }
.post-list { display: grid; gap: 22px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.7rem; margin: 0 0 6px; line-height: 1.2; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--gold); }
.post-card p { color: var(--ink-soft); margin: 0 0 12px; }
.site-nav-strip { border-top: 1px solid rgba(242,236,220,0.14); padding: 20px 0 4px; display: flex; gap: 8px 26px; flex-wrap: wrap; justify-content: center; }
.site-nav-strip a { color: var(--on-navy-soft); text-decoration: none; font-weight: 600; padding: 6px 0; }
.site-nav-strip a:hover { color: var(--on-navy); }
.site-nav-strip a[aria-current="page"] { color: var(--gold-bright); }
.give-cta { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.give-cta .alt-link { color: var(--on-navy-soft); font-size: 0.95rem; }
@media (max-width: 900px) {
  .page-hero h1 { font-size: 2.1rem; }
  nav.mainnav.sitenav { display: flex; flex-basis: 100%; order: 3; padding-bottom: 10px; }
  .topbar-in { flex-wrap: wrap; }
}
