:root {
  --bg: #f4efe6;
  --ink: #3f3a33;
  --pine: #5c5349;
  --taupe: #5c5349;
  --pine-soft: #6d6458;
  --gold: #c9b056;
  --burgundy: #4f1014;
  --cream: #f7f3ea;
  --muted: #6d6458;
  --line: #e4d8c4;
  --font: "Figtree", system-ui, sans-serif;
  --heading: "Source Serif 4", Georgia, serif;
  --page-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 115%;
}

@media (min-width: 1440px) {
  :root {
    --page-max: min(92vw, 1400px);
  }
}

@media (min-width: 1920px) {
  html {
    font-size: 143.75%;
  }

  :root {
    --page-max: min(90vw, 1800px);
  }

  .brand img {
    width: 3.5rem;
    height: 3.5rem;
  }

  .brand-name {
    font-size: 1.55rem;
  }

  .brand-tagline {
    font-size: 0.78rem;
  }

  .nav-desktop a {
    font-size: 1.05rem;
    padding: 0.5rem 0.9rem;
  }
}

@media (min-width: 2560px) {
  :root {
    --page-max: min(90vw, 2400px);
  }
}

@media (min-width: 3200px) {
  :root {
    --page-max: min(88vw, 3200px);
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

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

a {
  color: var(--gold);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  width: 100%;
}

.brand {
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand > span {
  min-width: 0;
  overflow: hidden;
}

.brand-name {
  display: block;
  font-family: var(--heading);
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1.2;
  font-optical-sizing: auto;
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.nav-desktop {
  margin-left: auto;
}

.nav-desktop ul,
.nav-mobile ul,
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.nav-desktop a:hover,
.nav-desktop .current-menu-item a {
  background: color-mix(in srgb, var(--pine) 12%, white);
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 0.6rem;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.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;
}

.nav-mobile {
  border-top: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
}

.nav-mobile a {
  display: block;
  padding: 0.65rem 0.4rem;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: #3e362e center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(62, 54, 46, 0.82), rgba(62, 54, 46, 0.42), rgba(62, 54, 46, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

h1,
h2,
h3,
.footer-name {
  font-family: var(--heading);
  font-weight: 560;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow: visible;
  font-optical-sizing: auto;
}

.hero .kicker,
.page-hero .kicker {
  color: var(--gold);
}

.hero h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  max-width: 14ch;
}

.hero .tagline {
  font-family: var(--heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  margin: 1rem 0 0;
  font-optical-sizing: auto;
}

.hero p {
  max-width: 38rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.hero .btn-primary {
  background: var(--gold);
  color: #3a3428;
}

.hero .btn-primary:hover {
  background: color-mix(in srgb, var(--gold), white 12%);
}

.btn-primary {
  background: var(--burgundy);
  color: #fbf7f0;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--burgundy), black 12%);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

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

.section {
  padding: 4rem 0;
}

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

.section-head h2 {
  margin: 0.4rem 0 0;
  font-size: 2.2rem;
  color: var(--gold);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem 1.3rem;
}

.card h3 {
  margin: 0.4rem 0;
  color: var(--gold);
}

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

.band {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.band-pine,
.band-taupe {
  background: var(--taupe);
  color: var(--cream);
}

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

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.split img,
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.belief {
  margin-bottom: 1rem;
}

.belief h2 {
  margin: 0.2rem 0;
  color: var(--gold);
}

.site-footer {
  background: var(--taupe);
  color: var(--cream);
  padding: 3.5rem 0 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-explore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.footer-name {
  font-size: 1.6rem;
  margin: 0;
  color: var(--cream);
}

.footer-tagline {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
}

.footer-heading {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--cream);
}

.site-footer .social-link,
.social-links-on-dark .social-link {
  color: var(--gold);
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
}

.site-footer .social-link:hover,
.social-links-on-dark .social-link:hover {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold);
}

.footer-times {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
}

.footer-times li {
  margin: 0.2rem 0;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: #fff;
  position: relative;
  background: var(--pine) center / cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62, 54, 46, 0.9), rgba(62, 54, 46, 0.35));
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  padding: 4rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0.5rem 0 0;
  max-width: 18ch;
}

.entry-content {
  font-size: 1.05rem;
}

.sermon-list article {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.9rem;
}

.sermon-featured {
  padding: 1.5rem 1.4rem 1.6rem;
}

.sermon-featured h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.sermon-video {
  margin: 1rem 0;
  aspect-ratio: 16 / 9;
  background: var(--pine);
  border-radius: 0.85rem;
  overflow: hidden;
}

.sermon-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.sermon-audio {
  width: 100%;
  margin: 0.75rem 0 1rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--gold);
  text-decoration: none;
}

.social-link:hover {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
}

.social-links-header {
  margin: 0;
}

.site-footer .social-links {
  margin-top: 1rem;
}

.nav-mobile .social-links {
  padding: 1rem 1.1rem 1.4rem;
}

.navigation.pagination,
.sermon-adjacent {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.sermon-adjacent {
  justify-content: space-between;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.navigation.pagination .page-numbers,
.sermon-adjacent a {
  display: inline-flex;
  min-width: 2.4rem;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: var(--cream);
  text-decoration: none;
  color: var(--ink);
}

.navigation.pagination .page-numbers.current {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

.photo-band {
  position: relative;
  min-height: 36vh;
  display: grid;
  align-items: center;
  color: #f7f1e8;
  background: var(--pine) center / cover no-repeat;
  text-align: center;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 54, 46, 0.72);
}

.photo-band .wrap {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.7fr);
    gap: 2.5rem;
  }
}

.pastor-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 1rem 1rem 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1535px) {
  .nav-desktop {
    display: none;
  }

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

  .site-header .social-links-header {
    display: none !important;
  }
}

@media (max-width: 1399px) {
  .contact-grid,
  .teaching-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .header-cta {
    display: none;
  }

  .grid-3,
  .grid-2,
  .split,
  .footer-grid,
  .about-layout,
  .contact-grid,
  .expect-cards,
  .teaching-grid,
  .gospel-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
    align-items: center;
  }
}

.section-title {
  margin: 0.4rem 0 0;
  font-size: 2.2rem;
  color: var(--gold);
}

.lede {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--muted);
}

.section-cta {
  margin-top: 2rem;
}

.btn-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  background: color-mix(in srgb, var(--gold) 12%, white);
}

