:root {
  --navy: #152838;
  --navy-2: #1d3649;
  --ink: #1a242f;
  --steel: #243848;
  --paper: #f3efe6;
  --paper-2: #e7e0d4;
  --card: #fffdf8;
  --line: #d5cdc0;
  --bronze: #7a5430;
  --link: #0f3f66;
  --focus: #b86a1d;
  --serif: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: #fff;
  color: #000;
  padding: 0.55rem 0.9rem;
  border: 2px solid #000;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #f6f1e7;
  border-bottom: 4px solid #8d6740;
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0 0.85rem;
}

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

.brand img {
  width: 42px;
  height: auto;
  background: #f6f1e7;
  padding: 0.15rem;
}

.brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.25;
}

.brand-place {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: #e4d8c8;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.a11y-toggle,
.menu-toggle {
  font: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: transparent;
  border: 1px solid #f6f1e7;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.a11y-toggle:hover,
.menu-toggle:hover {
  background: #f6f1e7;
  color: var(--navy);
}

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

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

.nav-list,
.submenu,
.section-nav ul,
.directory ul,
.times {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: grid;
  gap: 0.15rem;
  padding: 0.35rem 0 1rem;
}

.nav-list > li > a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.15rem;
}

.submenu {
  display: grid;
  gap: 0.1rem;
  padding: 0 0 0.55rem 0.85rem;
}

.submenu a {
  color: #f6f1e7;
  text-decoration: none;
  padding: 0.2rem 0;
  display: inline-block;
}

.nav-list a:hover,
.submenu a:hover,
.nav-list a[aria-current="page"],
.submenu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.page {
  padding: 1.35rem 0 3rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
}

.crumbs a {
  color: var(--steel);
}

.page-head h1,
.home-intro h1 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--steel);
}

.wordmark {
  display: block;
  width: min(100%, 640px);
  margin: 0.4rem 0 0;
}

.home-top {
  display: grid;
  gap: 1.4rem;
  align-items: start;
  padding-top: 1.4rem;
}

.schedule {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 7px solid var(--navy);
  padding: 1.15rem 1rem 1.25rem;
}

.schedule h2,
.block h2,
.directory h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.25;
}

.schedule h3 {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a2e22;
}

.schedule-cols {
  display: grid;
  gap: 1.1rem;
}

.times div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
}

.times dt {
  font-weight: 700;
}

.times dd {
  margin: 0;
}

.schedule-notes {
  margin-top: 0.9rem;
}

.schedule-notes p,
.prose p {
  margin: 0.7rem 0;
}

.saint-pair {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.saint-card {
  display: grid;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.75rem;
}

.saint-card span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
}

.saint-card figure {
  border: 0;
  padding: 0;
  background: transparent;
}

.block {
  margin-top: 2.2rem;
}

.prose {
  max-width: none;
  text-align: justify;
  overflow-wrap: anywhere;
}

.prose h2 {
  margin: 1.6rem 0 0.55rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.3;
}

.prose strong {
  font-weight: 700;
}

.with-media {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
  align-items: start;
}

.portrait img,
.icon-portrait img,
.map-sheet img,
.banner-sheet img,
.calendar-sheet img {
  display: block;
  width: 100%;
  height: auto;
}

.icon-portrait {
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.6rem;
}

.portrait {
  max-width: 320px;
}

.map-sheet,
.banner-sheet,
.calendar-sheet {
  margin: 0.4rem 0 1rem;
}

.calendar-sheet {
  max-width: 100%;
}

.contact-split {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.4rem;
}

.contact-copy {
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.contact-copy p {
  margin: 0.7rem 0;
}

.contact-map {
  min-width: 0;
  order: -1;
}

.contact-map iframe {
  display: block;
  width: 100%;
  max-width: 500px;
  height: 400px;
  border: 0;
}

.section-nav {
  margin: 1rem 0 1.4rem;
}

.section-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.section-nav a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}

.section-nav a[aria-current="page"] {
  background: var(--navy);
  color: #f6f1e7;
  border-color: var(--navy);
}

.directory {
  margin: 2.2rem 0 0.4rem;
}

.section-groups {
  display: grid;
  gap: 1rem;
}

.section-groups article {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem 1rem;
}

