:root {
  --ink: #191613;
  --charcoal: #27221d;
  --olive: #313b2d;
  --olive-soft: #69735d;
  --paper: #f3ecdf;
  --vellum: #fbf8ef;
  --ash: #d7cfbf;
  --clay: #c46f45;
  --blue: #6f8790;
  --white: #ffffff;
  --shadow: 0 26px 80px rgba(25, 22, 19, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  text-wrap: balance;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 900px;
  font-size: clamp(4.4rem, 10.6vw, 12rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 6.3rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
}

p,
dd {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--vellum);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 54px);
  color: var(--vellum);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(243, 236, 223, 0.95);
  color: var(--ink);
  box-shadow: 0 10px 35px rgba(25, 22, 19, 0.09);
  padding-block: 14px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand-mark::before {
  width: 2px;
  height: 20px;
}

.brand-mark::after {
  width: 13px;
  height: 2px;
  top: 43%;
}

.brand-name,
.brand-subtitle {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav a {
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
}

.nav-toggle span {
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: clip;
  color: var(--vellum);
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  background-image: url("assets/chapel-interior-hero.webp");
  background-size: cover;
  background-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 22, 19, 0.82) 0%, rgba(25, 22, 19, 0.5) 48%, rgba(25, 22, 19, 0.1) 100%),
    linear-gradient(180deg, rgba(25, 22, 19, 0.44) 0%, rgba(25, 22, 19, 0.04) 46%, rgba(25, 22, 19, 0.88) 100%);
}

.hero-grid {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding-top: 118px;
  padding-bottom: clamp(118px, 14vh, 170px);
}

.hero-content {
  max-width: 920px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.eyebrow.dark {
  color: var(--olive-soft);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(251, 248, 239, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  background: var(--clay);
  color: var(--vellum);
}

.button-quiet {
  border-color: rgba(251, 248, 239, 0.56);
  color: var(--vellum);
  background: rgba(25, 22, 19, 0.1);
  backdrop-filter: blur(12px);
}

.button-dark {
  background: var(--ink);
  color: var(--vellum);
}

.hero-note {
  padding: 22px;
  border: 1px solid rgba(251, 248, 239, 0.32);
  border-radius: 8px;
  background: rgba(25, 22, 19, 0.32);
  backdrop-filter: blur(18px);
}

.hero-note span,
.rule-strip span,
.visit-list dt,
.event-item span,
.event-date,
.series-row span,
.repair-list span,
.rule-list span {
  display: block;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-note strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-note p {
  margin: 14px 0 0;
  color: rgba(251, 248, 239, 0.78);
}

.rule-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(251, 248, 239, 0.2);
  background: rgba(25, 22, 19, 0.58);
  backdrop-filter: blur(18px);
}

.rule-strip span {
  min-height: 64px;
  display: grid;
  place-items: center;
  color: rgba(251, 248, 239, 0.84);
  border-right: 1px solid rgba(251, 248, 239, 0.16);
}

.section-inner {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.section-pad {
  padding: clamp(88px, 12vw, 162px) 0;
}

.section-band {
  padding: clamp(84px, 10vw, 132px) 0;
  background: var(--vellum);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.55fr 1.15fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro-copy p,
.week-copy p,
.sermon-feature p,
.repair-copy p,
.rule-copy p {
  margin: 0;
  color: rgba(25, 22, 19, 0.72);
  font-size: 1.07rem;
}

.visit-list {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
}

.visit-list div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid rgba(25, 22, 19, 0.14);
}

.visit-list dd {
  margin: 0;
  font-weight: 800;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  margin-bottom: 52px;
}

.section-heading h2 {
  max-width: 860px;
}

.sequence {
  background: var(--vellum);
}

.sequence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(25, 22, 19, 0.14);
  border-left: 1px solid rgba(25, 22, 19, 0.14);
}

.sequence-item {
  min-height: 310px;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(25, 22, 19, 0.14);
  border-bottom: 1px solid rgba(25, 22, 19, 0.14);
}

.sequence-item span {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.9;
}

.sequence-item h3,
.repair-list h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  font-weight: 500;
}

.sequence-item p,
.event-detail p,
.repair-list p {
  color: rgba(25, 22, 19, 0.68);
}

.rule {
  background: var(--olive);
  color: var(--vellum);
}

.rule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
}

