:root {
  --ink: #2f2a24;
  --muted: #6d665d;
  --paper: #fffdf8;
  --surface: #f6f1e9;
  --line: #e5ded2;
  --gold: #b88736;
  --green: #3f6f5a;
  --red: #8e3d32;
  --blue: #315f82;
  --shadow: 0 22px 60px rgba(48, 39, 27, 0.12);
  --header-offset: 88px;
  --header-offset-mobile: 148px;
  --hero-desktop-height: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

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

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

a {
  color: inherit;
}

[id],
.hero,
.announcement,
.content-section {
  scroll-margin-top: var(--header-offset);
}

#mass-times {
  scroll-margin-top: 88px;
}

.visually-hidden {
  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: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--gold);
  background: #fff8ea;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a,
.quick-links a {
  text-decoration: none;
}

.site-nav a:hover,
.quick-links a:hover,
.text-link:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  background: var(--ink);
  content: "";
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(4px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  height: var(--hero-desktop-height);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-media {
  height: 100%;
  background: var(--surface);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: clamp(36px, 7vw, 86px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(246, 241, 233, 0.94)),
    var(--paper);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.18rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.16rem;
}

.hero-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.feature-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.announcement {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--green);
  color: #fff;
}

.announcement .eyebrow,
.announcement p {
  color: #fff;
}

.announcement h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.announcement p:last-child {
  margin-bottom: 0;
}

.page-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) 0;
}

.quick-links {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-links h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.quick-links a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-content {
  display: grid;
  gap: 34px;
}

.content-section {
  padding: clamp(24px, 4vw, 42px) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 270px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.info-card:nth-child(2) {
  border-top: 4px solid var(--gold);
}

.info-card:nth-child(3) {
  border-top: 4px solid var(--blue);
}

.info-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.info-card strong,
.contact-list strong {
  color: var(--ink);
}

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.15fr);
  gap: 28px;
}

.text-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-weight: 700;
}

.feature-link {
  flex: 1 1 220px;
  min-height: 118px;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
}

.feature-link span {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-link strong {
  font-size: 1.25rem;
}

address {
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-list p {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.contact-list strong {
  display: block;
  margin-bottom: 3px;
}

.contact-list a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.saint-quote {
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
  border-left: 6px solid var(--gold);
  background: var(--surface);
  color: var(--ink);
}

.saint-quote p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.3;
}

.saint-quote cite {
  color: var(--muted);
  font-style: normal;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: var(--header-offset-mobile);
  }

  [id],
  .hero,
  .announcement,
  .content-section {
    scroll-margin-top: var(--header-offset-mobile);
  }

  #mass-times {
    scroll-margin-top: -24px;
  }

  main {
    padding-top: 0;
  }

  .hero {
    min-height: unset;
    height: auto;
    display: block;
    grid-template-columns: none;
    align-items: initial;
    padding-top: 0;
    overflow: visible;
  }

  .hero-media,
  .hero-content {
    min-height: unset;
    height: auto;
    overflow: visible;
  }

  .hero-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .site-header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    inset: 73px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .announcement,
  .page-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 320px;
  }

  .page-grid {
    width: min(100% - 28px, 720px);
  }

  .quick-links {
    position: static;
  }

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

@media (max-width: 560px) {
  main {
    padding-top: 0;
  }

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

  .brand small {
    display: none;
  }

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

  .hero-content {
    padding: 30px 20px 38px;
  }

  .hero-media {
    min-height: 260px;
  }

  .button {
    width: 100%;
  }
}