.section-groups h3 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.section-groups h3 a {
  color: inherit;
}

.directory li + li {
  margin-top: 0.28rem;
}

.site-footer {
  background: var(--navy);
  color: #f6f1e7;
  padding: 1.8rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-grid a {
  color: #fff;
}

.footer-name {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.site-footer p {
  margin: 0.3rem 0;
}

@media (max-width: 700px) {
  .header-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0 0.35rem;
  }

  .brand {
    flex: 1 1 auto;
    gap: 0.4rem;
    min-width: 0;
  }

  .brand > span {
    min-width: 0;
  }

  .brand img {
    width: 32px;
    flex-shrink: 0;
    padding: 0.06rem;
  }

  .brand-name {
    font-size: 0.9rem;
    line-height: 1.15;
  }

  .brand-place {
    margin-top: 0;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .header-tools {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.28rem;
    width: 8.6rem;
    max-width: 44%;
  }

  .a11y-toggle,
  .menu-toggle {
    font-size: 0.78rem;
    line-height: 1.15;
    padding: 0.32rem 0.45rem;
    min-height: 2.05rem;
    white-space: normal;
    text-align: center;
  }

  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (min-width: 640px) {
  .saint-pair {
    grid-template-columns: 1fr 1fr;
    max-width: 760px;
  }
}

@media (min-width: 800px) {
  .schedule-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .with-media.side {
    grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  }

  .contact-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .contact-map {
    order: 0;
  }

  .section-groups {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: end;
  }
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

html.nav-open body {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

@media (max-width: 1023px) {
  html.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .js .site-nav.is-open {
    display: block;
    position: fixed;
    z-index: 45;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background: var(--navy);
    color: #f6f1e7;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .nav-list {
    padding-bottom: 1.25rem;
  }

  .nav-list > li > a,
  .submenu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    overflow-wrap: anywhere;
  }

  .submenu {
    padding: 0 0 0.2rem 0.35rem;
  }
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .js .site-nav,
  .site-nav {
    display: block;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    padding: 0 0 0.85rem;
  }

  .nav-list > li {
    position: relative;
  }

  .nav-list > li > a {
    padding: 0.35rem 0.55rem;
  }

  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 16.5rem;
    padding: 0.45rem 0.7rem 0.6rem;
    background: #fffdf8;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(21, 40, 56, 0.12);
  }

  .nav-list > li:nth-last-child(-n + 2) > .submenu {
    left: auto;
    right: 0;
  }

  .submenu a {
    color: var(--ink);
  }

  .nav-list > li:hover > .submenu,
  .nav-list > li:focus-within > .submenu {
    display: grid;
  }

  .home-top {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1.75rem;
    padding-top: 1.8rem;
  }

  .section-groups {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

html.a11y {
  --navy: #000;
  --navy-2: #000;
  --ink: #000;
  --steel: #000;
  --paper: #fff;
  --paper-2: #fff;
  --card: #fff;
  --line: #000;
  --bronze: #000;
  --link: #0000c8;
  --focus: #000;
  font-size: 125%;
  background: #fff;
  color: #000;
}

html.a11y body {
  background: #fff;
  color: #000;
}

html.a11y .site-header,
html.a11y .site-footer,
html.a11y .site-nav.is-open {
  background: #fff;
  color: #000;
  border-color: #000;
}

html.a11y .brand,
html.a11y .brand-place,
html.a11y .site-header a,
html.a11y .submenu a,
html.a11y .site-footer a {
  color: #000;
}

html.a11y .a11y-toggle,
html.a11y .menu-toggle {
  border: 2px solid #000;
  background: #fff;
  color: #000;
}

html.a11y .a11y-toggle:hover,
html.a11y .menu-toggle:hover {
  background: #000;
  color: #fff;
}

html.a11y a {
  color: #0000c8;
  text-decoration: underline;
}

html.a11y .section-nav a[aria-current="page"] {
  background: #000;
  color: #fff;
  border-color: #000;
}

html.a11y .submenu {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  box-shadow: none;
}

html.a11y :focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

html.a11y a:focus-visible,
html.a11y button:focus-visible {
  background: #fff3a0;
  color: #000;
}

html.a11y *,
html.a11y *::before,
html.a11y *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
