:root {
  --primary: #333632;
  --primary-dark: #242724;
  --primary-soft: #E7E9E5;
  --accent: #42342B;
  --accent-soft: #F5EEDC;
  --highlight: #E3CE99;
  --bg: #F4F5F2;
  --surface: #FFFEFC;
  --text: #262923;
  --muted: #5B605A;
  --line: #D5D9D3;
  --on-primary: #fff;
  --on-accent: #fff;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(36, 39, 36, .08);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --primary: #C9CEC7;
    --primary-dark: #E1E5DD;
    --primary-soft: #282C28;
    --accent: #E3CE99;
    --accent-soft: #332D22;
    --highlight: #E3CE99;
    --bg: #171916;
    --surface: #20231F;
    --text: #F0F1ED;
    --muted: #B6BBB3;
    --line: #383D37;
    --on-primary: #242724;
    --on-accent: #333632;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark
  }
}

:root[data-theme="dark"] {
  --primary: #C9CEC7;
  --primary-dark: #E1E5DD;
  --primary-soft: #282C28;
  --accent: #E3CE99;
  --accent-soft: #332D22;
  --highlight: #E3CE99;
  --bg: #171916;
  --surface: #20231F;
  --text: #F0F1ED;
  --muted: #B6BBB3;
  --line: #383D37;
  --on-primary: #242724;
  --on-accent: #333632;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  color-scheme: dark
}

*,
*::before,
*::after {
  box-sizing: inherit
}

html {
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px);
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--surface);
  z-index: 10
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5em;
  color: var(--primary-dark)
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem)
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem)
}

h3 {
  font-size: 1.1rem
}

p {
  margin: 0 0 1em;
  color: var(--muted)
}

a {
  color: inherit
}

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

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line)
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary-dark)
}

.logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%
}

nav {
  display: flex;
  gap: 6px
}

nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem
}

nav a:hover,
nav a.active {
  background: var(--primary-soft);
  color: var(--primary-dark)
}

@media (min-width:721px) {
  .bar {
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-top: 8px;
    padding-bottom: 8px
  }

  #nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px 6px;
    width: 100%
  }

  #nav a {
    padding: 7px 8px;
    text-align: center;
    line-height: 1.25
  }
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer
}

@media(max-width:720px) {
  .burger {
    display: inline-flex;
    width: auto;
    min-width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    font-size: 1rem
  }

  .burger > span:first-child { font-size: 1.3rem; line-height: 1 }
  .burger-label { font-size: .82rem; font-weight: 600 }

  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    background: var(--surface);
    padding: 10px 20px 16px;
    border-bottom: 1px solid var(--line)
  }

  nav.open {
    display: flex
  }

  nav a {
    padding: 12px 14px
  }

}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #242724, #333632);
  padding: 80px 0 72px;
  text-align: center
}

.hero>.wrap {
  position: relative;
  z-index: 1
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat
}

.hero-bg.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(36, 39, 36, .82), rgba(51, 54, 50, .68))
}

.ph-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  font-size: .72rem;
  color: rgba(255, 255, 255, .65);
  border: 1px dashed rgba(255, 255, 255, .35);
  padding: 4px 10px;
  border-radius: 2px
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr))
}

@media(max-width:720px) {
  .gallery {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 78%);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch
  }
  .gallery .ph { scroll-snap-align: start }
}

.ph {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--primary-soft), var(--primary-soft) 12px, var(--bg) 12px, var(--bg) 24px) center/cover;
  display: grid;
  place-items: center
}

.ph span {
  font-size: .78rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  padding: 4px 10px;
  border-radius: 2px;
  text-align: center
}

.ph.has-img span {
  display: none
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .95rem;
  letter-spacing: .02em;
  font-family: inherit;
  transition: opacity .15s
}

.btn:hover {
  opacity: .88
}

.btn-accent {
  background: var(--accent);
  color: var(--on-accent)
}

.btn-ghost {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: transparent
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.hero h1 {
  color: #fff
}

.hero .tag {
  display: inline-block;
  border: 1px solid var(--highlight);
  color: var(--highlight);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 22px
}

.hero .btn-ghost {
  border-color: var(--highlight);
  color: var(--highlight)
}

.hero .btn-accent,
.cta .btn-accent {
  background: var(--highlight);
  color: #333632
}

.hero p {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: #c9d5df
}

.hero .row {
  justify-content: center
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px
}

section {
  padding: 32px 0
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow)
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))
}

.card p {
  margin: 0;
  font-size: .95rem
}

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
  align-items: center
}

.prayer-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line)
}

.contact-section {
  padding-top: 0
}

.narrow {
  max-width: 680px
}

.muted-label {
  color: var(--muted)
}

.back-link {
  margin-top: 20px
}

.back-link a {
  color: var(--primary)
}

.cta {
  background: var(--primary);
  border-radius: 6px;
  padding: 48px 28px;
  text-align: center
}

.cta h2,
.cta p {
  color: var(--on-primary)
}

.cta p {
  opacity: .9
}

.contact li {
  list-style: none;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted)
}

.contact {
  padding: 0;
  margin: 0
}

.contact b {
  color: var(--text);
  display: block
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px
}

.map-pin {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: var(--accent)
}

.rek {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.rek .no {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .04em
}

.copy {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 0;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit
}

.note {
  background: var(--accent-soft);
  color: var(--text);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: .92rem
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-align: center;
  font-size: .9rem;
  color: var(--muted)
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 40px;
  background: linear-gradient(125deg, var(--primary-dark), var(--primary));
  color: var(--on-primary)
}


.page-hero .wrap { position: relative; z-index: 1 }

.page-hero h1 { margin: 12px 0 8px; color: var(--on-primary) }

.page-hero p { max-width: 560px; margin: 0; color: var(--on-primary); opacity: .82 }

.page-hero .tag {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--highlight);
  border-radius: 3px;
  color: var(--highlight);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase
}


@media(max-width:720px) {
  .page-hero { padding: 32px 0 24px }
}

@media(max-width:540px) {
  .notice-intro { align-items: flex-start; flex-direction: column; gap: 4px }
  .notice-card { padding: 20px 18px }
}
