:root {
  --ink: #302326;
  --muted: #766268;
  --paper: #fdf9f8;
  --surface: #ffffff;
  --line: #e8d8dc;
  --maroon: #702638;
  --maroon-dark: #481824;
  --gold: #e3bc86;
  --clay: #89515f;
  --shadow: 0 20px 60px rgba(66, 35, 44, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(253, 249, 248, 0.92);
  border-bottom: 1px solid rgba(232, 216, 220, 0.78);
  backdrop-filter: blur(14px);
}

.brand,
.header-nav {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--surface);
  background: var(--maroon);
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
}

.header-nav {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.header-nav a {
  white-space: nowrap;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.header-nav a:hover {
  color: var(--maroon-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(640px, calc(100svh - 96px));
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 45%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.05));
}

.hero-content {
  width: min(1000px, 100%);
  align-self: center;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 6vw, 86px);
  color: var(--surface);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.content-section h2,
.visit-section h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--maroon-dark);
  background: var(--surface);
}

.button.secondary {
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.55);
}

.button:hover {
  transform: translateY(-1px);
}

.info-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.quick-detail {
  display: grid;
  gap: 6px;
  padding: 28px clamp(20px, 4vw, 48px);
  background: var(--surface);
}

.detail-label,
.address-label {
  color: var(--clay);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 800;
}

.sermons-section {
  color: var(--surface);
  background: var(--maroon);
}

.section-link {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  color: var(--maroon-dark);
  border-radius: 8px;
  text-decoration: none;
}

.section-link strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.section-link > span {
  font-size: 0.85rem;
  color: var(--muted);
}

.section-link:hover,
.header-nav a:hover {
  background: #f2e5e8;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.sermons-content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.sermons-copy {
  max-width: 640px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.sermons-section [aria-disabled="true"] {
  transform: none;
}

.content-section,
.visit-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 32px;
}

.content-section h2,
.visit-section h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

main section[id] {
  scroll-margin-top: 140px;
}

.section-intro {
  color: var(--muted);
  margin: 20px 0 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: start;
}

.staff-photo {
  margin: 0;
}

.staff-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.staff-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.about-details {
  display: grid;
  gap: 12px;
}

.about-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.about-card summary {
  padding: 20px;
  color: var(--maroon);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
}

.about-card[open] summary {
  border-bottom: 1px solid var(--line);
}

.about-card-content {
  padding: 20px;
}

.about-card p + p {
  margin-top: 16px;
}

.about-card p {
  margin: 0;
  color: var(--muted);
}

.schedule-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 16px;
}

.schedule-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(66, 35, 44, 0.06);
}

.schedule-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
}

.schedule-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.schedule-card time {
  min-width: 126px;
  color: var(--maroon);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  text-align: right;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: #f7edef;
}

.visit-content {
  max-width: 760px;
}

.visit-content p:last-child {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.address-panel {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-style: normal;
}

.address-panel strong {
  margin-top: 6px;
  font-size: 1.22rem;
}

.site-footer {
  padding: 28px 20px;
  color: var(--muted);
  background: var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

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

.site-footer a {
  color: inherit;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32));
  }

  .hero-content {
    align-self: center;
  }

  .info-band,
  .about-layout,
  .visit-section {
    grid-template-columns: 1fr;
  }

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

  .schedule-card time {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .about-details {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 0.9rem;
  }

  .header-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }
}

/* Keep small labels legible on the light section backgrounds. */
.section-heading .eyebrow,
.visit-content .eyebrow {
  color: var(--maroon-dark);
}

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