:root {
  --bg: #f4efe6;
  --surface: rgba(255, 251, 244, 0.8);
  --surface-strong: #fffaf2;
  --ink: #1f2130;
  --muted: #5f6071;
  --line: rgba(31, 33, 48, 0.12);
  --shadow: 0 20px 45px rgba(23, 17, 10, 0.12);
  --hero-start: #7d1321;
  --hero-end: #d6694f;
  --accent: #9d1726;
  --accent-soft: #f5d8cb;
  --accent-strong: #67111a;
  --button-ink: #fffaf6;
}

body[data-theme='epiphany'] {
  --hero-start: #003366;
  --hero-end: #4d7395;
  --accent: #003366;
  --accent-soft: #d8e4ef;
  --accent-strong: #00264f;
}

body[data-theme='advent'] {
  --hero-start: #003366;
  --hero-end: #47739a;
  --accent: #003366;
  --accent-soft: #d9e4ef;
  --accent-strong: #00264f;
}

body[data-theme='festive'] {
  --hero-start: #7f6b25;
  --hero-end: #f4e6ba;
  --accent: #a68c2c;
  --accent-soft: #fbf4db;
  --accent-strong: #665314;
  --button-ink: #2e2410;
}

body[data-theme='lent'] {
  --hero-start: #4b346e;
  --hero-end: #8a6dad;
  --accent: #5f3d88;
  --accent-soft: #e4dbf1;
  --accent-strong: #321b4c;
}

body[data-theme='black'] {
  --hero-start: #0f1014;
  --hero-end: #3b3c45;
  --accent: #23252d;
  --accent-soft: #d8dae0;
  --accent-strong: #090a0d;
}

body[data-theme='red'] {
  --hero-start: #990000;
  --hero-end: #cb4c3a;
  --accent: #990000;
  --accent-soft: #f5d4ce;
  --accent-strong: #6f0000;
}

body[data-theme='green'] {
  --hero-start: #255338;
  --hero-end: #7ea97d;
  --accent: #2f6f49;
  --accent-soft: #dff0df;
  --accent-strong: #1d462f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Public Sans', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 30%),
    linear-gradient(180deg, #f9f4eb 0%, var(--bg) 45%, #efe6da 100%);
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent 75%);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5vw;
  background: rgba(244, 239, 230, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.brand-logo-full {
  width: min(18rem, 42vw);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 700;
}

.hero,
.section,
.site-footer {
  padding-inline: 5vw;
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 5vw 1rem;
}

.page-hero h1 {
  max-width: 14ch;
  color: var(--accent-strong);
}

body.about-page,
body.sermons-page,
body.newsletters-page {
  background: var(--bg);
}

body.about-page::before,
body.sermons-page::before,
body.newsletters-page::before {
  background-image: none;
}

.about-background,
.page-background-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.about-background {
  opacity: 0.2;
}

.page-background-video {
  opacity: 1;
}

body.about-page::after,
body.sermons-page::after,
body.newsletters-page::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.18), rgba(255, 251, 244, 0.08) 26%, rgba(255, 251, 244, 0.18)),
    linear-gradient(90deg, rgba(255, 251, 244, 0.08), rgba(255, 251, 244, 0.03) 45%, rgba(255, 251, 244, 0.08));
}

body.about-page .site-header,
body.about-page main,
body.about-page .site-footer,
body.sermons-page .site-header,
body.sermons-page main,
body.sermons-page .site-footer,
body.newsletters-page .site-header,
body.newsletters-page main,
body.newsletters-page .site-footer {
  position: relative;
  z-index: 1;
}