.rule-copy p {
  max-width: 620px;
  margin-top: 24px;
  color: rgba(251, 248, 239, 0.74);
}

.rule-list {
  border-top: 1px solid rgba(251, 248, 239, 0.22);
}

.rule-list div {
  padding: 24px 0;
  border-bottom: 1px solid rgba(251, 248, 239, 0.22);
}

.rule-list span {
  color: var(--ash);
}

.rule-list strong {
  display: block;
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2.6vw, 2.2rem);
  font-weight: 500;
  line-height: 1.08;
}

.week {
  background: var(--paper);
}

.week-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.week-copy p {
  max-width: 560px;
  margin-top: 22px;
}

.event-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-item {
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(25, 22, 19, 0.16);
  border-radius: 8px;
  background: var(--vellum);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

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

.event-item.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--vellum);
}

.event-item.is-active span {
  color: var(--ash);
}

.event-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
  text-wrap: balance;
}

.event-detail {
  min-height: 300px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(25, 22, 19, 0.16);
  border-radius: 8px;
  background: var(--vellum);
  box-shadow: var(--shadow);
}

.event-date {
  color: var(--clay);
}

.event-detail h3 {
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 500;
}

.event-detail p {
  margin-top: 18px;
}

.event-detail a {
  display: inline-block;
  margin-top: 28px;
  color: var(--clay);
  font-weight: 900;
}

.sermons {
  background: var(--vellum);
}

.sermons-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.sermon-feature p {
  max-width: 620px;
  margin-top: 22px;
}

.sermon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.sermon-meta span {
  padding: 9px 11px;
  border: 1px solid rgba(25, 22, 19, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(25, 22, 19, 0.78);
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.sermon-panel {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--vellum);
  box-shadow: var(--shadow);
}

.sermon-progress {
  height: 8px;
  background: rgba(251, 248, 239, 0.16);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}

.sermon-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--clay);
  transition: width 700ms ease;
}

.series-row {
  padding: 20px 0;
  border-top: 1px solid rgba(251, 248, 239, 0.18);
}

.series-row span {
  color: var(--ash);
}

.series-row strong {
  display: block;
  margin-top: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.72rem);
  font-weight: 500;
}

.repair {
  background: var(--paper);
}

.repair-grid {
  display: grid;
  grid-template-columns: 0.45fr 0.9fr 1.2fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.repair-copy p {
  margin-top: 22px;
}

.repair-list {
  border-top: 1px solid rgba(25, 22, 19, 0.14);
}

.repair-list article {
  padding: 22px 0;
  border-bottom: 1px solid rgba(25, 22, 19, 0.14);
}

.repair-list h3 {
  margin-top: 12px;
}

.repair-list p {
  margin: 10px 0 0;
}

.site-footer {
  background: var(--ink);
  color: rgba(251, 248, 239, 0.76);
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 32px;
}

.footer-brand {
  color: var(--vellum);
  margin-bottom: 22px;
}

.site-footer h2 {
  color: var(--vellum);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer p {
  margin: 9px 0 0;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: normal;
  word-break: normal;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 248, 239, 0.14);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .site-nav {
    position: fixed;
    inset: 72px 18px auto;
    display: grid;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--vellum);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav.is-open,
  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 15px 14px;
  }

  .hero {
    min-height: 90svh;
  }

  .hero-media {
    background-position: 57% center;
  }

  .hero-grid,
  .intro-grid,
  .section-heading,
  .rule-grid,
  .week-grid,
  .event-shell,
  .sermons-grid,
  .repair-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-note {
    max-width: 420px;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-grid {
    padding-top: 104px;
    padding-bottom: 164px;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6.4rem);
  }

  h2 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    padding-inline: 14px;
  }

  .hero-note {
    display: none;
  }

  .rule-strip {
    font-size: 0.72rem;
  }

  .section-pad,
  .section-band {
    padding-block: 76px;
  }

  .sequence-grid {
    grid-template-columns: 1fr;
  }

  .sequence-item {
    min-height: 250px;
  }

  .visit-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
