/* The public site's original browser defaults, without a CSS framework. */
*, ::before, ::after, ::backdrop, ::file-selector-button {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
summary { display: list-item; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, optgroup, textarea, ::file-selector-button {
  font: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
}
::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
textarea { resize: vertical; }
::-webkit-search-decoration { -webkit-appearance: none; }
button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button { appearance: button; }
[hidden]:where(:not([hidden="until-found"])) { display: none !important; }

:root {
  --background: #f6f1e8;
  --surface: #fbf8f2;
  --surface-muted: #efe7d8;
  --border: #cfc2ad;
  --text: #23211d;
  --text-soft: #5a5348;
  --accent: #3f5a46;
  --foreground: #23211d;
  --card: #fbf8f2;
  --card-foreground: #23211d;
  --popover: #fbf8f2;
  --popover-foreground: #23211d;
  --primary: #3f5a46;
  --primary-foreground: #f8f6f0;
  --secondary: #efe7d8;
  --secondary-foreground: #23211d;
  --muted: #efe7d8;
  --muted-foreground: #5a5348;
  --accent-foreground: #ffffff;
  --destructive: #9f2d2d;
  --input: #cfc2ad;
  --ring: #3f5a46;
  --accent-soft: #e4ece6;
  --shadow: 0 18px 40px rgba(35, 33, 29, 0.08);
  --radius: 18px;
  --shell: 1180px;
  --font-heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body), sans-serif;
  line-height: 1.6;
}

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

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

svg {
  width: 24px;
  height: 24px;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.centered {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--background) 92%, white 8%);
  border-bottom: 1px solid rgba(63, 90, 70, 0.12);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand__identity {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__name,
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading), serif;
  letter-spacing: -0.02em;
}