body.about-page .page-hero,
body.sermons-page .page-hero,
body.newsletters-page .page-hero {
  padding-top: clamp(4.5rem, 11vw, 8rem);
  padding-bottom: 1.25rem;
  background: rgba(255, 251, 244, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

body.about-page .page-hero h1,
body.about-page .page-hero .eyebrow,
body.sermons-page .page-hero h1,
body.sermons-page .page-hero .eyebrow,
body.newsletters-page .page-hero h1,
body.newsletters-page .page-hero .eyebrow {
  color: var(--accent-strong);
}

body.about-page .section-heading p:last-child,
body.sermons-page .section-heading p:last-child,
body.newsletters-page .section-heading p:last-child {
  color: var(--muted);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
  min-height: min(90vh, 880px);
  padding-top: clamp(3rem, 10vw, 7rem);
  padding-bottom: clamp(2rem, 7vw, 5rem);
  background:
    linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: #fff9f3;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 9, 7, 0.76), rgba(18, 9, 7, 0.28) 56%, rgba(18, 9, 7, 0.46)),
    linear-gradient(180deg, rgba(18, 9, 7, 0.18), rgba(18, 9, 7, 0.62));
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.home-page[data-hero-video-background='on'] .hero-video {
  position: fixed;
  inset: 0;
  z-index: -1;
}

body.home-page[data-hero-video-background='on'] {
  isolation: isolate;
}

body.home-page[data-hero-video-background='on'] .hero {
  background: transparent;
}

body.home-page[data-hero-video-background='on'] .site-header {
  z-index: 35;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(16px);
}

body.home-page[data-hero-video-background='on'] .hero-panel,
body.home-page[data-hero-video-background='on'] .card,
body.home-page[data-hero-video-background='on'] .instagram-feed-demo,
body.home-page[data-hero-video-background='on'] .cta-shell,
body.home-page[data-hero-video-background='on'] .portrait-card,
body.home-page[data-hero-video-background='on'] .sermon-feature,
body.home-page[data-hero-video-background='on'] .sermon-item {
  background: transparent;
  box-shadow: none;
}

body.home-page[data-hero-video-background='on'] .site-footer {
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(12px);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-top: 1rem;
}

.eyebrow,
.panel-kicker,
.resource-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow {
  color: var(--accent);
}

.hero .eyebrow,
.hero .panel-kicker {
  color: rgba(255, 248, 234, 0.82);
}

.hero-word-rotator {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  margin-bottom: 0.35rem;
}

.hero-word {
  display: inline-block;
  color: var(--accent);
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(0.22rem) scale(0.985);
  transition: opacity 300ms ease, transform 300ms ease;
}

.hero-word.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-word.is-transitioning {
  opacity: 0;
  transform: translateY(-0.15rem) scale(0.975);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  line-height: 1.08;
}

h1 {
  margin-top: 0.15rem;
  max-width: 13ch;
  font-size: clamp(1.55rem, 4vw, 2.85rem);
}

h2 {
  margin-top: 0.4rem;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

h3 {
  font-size: clamp(1.35rem, 3.4vw, 2rem);
}

.hero-text {
  max-width: 58ch;
  margin: 1.15rem 0 0;
  font-size: 1.06rem;
  color: rgba(255, 249, 243, 0.88);
}

.hero-actions,
.cta-actions,
.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.88rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--surface-strong);
  color: var(--accent-strong);
}

.button.ghost {
  border: 1px solid rgba(255, 250, 242, 0.35);
  color: #fffaf2;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  background: var(--accent);
  color: var(--button-ink);
}

.hero-panel,
.info-card,
.story-card,
.resource-card,
.cta-shell,
.portrait-card,
.card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.5rem;
  border-radius: 1.75rem;
}

.hero-stream {
  width: 100%;
  margin-top: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.28);
}

.hero-stream iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body[data-live-stream='off'] .hero-stream,
.hero-stream[hidden] {
  display: none;
}

.hero-panel .text-link + .text-link {
  margin-left: 1rem;
}

