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

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}

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

:root {
  --cream: #f4efe3;
  --cream-2: #fbf7ef;
  --cream-deep: #e7e0d0;
  --navy: #0b1f3a;
  --ink: #163052;
  --line: rgba(11, 31, 58, 0.12);
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 3rem));
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

figure {
  margin: 0;
}

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

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  background: var(--navy);
  color: var(--cream);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  z-index: 50;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: calc(100% - 3rem);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 227, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: calc(100% - 3rem);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 0.55rem 0;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-right: 0.75rem;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: calc(100vw - 8rem);
  max-width: min(17.5rem, calc(100vw - 8rem));
}

.nav-toggle {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--navy);
  font: 600 1rem/1 var(--sans);
}

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

.nav-list,
.footer-nav,
.actions,
.toc,
.plain-list,
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: none;
  flex-direction: column;
  width: 100%;
}

.nav-details[open] + .nav-list {
  display: flex;
}

.nav-list a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 44px;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  font-weight: 500;
}

.nav-list a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
}

.page-head {
  padding: 2.5rem 0 0.5rem;
}

.page-head h1,
.hero-title h1 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2.4rem;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0.2rem 0 0.6rem;
}

.hero-title h1 {
  color: var(--cream);
  max-width: 12ch;
  text-shadow: 0 1px 18px rgba(11, 31, 58, 0.25);
}

h2,
.services h2,
.section-block h2,
.prose h2,
.directions h2,
.address-block h2 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.eyebrow,
.footer-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.statement {
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--navy);
  font-weight: 500;
}

.prose {
  max-width: 68ch;
}

.prose > * + *,
.stack > * + * {
  margin-top: 1rem;
}

.section-block {
  padding: 1.25rem 0;
}

.home-hero {
  padding-bottom: 0.5rem;
}

.hero-stage {
  position: relative;
  width: 100%;
}

.hero-figure {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.hero-figure > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1800 / 842;
  object-fit: cover;
  object-position: center center;
}

.hero-figure::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.78) 0%, rgba(11, 31, 58, 0.28) 38%, rgba(11, 31, 58, 0.05) 68%);
  pointer-events: none;
}

.hero-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: calc(100% - 3rem);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 2rem;
}

@media (max-width: 430px) {
  .hero-title {
    padding-bottom: 0.85rem;
  }

  .hero-figure::after {
    background: linear-gradient(to top, rgba(11, 31, 58, 0.88) 0%, rgba(11, 31, 58, 0.5) 46%, rgba(11, 31, 58, 0.08) 78%);
  }
}

.year-feature {
  padding: 1.5rem 0 0.5rem;
}

.year-card {
  display: block;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.year-media {
  position: relative;
  width: 100%;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
  background: #0b1f3a;
  -webkit-mask-image: radial-gradient(circle at center, #000 68%, rgba(0, 0, 0, 0) 86%);
  mask-image: radial-gradient(circle at center, #000 68%, rgba(0, 0, 0, 0) 86%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.year-still,
.year-motion {
  display: block;
  width: 100%;
  object-fit: contain;
  background: #0b1f3a;
}

.year-still {
  height: auto;
  visibility: hidden;
}

.year-motion {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  height: 100%;
  background: #0b1f3a;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.welcome-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.85rem 1.6rem 2rem;
}

.welcome-card h2,
.guest-card h2 {
  margin: 0 0 0.85rem;
}

.welcome-card p {
  max-width: 40rem;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
}

.welcome-card p + p {
  margin-top: 0.9rem;
}

.bible-study {
  position: relative;
  text-align: center;
}

.bible-study h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bible-study-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1080;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  background: var(--navy);
}

.bible-study p {
  margin-left: auto;
  margin-right: auto;
}

.bible-study ul {
  list-style: none;
  margin: 1.1rem auto 0;
  padding: 0;
}

.bible-study li {
  margin: 0.4rem 0;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
}

.bible-study ul + p {
  margin-top: 1rem;
}

.guest-card p {
  font-size: 1.08rem;
  line-height: 1.55;
}

.feature-card,
.link-card,
.doctrine section,
.recording-list > li,
.address-block,
.directions,
.card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem;
}

.feature-card,
.link-card {
  display: block;
  color: var(--navy);
  text-decoration: none;
  min-height: 44px;
  min-width: 0;
}

.feature-card p,
.link-card strong,
.link-card span {
  margin: 0.15rem 0;
}

.link-card strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.services {
  background: transparent;
  color: var(--cream);
  margin: 1.25rem 0;
}

.services a,
.services h2,
.services p,
.services dt,
.services dd {
  color: var(--cream);
}

.services-grid {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
}

.time-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.time-list div {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(244, 239, 227, 0.28);
}

.time-list dd {
  margin: 0;
  font-size: 1.6rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

.actions > * {
  margin: 0.7rem 0.7rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--navy);
  border-radius: 999px;
}

.button:hover {
  color: var(--cream);
}

.services .button {
  background: var(--cream);
  color: var(--navy);
  border-color: var(--cream);
}

.services .button-ghost,
.button-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 239, 227, 0.7);
}

