:root {
  color-scheme: light;
  --cream: #faf7ef;
  --cream-deep: #f2ebdc;
  --navy: #182a40;
  --muted: #5e665f;
  --gold: #826125;
  --line: #dcd3bf;
  --frame-gold: #b29250;
  --soft-gold: rgb(130 97 37 / 72%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--navy); font-family: "Sarabun", "Leelawadee UI", Tahoma, sans-serif; font-size: 16px; line-height: 1.85; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; object-fit: cover; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.5; }
strong { font-weight: 600; }
em { font-style: italic; }
h2 { font-size: clamp(29px, 3.4vw, 42px); }
h3 { font-size: clamp(21px, 2.1vw, 27px); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { color: var(--gold); font-size: 14px; letter-spacing: .04em; }
.little-light { color: var(--gold); }
.section-space { padding-block: 100px; }
.section-heading { max-width: 720px; text-align: center; margin: 0 auto 56px; }
.section-heading h2 { margin: 18px 0 26px; }
.section-heading > p:last-child { color: var(--muted); }
.desktop-break { display: none; }

/* A small fixed invitation stays available throughout the page. */
.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 5; padding: 25px 20px; }
.home-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; max-width: calc(100% - 186px); font-size: 13px; line-height: 1.65; }
.home-link .little-light { font-size: 22px; flex-shrink: 0; }
.sticky-cta { position: fixed; top: max(24px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 10px 18px; white-space: nowrap; border-radius: 30px; background: var(--navy); color: var(--cream); box-shadow: 0 4px 18px #182a4014; font-size: 14px; transition: background .2s, box-shadow .2s; }
.sticky-cta:hover, .button:hover { background: #2c435a; box-shadow: 0 6px 22px #182a4020; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 20; padding: 12px 18px; background: var(--navy); color: var(--cream); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 820px; min-height: max(820px, 100svh); overflow: hidden; padding: 142px 0 116px; text-align: center; }
/* Animate the inner rays independently of the scrolling parallax layer. */
.hero-rays { position: absolute; z-index: -1; inset: -100px -50%; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 70%, transparent 94%); mask-image: linear-gradient(transparent, #000 16%, #000 70%, transparent 94%); }
.hero-rays::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 0deg at 50% 43%, transparent 0deg 62deg, #dfbc6921 63deg 69deg, transparent 72deg 82deg, #dfbc6930 83deg 88deg, transparent 92deg 252deg, #dfbc6929 253deg 261deg, transparent 263deg 282deg, #dfbc6924 283deg 290deg, transparent 292deg), radial-gradient(ellipse at 50% 43%, #edd7a342, transparent 48%); transform-origin: 50% 43%; animation: radiant-breathe 18s ease-in-out infinite alternate; }
@keyframes radiant-breathe {
  from { opacity: .58; transform: rotate(-2deg) scale(.98); }
  to { opacity: .95; transform: rotate(2deg) scale(1.04); }
}
.hero-content { position: relative; }
.hero-content > .eyebrow { margin-bottom: 44px; }
.logo-halo { position: relative; width: 224px; margin: 0 auto 42px; padding: 10px; border: 1px solid #cbb58180; border-radius: 50%; box-shadow: 0 0 0 13px #e5d6b526, 0 18px 60px #b6954a12; }
.hero-logo { width: 100%; height: auto; border-radius: 50%; }
h1 { font-size: clamp(27px, 3.3vw, 43px); line-height: 1.5; }
h1 span { display: block; }
.gold-rule { width: 42px; height: 1px; background: var(--gold); margin: 32px auto; }
.tagline { max-width: 700px; margin-inline: auto; font-size: clamp(18px, 2vw, 23px); line-height: 1.9; text-wrap: balance; }
.scroll-cue { position: absolute; bottom: 28px; display: grid; place-items: center; width: 48px; height: 48px; color: var(--gold); border: 1px solid #cbb58170; border-radius: 50%; transition: background .2s; }
.scroll-cue:hover { background: #ead9b547; }

.scripture { position: relative; isolation: isolate; overflow: hidden; padding-block: 108px; text-align: center; }
.scripture-rest { background: linear-gradient(var(--cream), #f5f0e5 28%, #f5f0e5 70%, var(--cream)); }
.section-mark { display: flex; align-items: center; justify-content: center; gap: 20px; color: var(--gold); margin-bottom: 42px; font-size: 22px; }
.section-mark span { width: 48px; height: 1px; background: #c8ad755e; }
.verse { max-width: 810px; margin-inline: auto; }
.verse p { font-size: clamp(23px, 2.65vw, 32px); font-weight: 400; line-height: 1.95; text-wrap: pretty; }
.verse cite { display: block; margin-top: 38px; color: var(--soft-gold); font-size: clamp(20px, 2.2vw, 26px); font-style: normal; font-weight: 400; }
.scripture-love { background: linear-gradient(var(--cream), var(--cream-deep) 26%, var(--cream-deep) 72%, var(--cream)); }
.verse-rays { -webkit-mask-image: linear-gradient(transparent 8%, #000 30%, #000 65%, transparent 92%); mask-image: linear-gradient(transparent 8%, #000 30%, #000 65%, transparent 92%); position: absolute; inset: 0 -60%; z-index: -1; background: conic-gradient(from 0deg at 50% 110%, transparent 0deg 304deg, #d8b65f16 305deg 322deg, transparent 323deg 337deg, #d8b65f1f 338deg 345deg, transparent 346deg); will-change: transform; }

/* The cream mat, fine inset line and shared scrollwork frame every content photo. */
.ornament-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.photo-frame { position: relative; isolation: isolate; padding: 10px; border: 1px solid var(--frame-gold); border-radius: 3px; background: linear-gradient(135deg, #fbf6e9, #f0e5cd 52%, #fbf6e9); box-shadow: 0 14px 38px -24px #82612545; }
.photo-frame::after { content: ""; position: absolute; inset: 5px; border: 1px solid #b2925073; border-radius: 1px; pointer-events: none; }
.photo-frame > img { width: 100%; height: auto; border-radius: 1px; }
.photo-corner { position: absolute; z-index: 1; width: clamp(48px, 6vw, 66px); height: auto; aspect-ratio: 1; color: #ba9650; stroke-width: 1.15; filter: drop-shadow(0 0 1px #fff4d9); pointer-events: none; }
.corner-tl { top: 0; left: 0; }
.corner-tr { top: 0; right: 0; transform: rotate(90deg); }
.corner-bl { bottom: 0; left: 0; transform: rotate(-90deg); }
.corner-br { bottom: 0; right: 0; transform: rotate(180deg); }
.community-photo { margin-bottom: 64px; }
.photo-window { overflow: hidden; border-radius: 1px; background: var(--cream-deep); }
.photo-window img { width: 100%; height: 340px; height: clamp(280px, 48vw, 540px); object-position: 50% 52%; transform: scale(1.08); }
.community-photo figcaption { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 26px; color: var(--muted); font-size: 14px; }
.photo-grid { display: grid; gap: 60px; }
.photo-story .photo-frame > img { aspect-ratio: 4 / 3; }
.photo-story .preaching-photo { object-position: center 45%; }
.story-copy { padding-top: 30px; }
.story-copy .eyebrow { margin-bottom: 12px; }
.story-copy h3 { margin-bottom: 16px; }
.story-copy > p:last-child { color: var(--muted); font-size: 15px; }

.visit-photo { max-width: 920px; margin: 0 auto 54px; }
.visit-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: center; border-radius: 2px; }
.visit-details { display: grid; background: linear-gradient(90deg, transparent, #dcd3bf90, transparent) top / 100% 1px no-repeat, linear-gradient(90deg, transparent, #dcd3bf90, transparent) bottom / 100% 1px no-repeat; }
.schedule, .location { padding: 40px 0; }
.visit-details h3 { font-size: 19px; margin-bottom: 23px; }
.service { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.service + .service { margin-top: 18px; }
.service > p:first-child { font-size: 15px; color: var(--muted); }
.time { font-size: clamp(28px, 4vw, 38px); line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.time span { font-size: 14px; color: var(--muted); }
.location { background: linear-gradient(90deg, transparent, #dcd3bf90, transparent) top / 100% 1px no-repeat; }
address { max-width: 360px; font-style: normal; }
.map-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; margin-top: 12px; font-size: 15px; border-bottom: 1px solid var(--gold); }
.map-link:hover { color: var(--gold); }
.map-link svg { width: 18px; }
.phone { margin-top: 26px; font-size: 14px; color: var(--muted); }
.phone span { color: var(--navy); white-space: nowrap; margin-left: 12px; }
.contact-action { text-align: center; margin-top: 56px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 56px; padding: 15px 29px; background: var(--navy); color: var(--cream); border-radius: 30px; transition: background .2s, box-shadow .2s; }
.contact-action p { font-size: 14px; color: var(--muted); margin-top: 18px; }
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-block: 40px; background: linear-gradient(90deg, transparent, #dcd3bf90, transparent) top / 100% 1px no-repeat; text-align: center; font-size: 12px; color: var(--muted); }
.site-footer .little-light { font-size: 20px; }
.site-footer a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }

/* Content is visible by default, including when JavaScript is unavailable. */
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.2,.65,.3,1); }

@media (min-width: 640px) {
  .wrap { width: min(1080px, calc(100% - 80px)); }
  .site-header { padding: 28px 40px; }
  .home-link { font-size: 14px; }
  .sticky-cta { top: max(28px, env(safe-area-inset-top)); right: max(40px, env(safe-area-inset-right)); }
  .hero { min-height: max(920px, 100svh); padding-top: 148px; }
  .logo-halo { width: 284px; padding: 12px; margin-bottom: 48px; }
  .hero-content > .eyebrow { margin-bottom: 50px; }
  .desktop-break { display: initial; }
  .section-space { padding-block: 132px; }
  .section-heading { margin-bottom: 68px; }
  .scripture { padding-block: 140px; }
  .photo-frame { padding: 13px; }
  .community-photo { margin-bottom: 84px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .photo-story .photo-frame > img { aspect-ratio: 1.2; }
  .visit-details { grid-template-columns: 1fr 1fr; }
  .schedule { padding: 48px 36px 48px 0; }
  .location { padding: 48px 0 48px 36px; background: linear-gradient(transparent, #dcd3bf90, transparent) left / 1px 100% no-repeat; }
  .site-footer { flex-direction: row; gap: 15px; text-align: left; }
  .site-footer a { margin-left: auto; }
}

@media (min-width: 1000px) {
  .site-header { padding-inline: 60px; }
  .sticky-cta { right: max(60px, env(safe-area-inset-right)); }
  .hero { min-height: max(940px, 100svh); }
  .section-space { padding-block: 152px; }
  .scripture { padding-block: 160px; }
  .photo-grid { gap: 64px; }
  .photo-story .photo-frame > img { aspect-ratio: 1.45; }
  .visit-details { max-width: 920px; margin-inline: auto; }
  .schedule { padding-right: 60px; }
  .location { padding-left: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .hero-rays, .verse-rays { transform: none !important; }
  .photo-window img { transform: none !important; }
}

@media print {
  .site-header, .scroll-cue, .skip-link, .site-footer a { display: none; }
  .hero { min-height: auto; padding-block: 40px; }
  .section-space, .scripture { padding-block: 30px; }
  .reveal.is-pending { opacity: 1; transform: none; }
}