.instagram-section {
  padding: clamp(3rem, 7vw, 5.75rem) 5vw;
  background:
    radial-gradient(circle at 90% 10%, rgba(157, 23, 38, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(244, 239, 230, 0.92));
}

.instagram-feed-demo {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: rgba(255, 251, 244, 0.88);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.instagram-feed-demo .panel-kicker {
  color: var(--accent);
}

.instagram-feed-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.25rem;
}

.instagram-feed-heading h2 {
  max-width: 42rem;
  margin-top: 0.35rem;
  color: var(--accent-strong);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.instagram-follow {
  flex: 0 0 auto;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(157, 23, 38, 0.18);
  border-radius: 999px;
  background: rgba(157, 23, 38, 0.08);
  color: var(--accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.instagram-feed-intro {
  max-width: 42rem;
  margin: 0.85rem 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.instagram-carousel {
  min-height: 26rem;
}

.instagram-post-card {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2.8vw, 2rem);
  align-items: stretch;
  height: clamp(26rem, 32vw, 30rem);
  min-height: 26rem;
  padding: clamp(0.7rem, 1.6vw, 1rem);
  border: 1px solid rgba(31, 33, 48, 0.1);
  border-radius: 1.35rem;
  background: #fffaf2;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.instagram-post-card:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 23, 38, 0.24);
  box-shadow: 0 14px 28px rgba(23, 17, 10, 0.12);
}

.instagram-post-card:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

.instagram-post-media {
  width: 100%;
  height: 100%;
  min-height: 21rem;
  border-radius: 1rem;
  object-fit: cover;
  background: var(--accent-soft);
}

.instagram-post-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 0;
  overflow: hidden;
  padding: clamp(0.5rem, 1.7vw, 1rem) clamp(0.3rem, 1vw, 0.7rem) clamp(0.5rem, 1.7vw, 1rem) 0;
}

.instagram-label,
.instagram-date {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.instagram-caption {
  max-width: 36rem;
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.instagram-card-link {
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 800;
}

.instagram-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.instagram-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.85rem;
}

.instagram-control {
  min-height: 2.35rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(31, 33, 48, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.82);
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.instagram-control:hover {
  background: var(--accent-soft);
}

.instagram-dots {
  display: flex;
  justify-content: center;
  gap: 0.38rem;
}

.instagram-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 33, 48, 0.24);
  cursor: pointer;
}

.instagram-dot[aria-current='true'] {
  width: 1.25rem;
  background: var(--accent);
}

.detail-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.detail-list li + li {
  margin-top: 0.45rem;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.hero .text-link {
  color: #fffaf2;
}

.inline-link {
  display: inline;
  margin-top: 0;
}

.section {
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}

.section-heading {
  max-width: 72rem;
  margin-bottom: 1.8rem;
}

.section-heading p:last-child {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 1.2rem;
  align-items: end;
}

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

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

.card {
  border-radius: 1.4rem;
  padding: 1.4rem;
  background: var(--surface-strong);
}

.card-number {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

.heritage-grid {
  align-items: start;
}

.quote-stack p {
  margin: 0 0 0.9rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-soft);
  color: var(--muted);
}

.belief-card {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.94), rgba(244, 235, 224, 0.92));
  box-shadow: var(--shadow);
}

.belief-list,
.archive-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.belief-list li + li,
.archive-list li + li {
  margin-top: 0.5rem;
}

.info-grid,
.ministry-layout,
.resource-grid,
.sermon-layout,
.sermon-list {
  display: grid;
  gap: 1rem;
}

.info-grid {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.info-card,
.story-card,
.resource-card {
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: rgba(255, 251, 244, 0.82);
  text-decoration: none;
}

.feature-card {
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  color: #fff8f1;
}

.feature-card .panel-kicker {
  color: rgba(255, 248, 241, 0.74);
}

.feature-card .detail-list {
  color: rgba(255, 248, 241, 0.9);
}

.ministry-layout {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

.story-card.large {
  min-height: 100%;
}

.portrait-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: 1.8rem;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.95), rgba(240, 230, 216, 0.88));
}

.portrait-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 241, 0.22);
}

