:root {
  --ink: #000;
  --muted: #555;
  --paper: #fff;
  --soft: #f4f4f4;
  --line: #e2e2e2;
  --frame: 10px;
  --radius: 6px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 500; margin-bottom: .9em; }
.mt { margin-top: 1.4em; }

/* Black frame around the page, like the original */
.frame { position: fixed; inset: 0; border: var(--frame) solid #000; pointer-events: none; z-index: 90; }

/* Buttons */
.btn { display: inline-block; min-width: 180px; text-align: center; padding: .85em 1.6em; border-radius: var(--radius); background: #000; color: #fff; border: 2px solid #000; text-decoration: none; font-weight: 500; font-size: 1rem; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #fff; color: #000; }
.btn-outline { background: transparent; color: #000; }
.btn-outline:hover { background: #000; color: #fff; }
.btn-white { background: #fff; color: #000; border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: #000; }
.btn-small { min-width: 0; padding: .55em 1.2em; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.btn-row.center { justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; transition: background .2s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; padding: var(--frame) calc(var(--frame) + 28px) 0; }
.brand { display: block; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { height: 52px; width: auto; }
.brand .logo-light { display: none; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { background: none; border: 0; padding: .5em .8em; color: inherit; text-decoration: none; font-size: .95rem; cursor: pointer; }
.nav-link:hover, .nav-link.active { text-decoration: underline; text-underline-offset: 6px; }
.nav-give { font-weight: 700; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; }

/* Transparent header over a full-bleed hero */
.over-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; color: #fff; }
.over-hero .brand .logo-dark { display: none; }
.over-hero .brand .logo-light { display: block; }
.over-hero .site-header.solid { background: #fff; color: #000; box-shadow: 0 1px 0 var(--line); }
.over-hero .site-header.solid .logo-dark { display: block; }
.over-hero .site-header.solid .logo-light { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-inner { padding: var(--frame) calc(var(--frame) + 12px) 0; min-height: 74px; }
  .brand img { height: 44px; }
  .site-nav { display: none; position: absolute; top: 100%; left: var(--frame); right: var(--frame); background: #fff; color: #000; flex-direction: column; align-items: stretch; padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .site-nav.open { display: flex; }
  .nav-link { text-align: left; padding: .8em .2em; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero { position: relative; min-height: 70vh; display: flex; align-items: flex-end; background: #222 center / cover no-repeat; color: #fff; }
.hero-full { min-height: 100vh; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.7) 100%); }
.hero-inner { position: relative; padding: 0 calc(var(--frame) + 40px) 90px; max-width: 760px; }
.hero h1 { color: #fff; }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: var(--soft); }
.intro { padding: 110px 0 100px; }
.page-top { padding-top: 140px; }
.intro p { font-size: 1.1rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.split-media { position: relative; overflow: hidden; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-text { display: flex; flex-direction: column; justify-content: center; padding: 80px clamp(28px, 6vw, 96px); }
.split.flip .split-media { order: 2; }
.split.no-media { grid-template-columns: 1fr; min-height: 0; }
.split.no-media .split-text { max-width: 760px; margin: 0 auto; text-align: center; align-items: center; }
.split.page-top { padding-top: 0; }
.split.page-top .split-text { padding-top: 140px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split-media { aspect-ratio: 4 / 3; }
  .split.flip .split-media { order: 0; }
  .split-text { padding: 56px 28px; }
  .split.page-top .split-media { margin-top: 74px; }
  .split.page-top .split-text { padding-top: 56px; }
}

/* Two black cards on the home page */
.dark-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #000; }
.dark-card { position: relative; background: #000 center / cover no-repeat; color: #fff; min-height: 520px; display: flex; align-items: center; }
.dark-card::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.dark-card-inner { position: relative; padding: 70px clamp(28px, 5vw, 80px); max-width: 560px; }
.dark-card h2 { color: #fff; }
@media (max-width: 860px) { .dark-duo { grid-template-columns: 1fr; } .dark-card { min-height: 0; } }

/* Photo gallery strip */
.gallery { display: grid; gap: 0; }
.gallery.g4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.gallery.g3 { grid-template-columns: 2fr 1fr 1fr; }
.gallery img { width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 860px) {
  .gallery.g4, .gallery.g3 { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 220px; }
  .gallery img:first-child { grid-column: 1 / -1; height: 280px; }
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 44px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card p:last-child { margin-bottom: 0; }
.verses { color: var(--muted); font-size: .9rem; }

/* Beliefs accordion */
.accordion { max-width: 860px; margin: 48px auto 0; border-top: 1px solid #000; }
details { border-bottom: 1px solid #000; }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 1.35rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; }
details[open] summary::after { content: "\2212"; }
details > p, details > div { padding-bottom: 22px; }

/* People */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 40px; }
.person { text-align: center; }
.person-photo { width: 100%; aspect-ratio: 4 / 5; margin-bottom: 18px; overflow: hidden; background: var(--soft); display: grid; place-items: center; border-radius: var(--radius); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-photo span { font-size: 3rem; }
.person .eyebrow { margin-bottom: .3em; }
.person details { border-bottom: 0; text-align: left; }
.person summary { font-size: 1rem; text-decoration: underline; text-align: center; padding: 10px 0; }
.person summary::after { content: none; }

/* Calendar */
.events { list-style: none; padding: 0; margin: 0; }
.event { display: flex; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid #ccc; }
.event-when { min-width: 110px; font-weight: 700; }
.event h3 { margin-bottom: .15em; font-size: 1.25rem; }
.event p { margin: 0; color: var(--muted); }
.cal-embed { margin-top: 48px; position: relative; padding-top: 75%; }
.cal-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Prose */
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p { font-size: 1.05rem; }

/* Bottom call to action */
.cta { background: #000; color: #fff; padding: 90px 0; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cta-times p { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: .4em; }
.cta .btn { background: #fff; color: #000; border-color: #fff; }
.cta .btn:hover { background: transparent; color: #fff; }
.cta .btn-outline { background: transparent; color: #fff; }
.cta .btn-outline:hover { background: #fff; color: #000; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #000; color: #fff; padding: 20px 0 calc(var(--frame) + 28px); border-top: 1px solid #333; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 40px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links a, .footer-links button { background: none; border: 0; padding: 0; color: #fff; cursor: pointer; text-decoration: none; font-size: 1rem; }
.footer-links a:hover, .footer-links button:hover { text-decoration: underline; }
.site-footer a { color: #fff; }
.copyright { margin-top: 44px; font-size: .85rem; color: #aaa; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Modal + forms */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: #fff; width: min(520px, 100%); max-height: 92vh; overflow: auto; border-radius: 10px; padding: 36px 30px 26px; }
.modal-card h2 { font-size: 2rem; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; }
.site-form label { display: block; font-weight: 500; margin-bottom: 14px; font-size: .95rem; }
.site-form input:not([type=checkbox]), .site-form textarea { display: block; width: 100%; margin-top: 4px; padding: .7em .8em; border: 1px solid #bbb; border-radius: var(--radius); font: inherit; font-size: 1rem; }
.site-form .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.site-form .hp { display: none; }
.form-status { margin-top: 12px; font-weight: 500; }
.form-status.ok { color: #1b7a2e; }
.form-status.err { color: #b3261e; }
