:root {
  --palermo-sky: #88AAFF;
  --chapel-parchment: #F7F2E2;
  --votive-gold: #D6B85A;
  --parish-burgundy: #B71C2B;
  --marian-navy: #174C7C;
  --ink-brown: #2E261F;
  --surface: #FEF9E9;
  --white: #FFFFFF;
  --shadow: 0 18px 45px rgba(46, 38, 31, .12);
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--chapel-parchment); }
body.site-body {
  margin: 0;
  color: var(--ink-brown);
  background: var(--chapel-parchment) url("/assets/images/img_c4565538dbd9.png") repeat;
  font-family: var(--font-body);
  letter-spacing: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--marian-navy);
  letter-spacing: 0;
}
a { color: var(--marian-navy); text-decoration-color: rgba(183, 28, 43, .35); }
a:hover { color: var(--parish-burgundy); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--marian-navy);
  color: #fff;
  padding: 8px 12px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(254, 249, 233, .96);
  border-bottom: 1px solid var(--votive-gold);
}
.top-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: grid;
  line-height: 1;
  text-decoration: none;
  min-width: max-content;
}
.brand-kicker {
  color: var(--parish-burgundy);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.brand-name {
  color: var(--marian-navy);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}
.nav-links {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .95rem;
  font-weight: 700;
}
.nav-item { position: relative; display: inline-flex; min-height: 32px; align-items: center; }
.nav-parent { text-decoration: none; color: var(--ink-brown); }
.nav-parent:not(a) { cursor: default; }
.nav-children {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  display: none;
  min-width: 230px;
  padding: 10px;
  border: 1px solid var(--votive-gold);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.nav-item:hover .nav-children,
.nav-item:focus-within .nav-children {
  display: grid;
  gap: 6px;
}
.nav-cta,
.inline-button,
.hero-actions a:first-child {
  background: var(--marian-navy);
  border: 1px solid var(--marian-navy);
  color: #fff;
  padding: 9px 16px;
  text-decoration: none;
  font-weight: 800;
}
.hero-actions a:last-child {
  border: 1px solid var(--votive-gold);
  color: var(--marian-navy);
  padding: 9px 16px;
  text-decoration: none;
  font-weight: 800;
  background: rgba(254, 249, 233, .9);
}

.hero-section {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-section > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 242, 226, .92), rgba(247, 242, 226, .72), rgba(23, 76, 124, .28));
}
.hero-content {
  position: relative;
  padding: 72px 0;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--parish-burgundy);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: .98;
}
.hero-content p:not(.eyebrow),
.section-heading p,
.page-title p {
  max-width: 720px;
  color: #5a5048;
  font-size: 1.15rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.section-heading,
.page-title {
  padding: 46px 0 18px;
}
.section-heading h2,
.page-title h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.05;
}
.section-heading h2 {
  color: var(--parish-burgundy);
}
.home-layout,
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding-bottom: 70px;
}
.content-layout { grid-template-columns: 300px minmax(0, 1fr); }
.notice-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 18px;
}
.notice-card,
.category-card,
.article-card,
.sidebar-card,
.content-article {
  background: rgba(254, 249, 233, .94);
  border: 1px solid var(--palermo-sky);
  box-shadow: var(--shadow);
}
.notice-card,
.category-card,
.sidebar-card {
  padding: 18px;
}
.notice-card h3,
.category-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.1;
}
.notice-card p,
.category-card p,
.sidebar-card p {
  color: #62584f;
  line-height: 1.55;
}
.parish-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}
.devotional-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  opacity: .28;
}
.sidebar-menu {
  display: grid;
  gap: 7px;
}
.sidebar-menu h2,
.sidebar-card h2 {
  margin: 0 0 8px;
  color: var(--parish-burgundy);
  font-size: 1.35rem;
}
.sidebar-menu a {
  display: block;
  border-bottom: 1px solid rgba(214, 184, 90, .35);
  padding: 7px 0;
  text-decoration: none;
  font-weight: 700;
}
.article-card,
.content-article {
  padding: clamp(20px, 4vw, 42px);
}
.legacy-article,
.article-body {
  line-height: 1.7;
}
.legacy-article h2,
.legacy-article h3,
.article-body h2,
.article-body h3 {
  color: var(--parish-burgundy);
  margin-top: 1.4em;
}
.content-image,
.lead-image {
  margin: 22px 0;
}
.content-image img,
.lead-image img {
  border: 1px solid var(--votive-gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
td, th {
  border: 1px solid rgba(214, 184, 90, .35);
  padding: 10px;
  vertical-align: top;
}
blockquote {
  border-left: 4px solid var(--votive-gold);
  padding-left: 18px;
  color: #5a5048;
  font-style: italic;
}
.breadcrumbs {
  padding-top: 20px;
  font-size: .92rem;
}
.breadcrumbs ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--votive-gold);
}
.toc-box {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid rgba(214, 184, 90, .45);
  background: #fffdf3;
}
.meta-line {
  color: #6c6259;
  font-size: .92rem;
}
.read-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
}
.site-footer {
  background: var(--marian-navy);
  color: #fff;
  padding: 42px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px;
}
.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin-top: 0;
}
.site-footer a { color: #fff; }
.site-footer nav {
  display: grid;
  gap: 6px;
}

@media (max-width: 900px) {
  .top-nav,
  .home-layout,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-nav {
    display: grid;
    align-items: start;
    padding: 12px 0;
  }
  .nav-links {
    justify-content: flex-start;
  }
  .parish-sidebar {
    position: static;
    order: 2;
  }
  .hero-section {
    min-height: 460px;
  }
}