.sermon-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  align-items: start;
}

.sermon-feature,
.sermon-item {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sermon-feature {
  padding: 1.6rem;
  border-radius: 1.75rem;
  background: linear-gradient(160deg, rgba(255, 251, 244, 0.95), rgba(243, 235, 222, 0.92));
}

.sermon-feature p:last-of-type {
  color: var(--muted);
}

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

.sermon-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.2rem;
  background: rgba(255, 251, 244, 0.86);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.sermon-item:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 33, 48, 0.22);
}

.sermon-date {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.resource-card {
  display: flex;
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  background-color: var(--surface-strong);
  background-image: none;
  background-size: cover;
  background-position: center;
  color: #fffaf2;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.18), rgba(10, 12, 18, 0.6));
}

.resource-card-about {
  background-image: url('/static/assets/navigation_menu_photos/nav1.dcf023e441.jpg');
}

.resource-card-connect {
  background-image: url('/static/assets/navigation_menu_photos/nav2.77889a4324.jpg');
}

.resource-card-sermons {
  background-image: url('/static/assets/navigation_menu_photos/nav3.b3bfbccff4.jpg');
}

.resource-card-events {
  background-image: url('/static/assets/navigation_menu_photos/nav4.a3d0f02d79.jpg');
}

.resource-card-newsletters {
  background-image: url('/static/assets/navigation_menu_photos/nav5.73c5179089.jpg');
}

.resource-label {
  color: rgba(255, 250, 242, 0.82);
}

.resource-card strong {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  color: #fffaf2;
}

.three-up .resource-card {
  min-height: 0;
  padding: 1rem;
}

.three-up .resource-card strong {
  font-size: 1.15rem;
}

.three-up .resource-card .resource-label {
  font-size: 0.68rem;
}

.visit-heading {
  max-width: 60rem;
}

.visit-heading h2 {
  max-width: 14ch;
}

.visit-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.visit-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 1.4rem;
  background: rgba(255, 251, 244, 0.9);
  box-shadow: var(--shadow);
  height: 100%;
}

.visit-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visit-intro p {
  margin: 0;
  color: var(--muted);
}

.visit-detail-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.visit-detail-row div {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(157, 23, 38, 0.08);
}

.visit-detail-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-detail-row strong {
  display: block;
  color: var(--accent-strong);
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  line-height: 1.15;
}

.visit-map {
  display: block;
  flex: 1 1 auto;
  min-height: 16rem;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(31, 33, 48, 0.06);
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: inherit;
}

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

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

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

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 251, 244, 0.95);
  color: var(--ink);
  font: inherit;
  padding: 0.82rem 0.95rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(157, 23, 38, 0.38);
  box-shadow: 0 0 0 3px rgba(157, 23, 38, 0.12);
}

.visit-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.visit-form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.visit-form-status {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.resource-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  align-content: center;
  justify-items: center;
  width: 100%;
  transform-origin: left center;
  transition: transform 180ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 250, 242, 0.36);
  box-shadow: 0 18px 36px rgba(23, 17, 10, 0.18);
}

.resource-card:hover .resource-card-copy,
.resource-card:focus-visible .resource-card-copy {
  transform: scale(1.05);
}

.resource-card:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

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

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

.archive-actions {
  align-items: center;
}

.alt-ghost {
  border-color: var(--line);
  background: rgba(255, 251, 244, 0.65);
  color: var(--accent-strong);
}

.cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, var(--accent-strong), var(--hero-end));
  color: #fffaf2;
}

.cta-shell .eyebrow {
  color: rgba(255, 249, 242, 0.74);
}

