:root {
  color-scheme: light;
  --ink: #172b3b;
  --muted: #536574;
  --navy: #173d52;
  --blue: #28677b;
  --gold: #d49a36;
  --paper: #f5f3ed;
  --white: #fff;
  --line: #d9e0df;
  --shadow: 0 16px 44px rgba(23, 43, 59, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, audio:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner, .content-wrap, .footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a {
  border-radius: 999px;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 650;
  padding: 9px 14px;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: #eaf1f1;
  color: var(--navy);
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  align-items: end;
  background: var(--navy);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 39, 53, .88), rgba(13, 39, 53, .18)),
    url("index_image298.jpg") center 48% / cover no-repeat;
}
.hero-copy {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 54px;
}
.eyebrow {
  margin: 0 0 12px;
  color: #f2c66f;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.hero p:last-child { max-width: 590px; margin: 17px 0 0; color: #e9f0ef; font-size: 1.08rem; }
.content-wrap { padding-block: 62px 72px; }
.section-heading { max-width: 680px; margin-bottom: 30px; }
.section-heading h1, .section-heading h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.welcome-grid, .contact-grid, .two-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 0 0 12px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.scripture-card { border-top: 4px solid var(--gold); }
.scripture-verse { color: var(--ink) !important; font-family: Georgia, serif; font-size: 1.18rem; }
.scripture-reference { margin-top: 16px !important; color: var(--navy) !important; font-weight: 750; }
.photo-card { padding: 0; overflow: hidden; }
.photo-card img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.service-strip {
  margin-top: 28px;
  padding: 24px;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
}
.service-strip h2 { margin: 0 0 14px; font-size: 1.45rem; }
.service-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-time { padding: 12px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; }
.service-time strong, .service-time span { display: block; }
.service-time span { color: #dce8e7; font-size: .95rem; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.button-link:hover { background: var(--blue); color: #fff; }
.calendar-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.calendar-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.map-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.map-frame iframe { display: block; width: 100%; min-height: 330px; border: 0; }
.contact-details { list-style: none; margin: 0; padding: 0; }
.contact-details li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: 0; }
.contact-details strong { display: block; }
.contact-details a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sermon-card { display: flex; flex-direction: column; align-items: flex-start; }
.sermon-card .button-link { margin-top: auto; }
.sermon-meta { color: var(--muted); font-size: .92rem; }
.sermon-list { display: grid; gap: 14px; }
.sermon-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}
.night-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf2ef;
  color: var(--navy);
  font-weight: 800;
}
.sermon-item h2 { margin: 0 0 5px; font-size: 1.28rem; }
.sermon-item p { margin: 0 0 12px; color: var(--muted); }
.sermon-item audio { display: block; width: min(100%, 560px); }
.placeholder-note { margin-top: 18px; color: var(--muted); font-size: .92rem; }
.site-footer { background: #102f40; color: #e7efef; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; }
.footer-inner p { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { color: #e7efef; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 16px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 11px; }
  .hero { min-height: 330px; }
  .hero-copy { padding-block: 54px 40px; }
  .welcome-grid, .contact-grid, .two-cards { grid-template-columns: 1fr; }
  .service-times { grid-template-columns: 1fr; }
  .content-wrap { padding-block: 42px 54px; }
  .calendar-frame iframe { height: 620px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
