:root {
  --ink: #18233a;
  --muted: #535a69;
  --paper: #f8f5ee;
  --white: #fffdf8;
  --line: #ded7ca;
  --blue: #202e5b;
  --rose: #933e60;
  --pink: #efc4ce;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; }
h2 { font-size: clamp(2.35rem, 5vw, 4.1rem); letter-spacing: -.053em; }
.wrap { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 4; background: white; padding: .6rem 1rem; transform: translateY(-250%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid #a44f70; outline-offset: 4px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.header-inner { min-height: 79px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font: 1.4rem/1 var(--serif); white-space: nowrap; }
.brand img { object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(9px, 2.7vw, 34px); }
nav a { text-decoration: none; font-size: .88rem; font-weight: 650; padding-block: .3rem; }
nav a:hover, nav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4rem; }
.site-header nav a[aria-current=page] { color: var(--rose); }
.hero { padding-block: clamp(19px, 3.1vw, 44px) 0; }
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; background: linear-gradient(130deg, #1d2c57 10%, #3d3669 60%, #753d61); color: #fff; }
.hero-copy { padding: clamp(28px, 5.4vw, 76px) clamp(25px, 4.3vw, 65px); align-self: center; }
.eyebrow { font-size: .73rem; font-weight: 750; text-transform: uppercase; letter-spacing: .16em; }
.hero .eyebrow { color: #ffd4df; }
.hero h1 { margin-block: .19em .2em; font-size: clamp(3.2rem, 6.45vw, 6.4rem); letter-spacing: -.071em; line-height: .91; }
.hero h1 em { display: block; color: #f4c8d2; font-weight: 400; }
.hero-intro { max-width: 25rem; color: #fbf2f9; font-size: clamp(1rem, 1.55vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: .65rem .85rem; border: 1px solid #fbe8eb; border-radius: 4px; background: #fbe8eb; color: #2a2344; white-space: nowrap; text-decoration: none; font-size: .88rem; font-weight: 750; }
.button:hover { background: #fff; }
.button.secondary { color: #fff; background: transparent; border-color: #e8cddd; }
.button.secondary:hover { background: #ffffff20; }
.button span, .text-link span, .sunday a span { font: 1.5em/1 var(--serif); }
.hero-figure { margin: 0; display: grid; align-content: center; background: #2a2a51; padding: clamp(12px, 2.1vw, 27px); gap: 9px; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-figure figcaption { color: #f2dce8; font-size: .79rem; }
.sunday-inner { display: grid; grid-template-columns: 1.12fr 1fr auto; align-items: center; gap: 16px; min-height: 95px; padding: 14px clamp(22px, 4.4vw, 65px); background: var(--pink); }
.sunday .eyebrow { color: #652e48; }
.sunday strong { font: 1.8rem/1.1 var(--serif); }
.sunday p small { display: block; color: #59384e; font-size: .8rem; }
.sunday a { font-size: .9rem; font-weight: 700; text-underline-offset: .23em; }
.section { padding-block: clamp(48px, 7vw, 91px); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5vw; align-items: center; }
.section .eyebrow { color: var(--rose); margin-bottom: .6rem; }
.intro p:not(.eyebrow) { color: var(--muted); max-width: 42rem; font-size: 1.08rem; }
.text-link { color: #77334f; text-decoration: underline; text-underline-offset: .23em; font-weight: 720; }
.intro .text-link { display: inline-block; margin-top: 1rem; }
.locations-band { background: #e9eaf2; }
.section-heading { margin-bottom: clamp(17px, 3vw, 28px); }
.section-heading p { margin-top: .55rem; color: var(--muted); }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.branch { padding: clamp(20px, 3.5vw, 39px); border: 1px solid #d7d6e3; border-radius: 4px; background: var(--white); }
.pin { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 50%; background: #ede8f3; color: var(--rose); }
.pin::before { content: ""; width: .6rem; height: .6rem; margin-top: -.2rem; border: .25rem solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.branch h2 { font-size: clamp(2.1rem, 4vw, 3.15rem); }
.branch address { font-style: normal; color: var(--muted); margin-top: .62rem; }
.phone-list { display: flex; gap: .6rem; flex-wrap: wrap; margin-block: 1.17rem; }
.phone-list a { padding: .42rem .65rem; background: #eeeaf3; border-radius: 4px; text-decoration: none; font-weight: 650; font-variant-numeric: tabular-nums; }
.phone-list a:hover { background: #eddae5; }
.page-head { border-bottom: 1px solid var(--line); background: linear-gradient(105deg,#e6e9f5,#f5d8e0); padding-block: clamp(43px, 7.4vw, 93px); }
.page-head h1 { font-size: clamp(3.15rem, 7vw, 6.55rem); letter-spacing: -.065em; }
.page-head p { color: #424658; max-width: 38rem; margin-top: .8rem; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.schedule { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.schedule li { display: grid; grid-template-columns: .9fr 2fr 1fr; align-items: center; gap: 1rem; padding: 1.35rem clamp(10px, 2vw, 25px); border-bottom: 1px solid var(--line); }
.schedule li:first-child { background: #f1d8e1; }
.schedule strong { font: 1.6rem/1.18 var(--serif); }
.day { color: #73334d; font-weight: 730; }
.time { justify-self: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.help { margin-top: 1.6rem; color: var(--muted); }
.lead { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; background: #e9eaf2; border-radius: 4px; overflow: hidden; }
.lead img { width: 100%; height: 390px; object-fit: cover; object-position: 50% 29%; }
.lead div { align-self: center; padding: clamp(22px, 4.9vw, 66px); }
.team-title { margin: 55px 0 21px; font-size: clamp(2.3rem, 4.2vw, 3.7rem); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.person { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.portrait { aspect-ratio: 1 / 1; background: #eddfec; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait img[src$="/emmanuel.webp"] { object-fit: contain; background: #292849; }
.portrait-placeholder { height: 100%; display: grid; place-items: center; color: #73335e; font: italic 4rem/1 var(--serif); }
.person-label { padding: .95rem; }
.person-label p { color: #77334f; font-size: .8rem; font-weight: 720; }
.person-label h3 { font-size: clamp(1.24rem, 2vw, 1.66rem); margin-top: .25rem; }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: .7rem 1.25rem; flex-wrap: wrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px 16px; }
.gallery-photo { display: block; background: #e6deec; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-photo:hover img { filter: brightness(1.08); }
.gallery-photo img[src$="/church-portrait.webp"] { object-position: 50% 72%; }
.gallery-photo img[src$="/community-portrait.webp"] { object-position: 50% 32%; }
.gallery-photo img[src$="/at-the-pulpit.webp"], .gallery-photo img[src$="/microphone.webp"] { object-position: 50% 39%; }
.gallery-card figcaption { padding-top: .48rem; color: var(--muted); font-size: .86rem; }
.photo-viewer { width: fit-content; max-width: min(calc(100% - 30px), 1040px); max-height: calc(100% - 30px); padding: min(3vw, 19px); border: 0; border-radius: 5px; background: var(--white); color: var(--ink); }
.photo-viewer::backdrop { background: #14172ee6; }
.photo-viewer img { max-height: min(72vh, 800px); margin-inline: auto; object-fit: contain; }
.photo-viewer figcaption { padding-top: .45rem; }
.photo-viewer form { text-align: right; padding-top: .5rem; }
.photo-viewer button { color: white; background: var(--blue); font: 650 .9rem var(--sans); padding: .55rem .9rem; border: none; border-radius: 4px; cursor: pointer; }
.footer { background: #1e284a; color: #fff; }
.footer-inner { min-height: 143px; padding-block: 23px; }
.footer p { color: #e0dbea; font-size: .8rem; margin-top: 4px; }
.footer nav a[aria-current=page] { color: #ffd2df; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 930px) {
  .wrap { width: calc(100% - 54px); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { min-height: auto; padding-block: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .header-inner nav { width: 100%; justify-content: space-between; }
  .header-inner nav a { font-size: clamp(.69rem, 3vw, .87rem); }
  .brand { font-size: 1.25rem; }
  .header-inner .brand img { width: 36px; height: 36px; }
  .hero-inner, .intro, .branch-grid, .lead { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.45rem, 13vw, 5.3rem); }
  .hero-figure { padding: 11px; }
  .sunday-inner { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .sunday-inner a { grid-column: 1 / -1; }
  .sunday strong { font-size: 1.47rem; }
  .intro { gap: .95rem; }
  .schedule li { grid-template-columns: 1fr; gap: .25rem; }
  .time { justify-self: start; }
  .lead img { height: 320px; }
  .team-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .gallery-preview .gallery-card:last-child { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer nav { flex-wrap: wrap; gap: 8px 14px; }
}

/* Church identity and layout */
:root {
  --ink: #17182b;
  --muted: #53536a;
  --paper: #f6f5fa;
  --white: #fff;
  --line: #dddbe9;
  --blue: #24234f;
  --rose: #843c69;
  --pink: #f0daeb;
}
body { font: 1rem/1.65 var(--sans); }
h1, h2, h3 { font-family: var(--sans); font-weight: 690; letter-spacing: -.065em; }
.wrap { width: min(1200px, calc(100% - 88px)); }
body:has(.hero) .site-header { color: white; background: #101023; border-color: #ffffff26; }
.site-header { position: sticky; top: 0; z-index: 5; background: #f6f5faef; backdrop-filter: blur(18px); }
.header-inner { min-height: 70px; }
.brand { font: 690 1.08rem/1.2 var(--sans); letter-spacing: -.04em; }
.site-header nav { gap: clamp(12px, 2.55vw, 34px); }
.site-header nav [aria-current=page], .site-header nav .active { color: #803858; }
body:has(.hero) .site-header nav [aria-current=page], body:has(.hero) .site-header nav .active { color: #ffd7ef; }
.nav-menu { position: relative; }
.nav-menu summary { font-size: .88rem; font-weight: 650; cursor: pointer; list-style: none; white-space: nowrap; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display:inline-block; margin-left: .12rem; transition: transform .25s; }
.nav-menu[open] summary span { transform: rotate(45deg); }
.nav-popover { position: absolute; right: 0; top: calc(100% + 11px); display: grid; min-width: 158px; gap: 3px; padding: 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 14px 35px #16133122; }
.nav-popover a { padding: 7px 10px; border-radius: 8px; }
.nav-popover a:hover { background: #f0eaf5; }
.nav-contact { border: 1px solid currentColor; padding: 4px .8rem; border-radius: 100px; }
.hero { position: relative; min-height: clamp(570px, 76svh, 810px); display: grid; align-items: center; isolation: isolate; overflow: clip; padding: 60px 0 82px; color: white; background: #111126; }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow:hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 37%; }
.hero-art::after { content: ""; position:absolute; inset:0; background: linear-gradient(90deg,#100e25ee 0%,#14112ad4 23%,#25204573 56%,#22183a1c 100%),linear-gradient(0deg,#151029ad,transparent 56%); }
.hero-copy { padding: 0; }
.hero h1 { font-size: clamp(4rem, 9vw, 8rem); font-weight: 680; letter-spacing: -.086em; line-height: .9; margin: .18em 0 .24em; }
.hero h1 em { font-style: normal; font-weight: inherit; color: #f9cbe7; }
.hero-intro { max-width: 31rem; }
.button { border-radius: 999px; min-height: 45px; padding: .6rem 1rem; background: #f6deed; color: #382140; cursor: pointer; }
.button.secondary { color: #322748; border-color: #86759b; }
.button.secondary:hover { background: #ebdff3; }
.hero .button.secondary { color: #fff; background: #201a387a; border-color: #ffffff86; backdrop-filter: blur(13px); }
.hero .button.secondary:hover { background: #4b3e68; }
.hero-down { position: absolute; bottom: 26px; left: 50%; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #ffffff8c; background: #24204175; backdrop-filter: blur(12px); border-radius: 50%; color: white; text-decoration: none; transform: translateX(-50%); font-size: 1.4rem; }
.sunday { background: linear-gradient(105deg,#ede7fb,#f7daea); }
.sunday-inner { background: none; min-height: 102px; padding-inline: 0; }
.sunday strong { font: 670 clamp(1.25rem,2.6vw,1.8rem)/1.15 var(--sans); letter-spacing: -.055em; }
.sunday .eyebrow { color: #773857; }
.section { padding-block: clamp(50px, 7vw, 100px); }
.section-compact { padding-top: 0; }
.intro > div > p:not(.eyebrow), .story-copy p, .profile-description { margin-top: 1rem; }
.feature-image { border-radius: 27px; overflow: hidden; background: #e8e2f2; }
.feature-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.history-layout { display:grid; grid-template-columns: 1.18fr .82fr; gap: clamp(25px, 7vw, 90px); align-items:start; }
.history-layout img { aspect-ratio: 4/5; object-position: 50% 47%; }
.story-copy h3 { font-size: 1.65rem; margin-top: 1.6rem; }
.story-copy p, .profile-description { color: var(--muted); max-width: 44rem; }
.locations-band { background: linear-gradient(115deg,#ecebfa,#f2e9f2); }
.branch { border-radius: 23px; background: #ffffffd9; }
.pin { background: #f4e6f2; }
.phone-list a { border-radius: 9px; }
.page-head { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 90% 10%,#51335c,#22224b 58%,#151630); color: #fff; padding-block: clamp(64px,10vw,145px); }
.page-head h1 { font-family: var(--sans); letter-spacing: -.075em; }
.page-head p { color: #f4e9fb; }
.page-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 38%; z-index:-2; }
.page-head:has(.page-image)::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#17142cf5,#211938ce 47%,#30244875); }
.link-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 15px; margin-top: 1.6rem; }
.link-card { position: relative; border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 1.25rem 2.5rem 1.35rem 1.35rem; text-decoration: none; }
.link-card h3 { font-size:1.37rem; line-height:1.2; }
.link-card p { color: var(--muted); margin-top:.55rem; }
.link-card span { position:absolute; top:1rem; right:1rem; color:var(--rose); font-size: 1.6rem; }
.visit-help { margin-top:2.5rem; }
.schedule li:first-child { background: #eedbec; }
.lead { border-radius: 23px; }
.lead .text-link { display:inline-block; margin-top: .9rem; }
.person, .gallery-photo { border-radius: 18px; }
.person-label h3 { letter-spacing: -.04em; }
.video-feature { max-width: 960px; margin-inline: auto; border-radius: 26px; background: #fff; overflow: hidden; border: 1px solid var(--line); }
.video-feature video { display:block; width: 100%; aspect-ratio: 16/9; background: #131126; }
.video-feature figcaption { padding: clamp(20px,4vw,42px); }
.video-feature figcaption h2 { font-size: clamp(1.9rem,4vw,3.1rem); }
.video-feature figcaption p { margin: .65rem 0 .75rem; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(23px,5.5vw,64px); align-items: start; }
.chat { overflow:hidden; border-radius: 26px; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 47px #22194212; }
.chat-header { display: flex; align-items:center; gap:12px; padding:1.05rem 1.3rem; background:linear-gradient(110deg,#22234a,#49345f); color:white; }
.chat-header h2 { font-size:clamp(1.24rem,3vw,1.58rem); letter-spacing:-.05em; }
.chat-header p { color:#f6ddee; font-size:.82rem; }
.chat-thread { display:grid; justify-items:start; gap:.6rem; padding:1.2rem 1.3rem; background:#f4eff9; }
.chat-thread p { max-width:36rem; background:white; border-radius: 2px 13px 13px; padding:.65rem .8rem; color:#39314c; }
.chat-form { display:grid; gap:.55rem; padding:1.25rem 1.3rem; }
.chat-fields { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; margin-bottom:.35rem; }
.chat-form label { display:grid; gap:.25rem; font-size:.88rem; font-weight:690; min-width:0; }
.chat-form select, .chat-form textarea { border:1px solid #c7c2d4; border-radius:9px; color:var(--ink); padding:.62rem; font:inherit; width:100%; background:#faf8fd; }
.chat-form textarea { resize:vertical; }
.chat-form .button { justify-self:start; background:#24234f; color:white; border-color:#24234f; margin-top:.4rem; }
.chat-form .button:hover { background:#413261; }
.chat-note { font-size:.83rem; color:var(--muted); }
.contact-side { padding-top:.6rem; }
.contact-side h2 { font-size:clamp(1.75rem,3vw,2.65rem); }
.contact-side p { margin-top:.65rem; color:var(--muted); }
.contact-side .text-link { margin-top:1rem; display:inline-block; }
.footer { background:#17172d; }
.footer-inner { align-items:start; padding-block:34px; }
.footer nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 25px; }
@media (prefers-reduced-motion:no-preference) {
  html { scroll-behavior:smooth; }
  .hero-art img { animation: hero-zoom 1.8s cubic-bezier(.2,.68,.19,1) both; }
  .hero-copy > * { animation: enter .85s cubic-bezier(.2,.65,.3,1) both; }
  .hero-copy h1 { animation-delay: 80ms; }
  .hero-copy .hero-intro { animation-delay: 135ms; }
  .hero-copy .actions { animation-delay: 200ms; }
  .page-head .wrap { animation:enter .7s ease-out both; }
  .motion-active [data-reveal].awaiting-view:not(:focus-within) { opacity:0; transform:translateY(22px); }
  .motion-active [data-reveal] { transition:opacity .72s ease, transform .72s cubic-bezier(.2,.65,.3,1); }
  .button, .link-card, .gallery-photo img { transition: transform .25s ease, background-color .25s ease; }
  .link-card:hover, .button:hover { transform:translateY(-3px); }
  .gallery-photo:hover img { transform:scale(1.045); }
}
@keyframes hero-zoom { from { transform:scale(1.085); } to { transform:scale(1); } }
@keyframes enter { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { gap: 8px; }
  .hero { min-height: 610px; align-items:end; }
  .hero-art img { object-position:60% 29%; height:83%; }
  .hero-art::after { background:linear-gradient(0deg,#100f24 7%,#14112ae8 25%,#18142e78 60%,#28204640); }
  .hero h1 { font-size:clamp(3.65rem,13vw,6rem); }
  .hero-down { bottom:15px; }
  .sunday-inner { padding-block:14px; }
  .history-layout,.contact-layout { grid-template-columns:1fr; }
  .history-layout img { aspect-ratio:3/2; object-position:50% 43%; }
}
@media (max-width:690px) {
  .site-header .header-inner { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:9px; padding-block:10px; }
  .site-header .header-inner nav { gap:clamp(7px,2vw,14px); justify-content:space-between; }
  .site-header nav a,.nav-menu summary { font-size:.84rem; }
  .hero-art img { height:70%; }
  .chat-fields { grid-template-columns:1fr; }
  .footer-inner { align-items:start; }
  .footer nav { gap:5px 20px; }
}
.chat-form[hidden] { display: none; }
.no-script { padding: 1rem 1.3rem; }
body:has(.hero) .site-header .nav-popover [aria-current=page] { color: #803858; }
#sunday { scroll-margin-top: 112px; }
@media (max-width: 340px) {
  .footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
