:root {
  --ink: #1c2430;
  --ink-soft: #3d4a59;
  --navy: #163e66;
  --blue: #1d6aa8;
  --blue-deep: #154e7c;
  --sky: #e7f3fb;
  --sky-deep: #d3e7f6;
  --paper: #f6f3ee;
  --white: #ffffff;
  --red: #b43333;
  --cross-blue: #3d5694;
  --line: rgba(22, 62, 102, 0.14);
  --shadow: 0 18px 46px rgba(22, 46, 72, 0.14);
  --wrap: 1120px;
  --header: 7.4rem;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue-deep);
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  color: var(--navy);
}

h1 {
  margin: 0;
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  margin: 0;
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.topbar a:hover {
  color: #f3d0d0;
}

.topbar-inner,
.footer-inner,
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-inner {
  min-height: 2.4rem;
}

.topbar p {
  margin: 0;
}

.nav-inner {
  position: relative;
  min-height: 4.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.crosses {
  width: 3.1rem;
  height: auto;
  flex: none;
}

.cross-side {
  fill: var(--cross-blue);
}

.cross-main,
.cross-drop {
  fill: var(--red);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 660;
  font-style: italic;
  color: var(--blue);
}

.brand-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

#site-nav {
  display: flex;
  gap: 1.35rem;
}

#site-nav a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

#site-nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.05rem;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.hero {
  background:
    radial-gradient(ellipse at 85% 0%, #ffffff 0%, transparent 46%),
    linear-gradient(180deg, #f7fbfe 0%, var(--sky) 70%, #f8f5f0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

.h1-name,
.h1-kind {
  display: block;
}

.h1-name {
  font-size: clamp(3.4rem, 7vw, 5.5rem);
  font-style: italic;
  font-weight: 560;
  color: #1f6eae;
  letter-spacing: -0.035em;
}

.h1-kind {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.lede {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--red);
  box-shadow: inset 0 0 0 2px var(--red);
}

.verse {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--red);
}

.verse blockquote {
  margin: 0;
}

.verse p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--navy);
}

.verse figcaption {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.sign-frame {
  margin: 0;
  padding: 0.7rem;
  background: var(--white);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.sign-frame img {
  display: block;
  width: 100%;
  border-radius: 0.6rem;
}

.services {
  background: var(--sky);
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.times {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.times li {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 10px 28px rgba(22, 46, 72, 0.06);
}

.times li.time-main {
  background: var(--navy);
}

.time-main .day,
.time-main h3,
.time-main .time {
  color: var(--white);
}

.day {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.time {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--navy);
}

.sermons {
  padding: 4.5rem 0;
  background: var(--white);
}

.sermons-grid,
.pastor-grid,
.visit-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.sermons-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
}

.text-links {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.text-links a,
.text-link {
  font-weight: 700;
}

.player {
  background: var(--paper);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.player iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.7rem;
  background: var(--white);
}

.pastor {
  background: var(--paper);
  padding: 4.5rem 0;
}

.pastor-grid {
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  align-items: start;
}

.portrait {
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.portrait figcaption {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}

.visit {
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--sky) 100%);
}

.visit-grid {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.visit-card {
  background: var(--white);
  border-radius: 1.15rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.building-cameo {
  margin: 0 0 1.1rem;
  aspect-ratio: 478 / 310;
  border-radius: 50%;
  overflow: hidden;
  background: #c5d8ea;
  box-shadow: inset 0 0 0 8px var(--white), 0 10px 24px rgba(22, 46, 72, 0.12);
}

.building-cameo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.24);
  object-position: center 42%;
}

address {
  font-style: normal;
  margin-bottom: 1rem;
}

address strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.contact-list a {
  font-weight: 700;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.site-footer {
  background: var(--navy);
  color: #e7eef5;
  padding: 2rem 0;
}

.footer-name {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f3d0d0;
}

.copyright {
  font-size: 0.95rem;
  color: #c5d4e4;
}

section[id] {
  scroll-margin-top: var(--header);
}

@media (max-width: 900px) {
  .times {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid,
  .sermons-grid,
  .pastor-grid,
  .visit-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .sermons-grid,
  .pastor-grid,
  .visit-grid {
    display: grid;
  }

  .footer-inner {
    display: grid;
    justify-items: start;
  }

  .sign-frame {
    order: -1;
  }
}

@media (max-width: 760px) {
  :root {
    --header: 6.6rem;
  }

  .topbar-inner p {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    box-shadow: var(--shadow);
  }

  #site-nav.is-open,
  .no-js #site-nav {
    display: flex;
  }

  .no-js .nav-toggle {
    display: none;
  }

  #site-nav a {
    padding: 0.75rem 0.8rem;
    border-radius: 0.6rem;
  }

  #site-nav a:hover {
    background: var(--sky);
  }

  .times {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 2rem;
  }

  .h1-name {
    font-size: 3.1rem;
  }
}

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

@media print {
  .site-header,
  .hero-actions,
  .player,
  .map,
  .nav-toggle {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