.site-footer {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-switch-label {
  white-space: nowrap;
}

.footer-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.footer-month {
  display: grid;
  gap: 0.4rem;
  min-width: 16.5rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-control-label {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-month-readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer-month-season {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-month-slider {
  width: min(20rem, 42vw);
  margin: 0;
  accent-color: var(--accent);
}

.footer-switch-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 3.25rem;
  height: 1.85rem;
  padding: 0.2rem;
  border: 1px solid rgba(31, 33, 48, 0.16);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.9);
  box-shadow: inset 0 1px 2px rgba(31, 33, 48, 0.08);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.footer-switch-thumb {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 1px 2px rgba(31, 33, 48, 0.18);
  transform: translateX(0);
  transition: transform 180ms ease, background-color 180ms ease;
}

.footer-switch-input:checked + .footer-switch-track {
  background: rgba(157, 23, 38, 0.14);
  border-color: rgba(157, 23, 38, 0.24);
}

.footer-switch-input:checked + .footer-switch-track .footer-switch-thumb {
  transform: translateX(1.35rem);
  background: var(--accent);
}

.footer-switch-input:focus-visible + .footer-switch-track {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .info-grid,
  .ministry-layout,
  .portrait-card,
  .sermon-layout,
  .resource-grid,
  .newsletter-grid,
  .cta-shell {
    grid-template-columns: 1fr;
  }

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

  .three-up .resource-card:last-child {
    grid-column: 1 / -1;
  }

  .three-up .resource-card {
    aspect-ratio: 16 / 10;
  }

  .visit-layout {
    grid-template-columns: 1fr;
  }

  .visit-map {
    min-height: 14rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 1.4rem;
    background: rgba(255, 251, 244, 0.97);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .instagram-post-card {
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1fr);
    height: clamp(22rem, 34vw, 25rem);
    min-height: 22rem;
  }

  .instagram-post-media {
    min-height: 16rem;
  }

  h1 {
    max-width: 13ch;
  }

  .card-grid,
  .three-up {
    grid-template-columns: 1fr;
  }

  .visit-layout {
    grid-template-columns: 1fr;
  }

  .site-footer-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-controls {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .instagram-section,
  .page-hero,
  .section,
  .site-footer {
    padding-inline: 1.1rem;
  }

  .site-footer-row {
    gap: 0.8rem;
  }

  .site-footer-controls {
    align-items: stretch;
  }

  .footer-month {
    min-width: 0;
    width: 100%;
  }

  .footer-month-slider {
    width: 100%;
  }

  .visit-map {
    min-height: 12rem;
  }

  h1 {
    font-size: clamp(1.5rem, 8vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .hero-panel,
  .card,
  .info-card,
  .story-card,
  .resource-card,
  .visit-card,
  .portrait-card,
  .cta-shell {
    border-radius: 1.2rem;
  }

  .visit-card {
    padding: 1rem;
  }

  .visit-detail-row,
  .visit-form-grid {
    grid-template-columns: 1fr;
  }

  .visit-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions,
  .hero-actions,
  .archive-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .instagram-feed-heading,
  .instagram-post-card {
    grid-template-columns: 1fr;
  }

  .instagram-feed-heading {
    display: grid;
  }

  .instagram-follow {
    width: fit-content;
  }

  .instagram-post-media {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .instagram-post-card {
    height: auto;
  }

  .three-up {
    gap: 0.75rem;
  }

  .three-up .resource-card {
    aspect-ratio: auto;
    min-height: 6.75rem;
    padding: 0.8rem;
  }

  .three-up .resource-card strong {
    font-size: 0.98rem;
  }

  .three-up .resource-card .resource-label {
    font-size: 0.62rem;
  }

  .visit-card {
    padding: 1.1rem;
    border-radius: 1.2rem;
  }

  .visit-map {
    min-height: 12rem;
  }

  .visit-detail-row,
  .visit-form-grid {
    grid-template-columns: 1fr;
  }

  .visit-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .instagram-controls {
    grid-template-columns: 1fr 1fr;
  }

  .instagram-dots {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .instagram-control {
    grid-row: 2;
  }
}
