:root {
  --midnight: #141514;
  --midnight-2: #1e211f;
  --midnight-3: #2a2d2b;
  --brass: #a68a5b;
  --brass-light: #d6c69a;
  --brass-deep: #78623e;
  --oxblood: #8b3a2f;
  --cream: #f4ede0;
  --parchment: #f7f0e5;
  --ink: #181916;
  --muted: #625f57;
  --paper: var(--cream);
  --soft: #faf5eb;
  --line: rgba(120, 98, 62, 0.22);
  --blue: var(--oxblood);
  --blue-dark: #6f2e26;
  --green: var(--brass);
  --charcoal: var(--midnight-2);
  --gold: var(--brass);
  --off-white: #f8f1e7;
  --shadow: 0 24px 64px rgba(20, 21, 20, 0.12);
  --theme-shell: 1320px;
  --theme-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background:
    radial-gradient(circle at 90% 4%, rgba(214, 198, 154, 0.2), transparent 27rem),
    var(--cream);
  color: var(--ink);
  font-family: "Inter", "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  content: "";
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

main {
  overflow: hidden;
  background: transparent;
}

h1,
h2,
h3,
.home-title,
.section-heading h2,
.feature-band h2,
.contact h2,
.site-footer h2 {
  font-family: "Manrope", "Montserrat", sans-serif;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}

.eyebrow {
  color: var(--brass-deep);
  font-family: "Barlow Condensed", "Montserrat", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.site-header {
  min-height: 104px;
  padding: 14px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(214, 198, 154, 0.27), rgba(244, 237, 224, 0.96) 40%, rgba(166, 138, 91, 0.16)),
    var(--parchment);
  border-bottom: 1px solid rgba(20, 21, 20, 0.13);
  backdrop-filter: blur(18px);
}

.logo {
  width: 172px;
}

.primary-nav {
  gap: 7px 25px;
  font-family: "Barlow Condensed", "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: none;
}

.primary-nav a {
  transition: color 180ms ease, transform 180ms var(--theme-ease);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--oxblood);
  transform: translateY(-1px);
}

.primary-nav .nav-give {
  min-height: 42px;
  padding: 10px 18px;
  color: var(--midnight);
  background: linear-gradient(135deg, var(--brass-light), var(--brass));
  border: 1px solid rgba(20, 21, 20, 0.12);
  border-radius: 6px;
}

.nav-toggle {
  background: var(--midnight);
  border-radius: 6px;
}

.page-hero {
  width: min(calc(100% - 72px), var(--theme-shell));
  min-height: 460px;
  margin: 34px auto 0;
  padding-inline: clamp(28px, 6vw, 86px);
  border: 1px solid rgba(20, 21, 20, 0.14);
  border-radius: 12px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 76% 4%, rgba(255, 230, 182, 0.28), transparent 32%),
    linear-gradient(92deg, rgba(20, 21, 20, 0.87), rgba(20, 21, 20, 0.48) 54%, rgba(139, 58, 47, 0.2));
}

.page-hero.compact {
  min-height: 390px;
}

.page-hero h1 {
  max-width: 850px;
  color: var(--cream);
  font-family: "Manrope", "Montserrat", sans-serif;
  font-size: clamp(3.15rem, 7.5vw, 6rem);
  font-weight: 650;
  line-height: 0.98;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(244, 237, 224, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.page-hero .eyebrow {
  color: var(--brass-light);
}

.section {
  position: relative;
  padding-block: clamp(72px, 9vw, 118px);
}

main > .section:nth-of-type(odd) {
  background:
    radial-gradient(circle at 9% 6%, rgba(214, 198, 154, 0.2), transparent 26rem),
    linear-gradient(180deg, #f8f2e8, var(--cream));
}

main > .section:nth-of-type(even) {
  background:
    radial-gradient(circle at 93% 20%, rgba(139, 58, 47, 0.1), transparent 25rem),
    linear-gradient(145deg, #f3eadc, #faf5eb);
}

.section-heading h2,
.contact h2,
.two-column h2,
.info-card h2,
.ministry-row h2,
.sermon-grid h2,
.subscribe h2,
.policy-copy h2,
.current-bulletin__heading h2 {
  color: var(--midnight);
  font-family: "Manrope", "Montserrat", sans-serif;
}

.staff-card h3,
.directory-card h3,
.group-card h3,
.wednesday-program-card h3,
.quick-links strong {
  font-family: "Manrope", "Montserrat", sans-serif;
  letter-spacing: -0.035em;
}

.section-heading p:not(.eyebrow),
.story p,
.info-card p,
.staff-card p,
.embed-note,
.policy-copy p,
.current-bulletin__heading p:not(.eyebrow) {
  color: var(--muted);
}

.info-card,
.directory-card,
.group-card,
.staff-card,
.event-card,
.map-frame,
.map-copy,
.wednesday-program-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(214, 198, 154, 0.11)),
    var(--soft);
  box-shadow: 0 18px 42px rgba(20, 21, 20, 0.07);
  transition: transform 220ms var(--theme-ease), box-shadow 220ms ease, border-color 220ms ease;
}

.info-card:hover,
.directory-card:hover,
.group-card:hover,
.staff-card:hover,
.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(166, 138, 91, 0.55);
  box-shadow: 0 24px 50px rgba(20, 21, 20, 0.11);
}

.staff-card img {
  border: 4px solid rgba(214, 198, 154, 0.5);
  filter: saturate(0.88) contrast(1.02);
}

.button {
  border-width: 1px;
  border-radius: 7px;
  font-family: "Barlow Condensed", "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 180ms var(--theme-ease), background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--midnight);
  background: linear-gradient(135deg, var(--brass-light), var(--brass));
  border-color: rgba(20, 21, 20, 0.1);
}

.button.primary:hover,
.button.primary:focus-visible {
  color: var(--cream);
  background: var(--oxblood);
}

.button.secondary.dark {
  color: var(--midnight);
  border-color: rgba(20, 21, 20, 0.58);
}

.text-link {
  color: var(--oxblood);
  border-bottom-color: var(--brass);
  font-family: "Barlow Condensed", "Montserrat", sans-serif;
  font-weight: 600;
  text-underline-offset: 5px;
}

.quick-links {
  gap: 1px;
  padding: 1px;
  background: rgba(166, 138, 91, 0.35);
}

.quick-links a {
  color: var(--cream);
  background:
    radial-gradient(circle at 100% 0, rgba(214, 198, 154, 0.16), transparent 50%),
    var(--midnight);
}

.quick-links a:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0, rgba(244, 237, 224, 0.14), transparent 46%),
    #704037;
}