.services :focus-visible {
  outline-color: var(--cream);
}

.phone-notice {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.phone-notice a {
  color: var(--navy);
}

.scripture {
  margin: 1.1rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--navy);
  color: var(--navy);
}

.doctrine h2 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-top: 0;
}

.doctrine section + section {
  margin-top: 1rem;
}

.refs,
.source-note {
  color: var(--ink);
  font-size: 1rem;
}

.toc {
  display: grid;
  gap: 0.2rem;
}

.toc a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.portrait {
  margin: 0;
}

.portrait img,
.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.worship-photo {
  margin: 0;
  padding: 0.7rem;
}

.worship-photo figcaption {
  margin: 0.9rem 0.3rem 0.2rem;
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.recording-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.recording-list > li {
  min-width: 0;
  max-width: 100%;
}

.phone-notice a,
.plain-list a,
.recording-list a,
.site-footer p a,
.prose a,
.source-note a,
.directions a,
.address-block a,
.time-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.recording-list a {
  display: flex;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.recording-list audio,
.recording-list video {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 0.6rem;
}

.split,
.link-row,
.footer-grid,
.feature-grid,
.year-card {
  display: grid;
  gap: 1rem;
}

.site-footer {
  background: var(--navy);
  color: var(--cream);
  margin-top: 2.5rem;
  padding: 2.2rem 0 1.6rem;
}

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

.footer-brand {
  display: inline-flex;
  background: var(--cream);
  border-radius: 18px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.85rem;
}

.footer-label {
  color: var(--cream-deep);
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 780ms ease-out, transform 780ms ease-out;
}

.js .reveal.is-set {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-figure > img {
  animation: hero-settle 11s ease-out both;
  transform-origin: center center;
}

@keyframes hero-settle {
  from {
    transform: scale(1.045);
  }
  to {
    transform: scale(1);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-card,
  .link-card,
  .button,
  .recording-list > li,
  .doctrine section {
    transition: transform 220ms ease-out, box-shadow 220ms ease-out;
  }

  .feature-card:hover,
  .link-card:hover,
  .button:hover,
  .recording-list > li:hover,
  .doctrine section:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(11, 31, 58, 0.12);
  }
}

@media (min-width: 40rem) {
  .time-list,
  .footer-grid,
  .split,
  .link-row,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (min-width: 64rem) {
  .year-card {
    padding: 1.5rem;
  }

  .year-media {
    width: 20rem;
    max-width: 20rem;
  }
}

@media (max-width: 40rem) {
  .link-row.three,
  .feature-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 59.99rem) {
  .services-grid {
    display: flex;
    flex-direction: column;
  }

  .services-intro {
    display: contents;
  }

  .services-grid h2 { order: 1; }
  .time-list { order: 2; }
  .services-lead { order: 3; margin: 0.35rem 0 0; }
  .services-grid .actions { order: 4; }
}

@media (max-width: 63.99rem) {
  .nav-details[open] + .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    width: auto;
    padding: 0.35rem 1.25rem 0.9rem;
    background: rgba(244, 239, 227, 0.98);
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 24rem) and (max-width: 59.99rem) {
  .time-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 32rem) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions > * {
    margin-right: 0;
  }

  .actions .button {
    width: 100%;
  }
}

@media (min-width: 48rem) {
  .brand img {
    height: 56px;
    max-width: 24rem;
  }
}

@media (min-width: 64rem) {
  .header-inner {
    min-height: 5.25rem;
  }

  .brand img,
  .footer-brand img {
    height: 64px;
    max-width: 30rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-details:not([open]) .nav-list,
  .nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
  }

  .nav-list {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }

  .nav-list a {
    margin: 0.1rem 0.15rem;
    padding: 0 0.55rem;
    border-radius: 999px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
  }

  .recording-list {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .js .reveal,
  .js .reveal.is-in,
  .js .reveal.is-set {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-figure > img {
    animation: none;
  }

  .feature-card:hover,
  .link-card:hover,
  .button:hover,
  .recording-list > li:hover,
  .doctrine section:hover {
    transform: none;
  }

  .year-still {
    visibility: visible;
  }

  .year-motion {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sermon-list {
  margin-bottom: 1.5rem;
}

.sermon-list .sermon-meta {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  opacity: 0.8;
}