.brand__name {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand__tag {
  display: block;
  max-width: 27rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.brand__logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desktop-nav a {
  font-size: 0.98rem;
}

.mobile-nav {
  display: none;
}

.mobile-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.mobile-nav__toggle span {
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
}

.mobile-nav__panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1rem;
  display: grid;
  gap: 1rem;
  width: min(18rem, calc(100vw - 2rem));
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--primary {
  background: var(--accent);
  color: #f8f6f0;
}

.button--primary:hover {
  background: #31473a;
}

.button--secondary {
  background: transparent;
  color: var(--accent);
}

.button--secondary:hover {
  background: var(--accent-soft);
}

.button--small {
  min-height: 42px;
  padding: 0.7rem 1rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  padding: 7rem 0 4rem;
}

.hero__inner {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(63, 90, 70, 0.18);
  border-bottom: 1px solid rgba(63, 90, 70, 0.18);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.hero__content {
  max-width: 820px;
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.hero__placeholder {
  min-height: 420px;
}

.hero h1,
.page-intro h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.9rem, 7vw, 5.5rem);
  line-height: 0.98;
}

.hero__tagline,
.page-intro__body {
  margin: 1.35rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--text-soft);
}

.hero .cta-row {
  margin-top: 2rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.hero__facts div,
.quick-info__grid div,
.contact-sidebar__panel {
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero__facts strong,
.quick-info__grid strong {
  display: block;
  margin-top: 0.35rem;
}

.hero__label,
.quick-info span,
.sermon-card__meta,
.filter-count {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.cta-row,
.section-actions,
.sermon-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.section-actions {
  margin-top: 1.75rem;
}

.section-actions--center,
.section-actions--center .cta-row {
  justify-content: center;
}

.quick-info {
  padding-bottom: 1rem;
}

.quick-info__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.section {
  padding: 5rem 0;
}

.section--muted {
  background: rgba(239, 231, 216, 0.55);
}

.section--sermon-feature {
  border-top: 1px solid rgba(63, 90, 70, 0.15);
  border-bottom: 1px solid rgba(63, 90, 70, 0.15);
}

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

.section-heading--center {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-heading__body,
.section p,
.page-intro__body {
  max-width: 68ch;
}

.section-heading__body {
  margin: 1rem 0 0;
  line-height: 1.6;
}

.section-heading--center .section-heading__body {
  margin-inline: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

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

.card-grid--pillars {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.belief-summary,
.faq-item,
.creed-block,
.filter-bar,
.sermon-detail__meta,
.prose-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.belief-summary,
.prose-block {
  padding: 1.5rem;
}

.card > :first-child,
.belief-summary > :first-child,
.prose-block > :first-child,
.contact-sidebar__panel > :first-child {
  margin-top: 0;
}

.card > :last-child,
.belief-summary > :last-child,
.prose-block > :last-child,
.contact-sidebar__panel > :last-child {
  margin-bottom: 0;
}

.card h3,
.belief-summary h3,
.contact-sidebar__panel h2 {
  margin: 0 0 0.65rem;
}

.card p,
.belief-summary p,
.contact-sidebar__panel p {
  margin: 0 0 0.9rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
}

.ministry-card__image-wrap {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.ministry-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(31%) sepia(17%) saturate(587%) hue-rotate(92deg) brightness(91%) contrast(88%);
}

.ministry-card {
  min-height: 100%;
}

.ministry-card h3 {
  font-size: 1.55rem;
}

.ministry-card p {
  font-size: 1rem;
  line-height: 1.65;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.page-intro {
  padding: 5.5rem 0 2rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.leader-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.leader-card__media {
  min-height: 220px;
}

.leader-card__image,
.leader-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border-radius: 16px;
}

.leader-card__image {
  object-fit: cover;
}

.leader-card__placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  background: linear-gradient(180deg, #e9e1d2 0%, #ddd2bf 100%);
  border: 1px solid rgba(63, 90, 70, 0.16);
  color: var(--accent);
  text-align: center;
}

.leader-card__placeholder span {
  font-family: var(--font-heading), serif;
  font-size: 2.6rem;
}

.leader-card__placeholder small {
  color: var(--text-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leader-card__content {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.leader-card__content .eyebrow {
  margin-bottom: 0.4rem;
}

.leader-card__content h3 {
  font-size: 1.8rem;
}

.leadership-title {
  margin: 0 0 2rem;
  font-family: var(--font-heading), serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.belief-summary-grid {
  display: grid;
  gap: 1rem;
}

.creed-list {
  display: grid;
  gap: 1rem;
}

.creed-block {
  overflow: hidden;
}

.creed-block summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  padding: 1.4rem;
  cursor: pointer;
  list-style: none;
}

.creed-block summary::-webkit-details-marker {
  display: none;
}

.creed-block__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.creed-block[open] .creed-block__arrow {
  transform: rotate(90deg);
}

.creed-block__summary-text {
  display: grid;
  gap: 0.45rem;
}

.creed-block__summary-text span:first-child {
  font-family: var(--font-heading), serif;
  font-size: 1.4rem;
}

.creed-block__summary-text span:last-child {
  color: var(--text-soft);
}

.creed-block__content {
  display: grid;
  gap: 1rem;
  padding: 0 1.4rem 1.4rem;
}

.creed-block__content p {
  margin: 0;
  line-height: 1.65;
}

.visit-expectations__copy {
  display: grid;
  gap: 0.9rem;
  max-width: 64ch;
}

.visit-expectations__copy p {
  margin: 0;
}

.sermon-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 2rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: start;
}

.sermon-feature dl,
.sermon-detail__meta {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.sermon-feature dl > div,
.sermon-detail__meta > div {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(63, 90, 70, 0.12);
}

.sermon-feature dl > div:last-child,
.sermon-detail__meta > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sermon-feature dt,
.sermon-detail__meta dt,
.sermon-card__details dt {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.sermon-feature dd,
.sermon-detail__meta dd,
.sermon-card__details dd {
  margin: 0.15rem 0 0;
}

.sermon-feature__details {
  max-width: 34rem;
}

.sermon-feature__actions {
  align-content: start;
}

.sermon-feature__actions .text-link {
  margin-top: 0.15rem;
}

.sermon-card__meta,
.sermon-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sermon-card__links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  gap: 1rem;
  padding: 1.2rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field span {
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  overflow: hidden;
}

.faq-item__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.2rem;
  background: transparent;
  border: 0;
  text-align: left;
}

.faq-item div {
  padding: 0 1.2rem 1.2rem;
}

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

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-note,
.contact-callout,
.footer-mission {
  color: var(--text-soft);
}

.map-embed {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.image-placeholder {
  position: relative;
  min-height: 320px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-placeholder__frame {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  min-height: 100%;
  padding: 2rem;
  border: 1px dashed rgba(63, 90, 70, 0.28);
  border-radius: calc(var(--radius) - 6px);
  background:
    linear-gradient(rgba(63, 90, 70, 0.05), rgba(63, 90, 70, 0.05)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.18) 12px,
      rgba(239, 231, 216, 0.22) 12px,
      rgba(239, 231, 216, 0.22) 24px
    );
  text-align: center;
}

.image-placeholder__label {
  font-family: var(--font-heading), serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.image-placeholder__description {
  max-width: 26rem;
  margin: 0;
  color: var(--text-soft);
}

.visit-media-stack,
.contact-sidebar {
  display: grid;
  gap: 1.25rem;
}

.site-footer {
  padding: 3.5rem 0 1.5rem;
  background: #efe7d8;
  border-top: 1px solid rgba(63, 90, 70, 0.16);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading), serif;
  font-size: 1.2rem;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.site-footer p,
.site-footer a {
  margin: 0;
}

.site-footer__grid > div {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(63, 90, 70, 0.15);
}

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

  .mobile-nav {
    display: block;
    position: relative;
  }

  .quick-info__grid,
  .card-grid,
  .card-grid--leaders,
  .card-grid--pillars,
  .card-grid--four,
  .card-grid--three,
  .site-footer__grid,
  .two-column,
  .hero__layout,
  .sermon-feature,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .card-grid--two,
  .card-grid--sermons,
  .contact-form__grid,
  .hero__facts {
    grid-template-columns: 1fr;
  }

  .leader-card {
    grid-template-columns: 1fr;
  }

  .leader-card__media {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4.5rem;
  }

  .section,
  .page-intro {
    padding: 4rem 0;
  }

  .brand__tag {
    display: none;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }
}