.quick-links a:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0, rgba(214, 198, 154, 0.17), transparent 48%),
    var(--midnight-2);
}

.quick-links span {
  color: var(--brass-light);
  font-family: "Barlow Condensed", "Montserrat", sans-serif;
  letter-spacing: 0.18em;
}

.featured-event-list > a {
  background: linear-gradient(145deg, #fffaf1, #f2e7d7);
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: 0 13px 28px rgba(20, 21, 20, 0.07);
}

.featured-event-list > a:hover,
.featured-event-list > a:focus-visible {
  border-color: var(--brass);
  box-shadow: 0 18px 34px rgba(20, 21, 20, 0.12);
}

.featured-event-date {
  color: var(--midnight);
  background: rgba(214, 198, 154, 0.28);
  border-left-color: var(--oxblood);
}

.featured-event-date strong {
  color: var(--oxblood);
}

.current-bulletin__frame-shell,
.churchcenter-calendar-frame,
.video-frame,
.deferred-video,
.wednesday-arrival__map {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf1;
  box-shadow: var(--shadow);
}

.current-bulletin__heading {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.bulletin-promo,
.feature-band,
.college-connection,
.church-center-promo,
.home-family-resources {
  color: var(--cream);
  background:
    radial-gradient(circle at 90% 10%, rgba(214, 198, 154, 0.22), transparent 32%),
    linear-gradient(120deg, var(--midnight-2), var(--midnight));
  border-color: rgba(166, 138, 91, 0.35);
}

.college-connection h2,
.church-center-promo__copy h2,
.home-family-resources h2,
.feature-band h2 {
  color: var(--brass-light);
}

.college-connection p:not(.eyebrow),
.church-center-promo__copy > p:not(.eyebrow),
.feature-band p:not(.eyebrow) {
  color: rgba(244, 237, 224, 0.76);
}

.wednesday-kids-hero {
  background:
    radial-gradient(circle at 78% 8%, rgba(245, 208, 126, 0.3), transparent 27%),
    linear-gradient(130deg, #562f29, var(--midnight-2) 70%);
}

.wednesday-programs {
  background: linear-gradient(180deg, #f8f1e7, #f2e6d5);
}

.wednesday-program-card {
  border-top-color: var(--brass);
}

.wednesday-program-card--sunbeams { border-top-color: #d3a541; }
.wednesday-program-card--mission-friends { border-top-color: #9a694d; }
.wednesday-program-card--ga { border-top-color: #9a4e55; }
.wednesday-program-card--ra { border-top-color: #6b716c; }

.wednesday-program-card::after {
  background: rgba(214, 198, 154, 0.16);
}

.wednesday-program-card__audience,
.wednesday-kids-intro .wednesday-kids-intro__note,
.schedule-note {
  color: var(--oxblood);
}

.site-footer,
.family-footer {
  color: rgba(244, 237, 224, 0.74);
  background:
    radial-gradient(circle at 82% 8%, rgba(166, 138, 91, 0.2), transparent 28rem),
    var(--midnight);
  border-top: 1px solid rgba(166, 138, 91, 0.35);
}

.site-footer h2,
.site-footer h3,
.family-footer h2,
.family-footer h3 {
  color: var(--brass-light);
}

.site-footer a:hover,
.site-footer a:focus-visible,
.family-footer a:hover,
.family-footer a:focus-visible {
  color: var(--brass-light);
}

input,
textarea,
select {
  color: var(--ink);
  background: #fffaf1;
  border-color: var(--line);
  border-radius: 6px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brass);
  outline: 3px solid rgba(166, 138, 91, 0.17);
}

@media (max-width: 980px) {
  .site-header {
    min-height: 82px;
  }

  .primary-nav {
    background: linear-gradient(165deg, var(--parchment), #eadcc8);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 36px rgba(20, 21, 20, 0.13);
  }

  .primary-nav .nav-give {
    display: inline-flex;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .page-hero {
    width: min(calc(100% - 28px), var(--theme-shell));
    min-height: 350px;
    margin-top: 14px;
    padding-inline: 24px;
    border-radius: 9px;
  }

  .page-hero.compact {
    min-height: 330px;
  }

  .page-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .current-bulletin__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer,
  .family-footer {
    gap: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body::before { display: none; }
  .page-hero { width: 100%; margin: 0; box-shadow: none; }
}
