@font-face {
  font-family: "Cormorant Infant";
  src: url("/assets/fonts/cormorant-infant.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Infant";
  src: url("/assets/fonts/cormorant-infant-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("/assets/fonts/karla.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #003902;
  --green-light: #00560a;
  --ink: #201c14;
  --body: #5b5b55;
  --paper: #f9f9f9;
  --white: #fff;
  --rule: #d9d6cc;
  --serif: "Cormorant Infant", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

body {
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-light);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--green);
  color: var(--white);
}

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

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.container {
  width: min(100% - 2.5rem, 740px);
  margin-inline: auto;
}

.container--wide {
  max-width: 1000px;
}

/* Header */

.site-header {
  padding: 2.25rem 1.25rem 1.5rem;
  text-align: center;
}

.site-title {
  display: inline-block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.site-location {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.3;
  margin-top: 0.35rem;
}

.header-rule {
  border: 0;
  border-top: 1px solid var(--green);
  margin: 1rem auto 1.1rem;
  width: 70px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.nav-list a {
  border-bottom: 1px solid transparent;
  color: var(--ink);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.3rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  border-bottom-color: var(--green);
  color: var(--green);
}

.nav-toggle {
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: none;
  font: 700 0.78rem/1 var(--sans);
  letter-spacing: 0.14em;
  padding: 0.5rem;
  text-transform: uppercase;
}

/* Page banner */

.page-banner {
  background: var(--green);
  border-bottom: 6px solid var(--paper);
  border-top: 6px solid var(--paper);
  color: var(--white);
  padding: 1.3rem 1rem;
  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Home */

.hero {
  display: grid;
  min-height: min(72vh, 560px);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  place-items: center;
  position: relative;
  text-align: center;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: 54% 44%;
  position: absolute;
  width: 100%;
}

.hero::after {
  background: rgba(0, 0, 0, 0.6);
  content: "";
  inset: 0;
  position: absolute;
}

.hero blockquote {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.1rem + 3vw, 3.55rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero cite {
  display: block;
  font-size: 0.78em;
  font-style: italic;
  margin-top: 0.5rem;
}

.intro {
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  text-align: center;
}

.intro h2,
.section-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.4rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.title-rule {
  border: 0;
  border-top: 3px dotted var(--green);
  margin: 0.9rem auto 1.6rem;
  width: 44px;
}

.intro p {
  margin-inline: auto;
  max-width: 680px;
}

.intro p + p {
  margin-top: 1.1rem;
}

.button {
  background: var(--green);
  border-radius: 999px;
  color: var(--white);
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 1.6rem;
  padding: 0.7rem 2.4rem;
  text-decoration: none;
}

.button:hover {
  background: var(--green-light);
  color: var(--white);
}

/* Inner pages */

.page-content {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}

.prose h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.85rem);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.prose h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 1.4rem + 1vw, 2.1rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.25rem 0 1.25rem;
  text-align: center;
}

.prose h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin: 2rem 0 0.75rem;
  text-align: center;
}

.prose p {
  margin-bottom: 1.3rem;
}

.prose--center p,
.prose--center h2,
.prose--center h3,
.prose--center ul {
  text-align: center;
}

.prose--center ul {
  list-style: none;
  padding: 0;
}

.prose--center li + li {
  margin-top: 0.25rem;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem auto;
  max-width: 640px;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose > p:has(> em:only-child) {
  text-align: center;
}

.times {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.series {
  margin-top: 1.8rem;
}

.series p {
  margin-bottom: 0.15rem;
}

.series .label {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

/* About */

.belief {
  margin-top: 2.75rem;
  text-align: center;
}

.belief img {
  height: 110px;
  margin-bottom: 0.9rem;
  object-fit: contain;
  width: auto;
}

.belief h3 {
  margin-top: 0;
}

.belief p {
  margin-inline: auto;
  max-width: 620px;
}

.belief--wide img {
  height: auto;
  max-height: 110px;
  max-width: 260px;
}

/* Leadership */

.people {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}

.person {
  margin: 0 auto 3.5rem;
  max-width: 660px;
  text-align: center;
}

.person img {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.4rem;
  object-fit: cover;
  width: 100%;
}

.person h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
}

.person .role {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  margin: 0.1rem 0 1rem;
}

.person p {
  margin-inline: auto;
  max-width: 620px;
}

/* Sermons */

.embed {
  margin: 2rem auto;
  max-width: 900px;
  width: 100%;
}

.embed--video {
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.embed iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.embed--list {
  height: 1000px;
}

/* Footer */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding: 2.5rem 1.25rem 1rem;
  text-align: center;
}

.site-footer h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.footer-rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 1.2rem 0 1.5rem;
}

.contact {
  display: grid;
  gap: 1rem;
  justify-items: center;
  list-style: none;
  padding: 0;
}

.contact li {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  line-height: 1.5;
}

.contact svg {
  flex: none;
  height: 18px;
  width: 18px;
}

.contact a {
  color: var(--ink);
}

.copyright {
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
}

/* Mobile */

@media (max-width: 620px) {
  .site-title {
    max-width: 9em;
  }

  .js .nav-toggle {
    display: inline-block;
  }

  .js .nav-list {
    display: none;
    gap: 0;
    margin-top: 0.75rem;
  }

  .js .nav-list[data-open] {
    display: block;
    padding-bottom: 0.75rem;
  }

  .js .nav-list li + li {
    margin-top: 0.15rem;
  }

  .js .nav-list a {
    padding: 0.55rem 0;
  }

  .person {
    margin-bottom: 2.75rem;
  }

  .embed--video {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .button {
    transition: color 0.2s ease, background-color 0.2s ease,
      border-color 0.2s ease;
  }
}
