:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #5f675f;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --surface-green: #eef6ef;
  --green: #285c46;
  --green-dark: #173f31;
  --river: #2f6f86;
  --wine: #8c2f39;
  --gold: #c08a2c;
  --stone: #d8d0c1;
  --border: #d9ddd4;
  --shadow: 0 18px 40px rgba(23, 35, 29, 0.12);
  --max: 1160px;
  --header-height: 76px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body,
button,
input,
textarea {
  font: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  box-shadow: var(--shadow);
  transition: transform 180ms 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: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(216, 208, 193, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(40, 92, 70, 0.25);
  border-radius: 4px;
  color: var(--green);
  background: var(--surface-green);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 0.35rem 0.72rem;
  color: #26332b;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(40, 92, 70, 0.09);
  color: var(--green-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.menu-lines {
  position: relative;
  margin: auto;
}

.menu-lines::before,
.menu-lines::after {
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -6px;
}

.menu-lines::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: clamp(620px, 86vh, 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--green-dark);
  padding: calc(var(--header-height) + 2.5rem) clamp(1rem, 5vw, 4rem) 4rem;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 32, 25, 0.88) 0%, rgba(12, 32, 25, 0.62) 43%, rgba(12, 32, 25, 0.22) 100%),
    linear-gradient(0deg, rgba(12, 32, 25, 0.44) 0%, rgba(12, 32, 25, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f3c16b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: 6.2rem;
}

h2 {
  font-size: 3.15rem;
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 680px;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: var(--gold);
  color: #1f211a;
}

.button.primary:hover {
  background: #d59b3b;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.54);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.button.outline {
  border-color: rgba(40, 92, 70, 0.35);
  color: var(--green-dark);
  background: var(--surface);
}

.placeholder-button {
  cursor: not-allowed;
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 760px;
  margin: 2.2rem 0 0;
}

.hero-notes div {
  min-width: 0;
  border-left: 3px solid #f3c16b;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.8rem 1rem;
  backdrop-filter: blur(10px);
}

.hero-notes dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-notes dd {
  margin: 0.2rem 0 0;
  color: #fff;
  font-weight: 700;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 1.4rem;
}

.section-heading.left {
  margin-bottom: 0;
}

.section-heading p,
.local-band p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.info-card,
.service-grid article,
.contact-card,
.life-list article,
.notice {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 35, 29, 0.06);
}

.info-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.info-card.accent {
  border-color: rgba(47, 111, 134, 0.28);
  background: #eef7f8;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: 4px;
  color: var(--surface);
  background: var(--green);
  font-weight: 900;
}

.info-card h3,
.service-grid h3,
.contact-card h3,
.life-list h3,
.notice h3 {
  margin-bottom: 0.7rem;
}

.info-card p,
.service-grid p,
.contact-card p,
.life-list p,
.notice p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.info-card a {
  margin-top: auto;
  color: var(--river);
  font-weight: 800;
}

.week-section {
  width: 100%;
  max-width: none;
  background: #f0f4ef;
  border-block: 1px solid var(--border);
  padding-inline: max(1rem, calc((100% - var(--max)) / 2));
}

.week-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 1rem;
}

.event-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  display: grid;
  grid-template-columns: minmax(88px, 0.18fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 1rem;
}

.event-list time {
  color: var(--wine);
  font-weight: 900;
}

.event-list strong,
.event-list span {
  display: block;
}

.event-list span {
  color: var(--muted);
}

.notice {
  align-self: stretch;
  padding: 1.25rem;
  background: #fff8ec;
  border-color: rgba(192, 138, 44, 0.38);
}

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

.service-grid article {
  min-height: 178px;
  padding: 1.25rem;
}

.service-grid article::before,
.life-list article::before {
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--gold);
  content: "";
}

.parish-life {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - var(--max)) / 2));
  background: #173f31;
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.parish-life .eyebrow {
  color: #f3c16b;
}

.parish-life .section-heading p,
.parish-life .life-list p {
  color: rgba(255, 255, 255, 0.78);
}

.life-list {
  display: grid;
  gap: 1rem;
}

.life-list article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  padding: 1.25rem;
}

.local-band {
  width: min(var(--max), calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  border-block: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3rem) 0;
}

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

.contact-card {
  min-height: 250px;
  padding: 1.25rem;
}

address.contact-card {
  font-style: normal;
}

.contact-card.soft {
  background: var(--surface-green);
}

.contact-card a:not(.button) {
  color: var(--river);
  font-weight: 800;
}

.contact-card .button {
  margin-top: 1rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  color: rgba(255, 255, 255, 0.78);
  background: #17231d;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .js .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 3rem) 1rem;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
    border-bottom: 1px solid rgba(216, 221, 212, 0.72);
  }

  .info-grid,
  .service-grid,
  .contact-grid,
  .week-layout,
  .split,
  .local-band {
    grid-template-columns: 1fr;
  }

  .info-card,
  .service-grid article,
  .contact-card {
    min-height: unset;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  h1 {
    max-width: 15ch;
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  h3 {
    font-size: 1.16rem;
  }

  .site-header {
    gap: 0.75rem;
  }

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

  .brand strong {
    font-size: 0.88rem;
  }

  .brand small {
    font-size: 0.76rem;
  }

  .hero {
    min-height: 88svh;
    align-items: end;
    padding-top: calc(var(--header-height) + 1.2rem);
    padding-bottom: 1.5rem;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(12, 32, 25, 0.92) 0%, rgba(12, 32, 25, 0.72) 56%, rgba(12, 32, 25, 0.2) 100%),
      linear-gradient(90deg, rgba(12, 32, 25, 0.55), rgba(12, 32, 25, 0.18));
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.2rem;
  }

  .hero-notes {
    display: none;
  }

  .button {
    width: 100%;
  }

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

}
