:root {
  --brown: #745345;
  --brown-dark: #533a30;
  --cream: #f8f2f1;
  --ink: #1f1d1c;
  --muted: #62605f;
  --line: #ded7d4;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: var(--brown);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brown-dark);
}

.alert {
  display: block;
  padding: 5px 20px;
  color: #fff;
  background: var(--brown);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .86rem;
}

.site-header {
  padding: 8px 24px 14px;
  text-align: center;
}

.logo {
  display: inline-block;
}

.logo img {
  width: 400px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 28px;
  margin-top: 12px;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.nav a,
.nav summary {
  color: #171717;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover,
.nav summary:hover {
  color: var(--brown);
}

.nav details {
  position: relative;
}

.nav summary {
  list-style: none;
}

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

.nav summary::after {
  content: " v";
  font-size: .75em;
}

.submenu {
  position: absolute;
  z-index: 3;
  min-width: 220px;
  margin-top: 10px;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  text-align: left;
}

.submenu a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  letter-spacing: .08em;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.container.feature-grid,
.container.card-grid {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.narrow {
  max-width: 820px;
}

.hero {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  align-items: stretch;
  gap: 0;
  margin-bottom: 42px;
}

.hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-panel {
  display: grid;
  place-items: center;
  padding: 56px;
  background: var(--cream);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .93rem;
}

h1,
h2,
h3,
.display {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
}

h1,
.display {
  margin: 0 0 28px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
}

.display {
  letter-spacing: .04em;
}

h1.page-title {
  margin: 16px 0 24px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
}

h2 {
  margin: 28px 0 12px;
  font-weight: 400;
  font-size: 1.65rem;
}

h3 {
  margin: 24px 0 10px;
  font-size: 1.3rem;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--brown);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 8px 18px rgba(83, 58, 48, .18);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.button:hover {
  color: #fff;
  background: var(--brown-dark);
  box-shadow: 0 10px 22px rgba(83, 58, 48, .24);
  transform: translateY(-1px);
}

.quote {
  margin: 0 auto 34px;
  color: #3d3b3a;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 1.05rem;
}

.quote.scripture-quote {
  margin-bottom: 16px;
}

.scripture blockquote.quote.scripture-quote {
  color: #3d3b3a;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
}

.lead {
  max-width: 880px;
  margin: 0 auto 34px;
  font-size: 1.05rem;
}

.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin: 34px 0;
}

.feature,
.card {
  background: var(--cream);
  text-align: center;
}

.feature {
  padding: 46px 32px 36px;
}

.feature h2 {
  text-transform: none;
  letter-spacing: .03em;
  font-weight: 400;
  font-size: 1.55rem;
}

.feature img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 18px auto;
}

.feature p,
.card p {
  text-align: left;
}

.scripture {
  margin: 44px auto 30px;
  max-width: 920px;
  text-align: center;
}

.scripture blockquote {
  margin: 0;
}

.rule {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  margin: 30px 0;
}

.split img {
  width: 100%;
  height: auto;
}

.partner-logo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 26px 0 30px;
}

.partner-logo-card {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.partner-logo-card > a:first-child {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.partner-logo-row img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

.partner-logo-card .button {
  width: min(100%, 330px);
}

.partner-donate-button {
  min-height: 76px;
  flex-direction: column;
  gap: 3px;
  line-height: 1.15;
}

.partner-donate-button span,
.partner-donate-button strong {
  display: block;
}

.partner-donate-button strong {
  font-size: 1.02em;
}

.story-trailer {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  margin: 30px 0 0;
}

.story-trailer img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.story-trailer img:first-child {
  object-position: center;
}

.story-trailer img:last-child {
  object-position: center;
}

.mission-float {
  float: right;
  width: min(230px, 30%);
  margin: 0 0 22px 28px;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}

.location-card,
.theme,
.church-card,
.video-card,
.contact-card {
  padding: 24px;
  background: var(--cream);
}

.location-card h2,
.church-card h3,
.video-card h3 {
  margin-top: 0;
}

.church-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 20px 0 34px;
}

.church-card .week,
.theme .month {
  margin-bottom: 10px;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem;
  font-weight: 700;
}

.theme {
  margin: 14px 0;
}

.theme h2 {
  margin: 0 0 12px;
}

.themes-saved-title {
  margin: 16px 0 24px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
}

.themes-subtitle {
  margin: -10px 0 24px;
  color: var(--brown);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .95rem;
  font-weight: 700;
}

.theme-accordion {
  margin-left: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 38px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 24px 0 38px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 0;
}

.site-footer {
  margin-top: 42px;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}

.site-footer p {
  margin: 6px 0;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 6px;
}

.accordion {
  margin-left: 28px;
  border-top: 1px solid var(--line);
}

.accordion-first {
  border-top: 0;
}

.accordion:last-of-type {
  border-bottom: 1px solid var(--line);
}

.accordion-section-end {
  border-bottom: 1px solid var(--line);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
}

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

.accordion summary::after {
  content: "+";
  color: var(--brown);
  font-size: 1.45rem;
  line-height: 1;
}

.accordion[open] summary::after {
  content: "-";
}

.accordion-content {
  padding: 0 0 20px;
}

.accordion-content > :first-child {
  margin-top: 0;
}

.accordion-content > :last-child {
  margin-bottom: 0;
}

.formatted-section p {
  margin: 0 0 26px;
}

.formatted-section ul {
  margin: 0 0 28px;
}

.formatted-section li {
  margin-top: 0;
}

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

.prayer-guidelines h3 {
  margin-top: 28px;
  color: var(--muted);
  font-weight: 700;
}

.prayer-guidelines ul {
  font-style: italic;
}

.prayer-guidelines li {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .split,
  .partner-logo-row,
  .story-trailer,
  .location-grid,
  .church-list,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding-top: 8px;
  }

  .logo img {
    width: min(340px, 90vw);
  }

  .nav {
    display: grid;
    gap: 12px;
  }

  .submenu {
    position: static;
    box-shadow: none;
    text-align: center;
  }

  .container {
    width: min(100% - 32px, var(--max));
  }

  .hero img {
    min-height: 300px;
  }

  .hero-panel {
    padding: 40px 24px;
  }

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

  .mission-float {
    float: none;
    display: block;
    width: min(100%, 360px);
    margin: 0 auto 22px;
  }
}