.btn-outline-gold {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  background: transparent;
  color: var(--gold);
}

.btn-outline-gold:hover {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
}

.pastor-welcome {
  background: color-mix(in srgb, var(--cream) 70%, var(--bg));
  border-block: 1px solid var(--line);
}

.pastor-welcome .section-title {
  margin-bottom: 1rem;
}

.pastor-signoff {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold);
  margin: 1.5rem 0 1.25rem;
}

.photo-frame {
  overflow: hidden;
  border-radius: 1rem;
  min-height: 16rem;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.teaching-photo img {
  aspect-ratio: auto;
  min-height: 18rem;
  object-position: top center;
}

.expect-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .expect-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expect-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.25rem 1.3rem;
}

.expect-card h3 {
  margin: 1rem 0 0.5rem;
  color: var(--ink);
  font-size: 1.5rem;
}

.service-cards h3 {
  margin-top: 0.5rem;
  color: var(--gold);
}

.expect-icon {
  display: inline-flex;
  color: var(--burgundy);
}

.expect-icon svg {
  width: 2rem;
  height: 2rem;
}

.time-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}

.time-line svg {
  width: 1rem;
  height: 1rem;
  color: var(--burgundy);
}

.teaching-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .teaching-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
  }
}

.kicker-gold,
.band-taupe .kicker {
  color: var(--gold);
}

.teaching-lede {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
}

.teaching-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
}

.teaching-list li {
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
}

.teaching-title {
  margin: 0.35rem 0 0.2rem;
  font-family: var(--heading);
  font-size: 1.5rem;
}

.teaching-title a {
  color: var(--gold);
  text-decoration: none;
}

.teaching-title a:hover {
  text-decoration: underline;
}

.teaching-list p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--cream) 80%, transparent);
}

.find-building {
  background: color-mix(in srgb, var(--cream) 70%, var(--bg));
  border-block: 1px solid var(--line);
}

.find-building .section-title {
  max-width: 18ch;
}

.radio-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.radio-line svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--burgundy);
}

.gospel-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

@media (min-width: 768px) {
  .gospel-card {
    grid-template-columns: 1fr 1fr;
  }
}

.gospel-card .photo-frame {
  border-radius: 0;
  min-height: 14rem;
}

.gospel-card .photo-frame img {
  aspect-ratio: auto;
  min-height: 14rem;
}

.gospel-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem;
}

.gospel-card-copy .btn {
  margin-top: 1.25rem;
  width: fit-content;
}

.map,
.calendar-frame {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--cream);
}

.map iframe,
.calendar-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 36rem;
  min-height: 22rem;
  border: 0;
}

.find-building .map iframe {
  height: 100%;
  min-height: 20rem;
}

.calendar-frame {
  margin-top: 1.5rem;
}

.events-kicker {
  margin-top: 3.5rem;
}

.event-card h3 {
  margin-top: 0.5rem;
  color: var(--gold);
  font-size: 1.5rem;
}

.stack-cards {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.faq-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--heading);
  font-size: 1.15rem;
  color: var(--gold);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.5rem 0 0;
}

.read-wrap {
  width: min(56rem, calc(100% - 2rem));
  margin-inline: auto;
}

.gold-cta {
  background: var(--gold);
  color: var(--taupe);
  padding: 3.5rem 0;
}

.gold-cta-title {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.gold-cta .btn-outline {
  border-color: color-mix(in srgb, var(--taupe) 30%, transparent);
  color: var(--taupe);
}

.verse-card {
  margin: 2.5rem 0 0;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  background: var(--gold);
  color: var(--taupe);
  text-align: center;
}

.verse-card p {
  font-family: var(--heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.verse-card .kicker {
  color: var(--burgundy);
}

@media (max-width: 767px) {
  .grid-3,
  .grid-2,
  .split,
  .footer-grid,
  .about-layout,
  .contact-grid,
  .expect-cards,
  .teaching-grid,
  .gospel-card {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding: 2.5rem 0;
  }

  .hero {
    min-height: 72vh;
    align-items: center;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .map iframe,
  .calendar-frame iframe {
    height: 22rem;
    min-height: 18rem;
  }
}
