:root {
  color-scheme: light;
  --ink: #20261f;
  --muted: #62665f;
  --paper: #f6f3ec;
  --surface: #ffffff;
  --surface-green: #eef0e7;
  --green: #59643b;
  --green-dark: #26372a;
  --green-section: #2f4334;
  --river: #416f9f;
  --wine: #8b4d3a;
  --gold: #c49a5b;
  --stone: #d7cbb6;
  --border: #d7d5cc;
  --shadow: 0 18px 40px rgba(32, 38, 31, 0.12);
  --max: 1160px;
  --header-height: 76px;
  --font-body:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

.site-notice {
  border-top: 1px solid rgba(139, 77, 58, 0.22);
  border-bottom: 1px solid rgba(139, 77, 58, 0.22);
  background: #f1e9dd;
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.site-notice-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  border-left: 4px solid var(--wine);
  padding-left: clamp(1rem, 3vw, 1.5rem);
}

.site-notice h2 {
  margin: 0 0 0.35rem;
  color: var(--green-dark);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.site-notice p {
  max-width: 76ch;
  margin: 0;
}

.site-notice .notice-language {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: italic;
}

:focus-visible {
  outline: 3px solid var(--river);
  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(246, 243, 236, 0.93);
  border-bottom: 1px solid rgba(215, 203, 182, 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(89, 100, 59, 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;
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.language-switch {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(89, 100, 59, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0.2rem;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.language-switch a {
  border-radius: 3px;
  padding: 0.28rem 0.4rem;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a[aria-current="page"] {
  background: var(--surface-green);
  color: var(--green-dark);
}

.language-switch span {
  color: rgba(89, 100, 59, 0.42);
}

.site-nav {
  margin-left: auto;
  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: #2c372e;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(89, 100, 59, 0.11);
  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-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  display: block;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 14%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(24, 34, 26, 0.84) 0%, rgba(24, 34, 26, 0.66) 33%, rgba(24, 34, 26, 0.24) 57%, rgba(24, 34, 26, 0) 77%),
    linear-gradient(0deg, rgba(22, 31, 24, 0.34) 0%, rgba(22, 31, 24, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 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: #e4bd7d;
  text-shadow: 0 2px 14px rgba(12, 18, 14, 0.34);
}

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

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
}

h1 {
  max-width: 14ch;
  font-size: 4.9rem;
}

h2 {
  font-size: 3rem;
}

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-content h1,
.hero-copy,
.pdf-status {
  text-shadow: 0 2px 18px rgba(12, 18, 14, 0.34);
}

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

.pdf-status {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 700;
}

.pdf-status[data-state="missing"],
.pdf-status[data-state="error"] {
  color: #f3d6a7;
}

.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(--green);
  color: #fff;
}

.button.primary:hover {
  background: #47512f;
}

.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(89, 100, 59, 0.42);
  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 #e4bd7d;
  background: rgba(255, 255, 255, 0.1);
  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(32, 38, 31, 0.06);
}

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

.info-card.accent {
  border-color: rgba(65, 111, 159, 0.28);
  background: #edf3f7;
}

.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: #f0f1e9;
  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;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #faf3e7;
  border-color: rgba(196, 154, 91, 0.42);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: var(--river);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

.service-grid article {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  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: var(--green-section);
  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: #e4bd7d;
}

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

.local-band h3 {
  margin-top: 1.4rem;
  font-size: 1rem;
}

.commune-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.commune-list li {
  border: 1px solid rgba(65, 111, 159, 0.24);
  border-radius: 4px;
  background: var(--surface);
  color: var(--green-dark);
  padding: 0.35rem 0.55rem;
  font-size: 0.9rem;
  font-weight: 700;
}

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

.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  margin-top: 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--surface-green);
}

.plain-main {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(3rem, 7vw, 5rem)) 0 clamp(4rem, 8vw, 7rem);
}

.plain-hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.plain-hero h1 {
  max-width: 16ch;
  color: var(--green-dark);
  font-size: clamp(2.4rem, 8vw, 4.8rem);
}

.plain-content {
  display: grid;
  gap: 1.2rem;
}

.plain-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(32, 38, 31, 0.06);
}

.plain-panel h2,
.plain-panel h3 {
  margin-bottom: 0.7rem;
}

.plain-panel p,
.plain-panel li {
  color: var(--muted);
}

.plain-panel a {
  color: var(--river);
  font-weight: 800;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.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: var(--ink);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

  h2 {
    font-size: 2.7rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 1.75rem);
    padding-bottom: 3rem;
  }

  .hero-content {
    width: min(680px, 100%);
  }

  .hero-image {
    object-position: 52% 15%;
  }
}

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

  h2 {
    font-size: 2.5rem;
  }

  .hero-image {
    object-position: 54% 18%;
  }

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

  .site-nav {
    position: absolute;
    margin-left: 0;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 3rem) 1rem;
    background: rgba(246, 243, 236, 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(215, 213, 204, 0.78);
  }

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

  .header-actions {
    gap: 0.45rem;
  }

  .language-switch {
    min-height: 34px;
    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(22, 31, 24, 0.88) 0%, rgba(22, 31, 24, 0.66) 46%, rgba(22, 31, 24, 0.22) 74%, rgba(22, 31, 24, 0) 100%),
      linear-gradient(90deg, rgba(22, 31, 24, 0.22), rgba(22, 31, 24, 0.04));
  }

  .hero-image {
    object-position: 58% center;
  }

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

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

  .pdf-status {
    font-size: 0.88rem;
  }

  .hero-notes {
    display: none;
  }

  .button {
    width: 100%;
  }

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

}
