:root {
  color-scheme: light;
  --ink: #14213a;
  --ink-soft: #506078;
  --navy: #101d35;
  --navy-light: #182b4c;
  --paper: #f7f9fc;
  --white: #ffffff;
  --blue: #2d67e3;
  --blue-light: #dbe7ff;
  --gold: #f2b84b;
  --line: #dce3ee;
  --max-width: 1180px;
  --radius: 20px;
  --shadow: 0 28px 70px rgba(15, 31, 58, 0.14);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
}

.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav > a:not(.nav-cta) {
  color: var(--ink-soft);
  transition: color 160ms ease;
}

.site-nav > a:not(.nav-cta):hover {
  color: var(--blue);
}

.nav-cta {
  padding: 10px 17px;
  border: 1px solid var(--navy);
  border-radius: 999px;
}

.menu-button {
  display: none;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 610px;
  margin: 0 auto;
  padding: 92px 0 105px;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 90px;
  align-items: center;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 4%;
  right: 8%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(45, 103, 227, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(45, 103, 227, 0.035), 0 0 0 124px rgba(45, 103, 227, 0.025);
  content: '';
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 25px;
  font-size: clamp(4rem, 9vw, 7.65rem);
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero-intro {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 23px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 760;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(45, 103, 227, 0.23);
  color: var(--white);
}

.text-link {
  font-size: 0.91rem;
  font-weight: 750;
}

.text-link span {
  margin-left: 6px;
  color: var(--blue);
}

.next-card {
  position: relative;
  min-height: 360px;
  padding: 38px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy);
  box-shadow: var(--shadow);
  color: var(--white);
}

.next-card::after {
  position: absolute;
  right: -65px;
  bottom: -105px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: '';
}

.orbital-mark {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 46px;
}

.orbital-mark span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.orbital-mark span:nth-child(2) {
  inset: 12px;
  border-color: var(--gold);
}

.orbital-mark span:nth-child(3) {
  inset: 31px;
  border: 0;
  background: var(--white);
}

.card-label {
  margin-bottom: 4px;
  color: #aebbd0;
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.next-card h2 {
  margin-bottom: 18px;
  font-size: 1.75rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.next-details {
  margin-bottom: 30px;
  color: #c7d1df;
  font-size: 0.9rem;
  line-height: 1.35;
}

.next-details p {
  margin-bottom: 7px;
}

.next-card > a {
  position: relative;
  z-index: 2;
  font-size: 0.84rem;
  font-weight: 700;
}

.next-card > a span {
  margin-left: 5px;
  color: var(--gold);
}

.values-strip {
  display: flex;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 22px 0;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.values-strip p {
  margin: 0;
}

.values-strip p::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--gold);
  content: '';
  vertical-align: 2px;
}

.section {
  padding: 120px max(20px, calc((100vw - var(--max-width)) / 2));
}

.section-heading {
  display: grid;
  margin-bottom: 56px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  gap: 70px;
  align-items: end;
}

.section-heading h2,
.visit-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p {
  margin-bottom: 2px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.event-card,
.loading-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card {
  min-height: 330px;
  padding: 29px;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  border-color: #bccbee;
  box-shadow: 0 20px 45px rgba(24, 47, 85, 0.09);
  transform: translateY(-4px);
}

.service-day {
  display: inline-flex;
  margin-bottom: 70px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card h3,
.event-card h3 {
  margin-bottom: 9px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.service-note {
  min-height: 51px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-meta {
  display: flex;
  padding-top: 17px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}

.service-time {
  color: var(--ink);
}

.sermons-section {
  background: var(--navy);
  color: var(--white);
}

.section-heading-light > p {
  color: #b5c0d0;
}

.sermon-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sermon-card {
  display: grid;
  padding: 30px 0;
  grid-template-columns: 64px minmax(0, 1fr) 180px;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: padding 180ms ease, background 180ms ease;
}

.sermon-card:hover {
  padding-right: 20px;
  padding-left: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.sermon-number {
  color: var(--gold);
  font-size: 0.79rem;
  font-weight: 800;
}

.sermon-meta {
  display: flex;
  margin-bottom: 7px;
  gap: 12px;
  color: #9baac0;
  font-size: 0.7rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sermon-meta span + span::before {
  margin-right: 12px;
  content: '·';
}

.sermon-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.sermon-summary {
  max-width: 680px;
  margin-bottom: 0;
  color: #b7c2d2;
  font-size: 0.87rem;
}

.sermon-person {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #dce3ee;
  font-size: 0.78rem;
}

.sermon-duration {
  color: #8292a9;
}

.sermon-listen {
  margin-top: 9px;
  color: var(--gold);
  font-weight: 760;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.event-card {
  display: flex;
  min-height: 345px;
  padding: 28px;
  flex-direction: column;
  justify-content: space-between;
}

.event-date {
  display: flex;
  width: 74px;
  height: 74px;
  padding: 12px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.event-description {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.event-meta {
  display: flex;
  margin-bottom: 0;
  padding-top: 16px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 650;
}

.event-registration {
  display: flex;
  margin-top: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-count {
  color: var(--ink-soft);
  font-size: .75rem;
}

.event-register {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 780;
}

.event-register span {
  margin-left: 3px;
}

.event-time {
  color: var(--ink);
}

.updates-section {
  display: grid;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto 110px;
  padding: clamp(36px, 7vw, 78px);
  grid-template-columns: minmax(0, 0.82fr) minmax(400px, 1fr);
  gap: clamp(45px, 8vw, 100px);
  align-items: center;
  border: 1px solid #cad8f0;
  border-radius: 30px;
  background: linear-gradient(135deg, #edf3ff, #ffffff 68%);
  box-shadow: 0 26px 65px rgba(28, 61, 118, 0.1);
}

.updates-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.updates-copy > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.subscription-form {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 20px 48px rgba(15, 31, 58, 0.08);
}

.subscription-fields {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 14px;
}

.subscription-fields label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
}

.subscription-fields input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #c7d3e5;
  border-radius: 13px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
}

.subscription-fields input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(45, 103, 227, 0.15);
}

.subscription-consent {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.subscription-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.subscription-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.button-subscribe {
  width: 100%;
  border: 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
}

.button-subscribe:disabled {
  cursor: wait;
  opacity: 0.68;
}

.subscription-status {
  min-height: 24px;
  margin: 15px 0 0;
  color: #20633b;
  font-size: 0.84rem;
  font-weight: 700;
}

.subscription-status.is-error {
  color: #ae2f20;
}

.subscription-privacy {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.subscription-privacy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.verification-page {
  display: grid;
  min-height: calc(100vh - 86px);
  padding: 60px 20px 100px;
  place-items: center;
}

.verification-card {
  width: min(100%, 650px);
  padding: clamp(36px, 7vw, 68px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.verification-card h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 5.4rem);
}

.verification-card > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.verification-card .button {
  margin-top: 12px;
}

.visit-section {
  display: grid;
  margin: 0 20px 20px;
  padding: 90px max(30px, calc((100vw - var(--max-width)) / 2));
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 70px;
  align-items: center;
  border-radius: 30px;
  background: var(--blue);
  color: var(--white);
}

.visit-section .eyebrow {
  color: #dbe7ff;
}

.visit-copy {
  color: #edf3ff;
}

.visit-copy p {
  margin-bottom: 26px;
}

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

footer {
  display: grid;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 180px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.79rem;
}

footer p {
  margin: 0;
}

footer p:last-child {
  text-align: right;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.legal-links {
  display: flex;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.legal-links a:hover {
  color: var(--blue);
}

.legal-page {
  min-height: calc(100vh - 190px);
  padding: 70px 20px 110px;
}

.legal-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.legal-card h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
}

.legal-card a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-footer {
  color: var(--ink);
}

.loading-card {
  padding: 28px;
  color: var(--ink-soft);
}

.loading-card-dark {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b5c0d0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 70px 0 90px;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero::before {
    top: auto;
    right: -20%;
    bottom: 6%;
  }

  .next-card {
    min-height: 330px;
  }

  .service-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .event-card {
    min-height: 280px;
  }

  .service-day {
    margin-bottom: 45px;
  }

  .section-heading,
  .visit-section,
  .updates-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .updates-section {
    margin-bottom: 80px;
  }

  .sermon-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .sermon-person {
    grid-column: 2;
    flex-direction: row;
    gap: 12px;
    align-items: center;
  }

  .sermon-duration::before {
    margin-right: 12px;
    content: '·';
  }

  .sermon-listen {
    margin-top: 0;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p:nth-child(2) {
    display: none;
  }

  .footer-meta {
    justify-items: end;
  }
}

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

  .menu-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 12px;
    place-content: center;
    gap: 6px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--white);
  }

  .site-nav {
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 10px 12px;
  }

  .nav-cta {
    margin-top: 5px;
    text-align: center;
  }

  .hero {
    padding-top: 60px;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 5.2rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .next-card {
    padding: 30px;
  }

  .values-strip {
    display: grid;
    padding: 24px 5px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .section-heading {
    margin-bottom: 40px;
  }

  .sermon-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
  }

  .sermon-card:hover {
    padding-right: 0;
    padding-left: 0;
  }

  .sermon-meta {
    flex-wrap: wrap;
  }

  .visit-section {
    margin: 0 10px 10px;
    padding: 64px 25px;
    border-radius: 24px;
  }

  .updates-section {
    width: min(calc(100% - 20px), var(--max-width));
    margin-bottom: 70px;
    padding: 42px 20px;
    border-radius: 24px;
  }

  .subscription-fields {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 45px 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  footer p:last-child {
    text-align: left;
  }

  .footer-meta {
    justify-items: start;
  }
}

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