:root {
  --church-green: #00a651;
  --church-green-dark: #007a3d;
  --methodist-red: #e30613;
  --stone: #e6e0d8;
  --paper: #fffdfa;
  --ink: #1f1b18;
  --muted: #665f58;
  --line: #d7cfc6;
}

* { box-sizing: border-box; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}
a { color: var(--church-green-dark); }
a:hover, a:focus { color: var(--methodist-red); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.18;
  letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
h2 { font-size: 1.75rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

.site-header {
  background: var(--church-green-dark);
  color: #ffffff;
  border-bottom: 4px solid var(--church-green);
}
.header-inner { padding: 1.2rem 0 1rem; }
.brand {
  display: inline-flex;
  gap: .85rem;
  align-items: center;
  color: var(--methodist-red);
  text-decoration: none;
}
.brand:hover,
.brand:focus { color: var(--methodist-red); }
.brand strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
}
.brand small { display: block; color: #ffffff; font-weight: 600; opacity: .85; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--methodist-red);
  color: white;
  font-size: 2rem;
  line-height: 1;
}
.site-nav {
  background: var(--church-green-dark);
  color: white;
}
button.menu-icon {
  background-color: var(--church-green);
}
.primary-menu {
  background: var(--church-green);
  border-radius: 0 0 6px 6px;
}
.primary-menu .dropdown.menu {
  display: flex;
  flex-wrap: wrap;
}
.primary-menu .dropdown.menu > li {
  position: relative;
}
.primary-menu .dropdown.menu > li > .menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 30;
  display: none;
  min-width: 16rem;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(31, 27, 24, .18);
}
.primary-menu .dropdown.menu > li:hover > .menu,
.primary-menu .dropdown.menu > li:focus-within > .menu {
  display: block;
}
.primary-menu .menu a {
  color: white;
  font-weight: 700;
  padding: .75rem .9rem;
  overflow-wrap: anywhere;
}
.primary-menu .menu a:hover,
.primary-menu .menu a:focus {
  background: var(--church-green-dark);
  color: white;
}
.primary-menu .submenu {
  background: var(--paper);
  border: 1px solid var(--line);
}
.primary-menu .submenu a,
.primary-menu .dropdown.menu > li > .menu a { color: var(--ink); }
.primary-menu .dropdown.menu > li > .menu a:hover,
.primary-menu .dropdown.menu > li > .menu a:focus {
  background: var(--church-green-dark);
  color: white;
}

.home-hero {
  padding: 3rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-photo {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(31, 27, 24, .12);
  padding: .75rem;
}
.eyebrow {
  margin: 0 0 .5rem;
  color: var(--church-green-dark);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead {
  color: var(--muted);
  font-size: 1.15rem;
}
.button.primary,
.button.primary:hover,
.button.primary:focus {
  background: var(--church-green);
  color: white;
  border-radius: 999px;
  font-weight: 800;
}
.button.hollow {
  border-color: var(--church-green-dark);
  color: var(--church-green-dark);
  border-radius: 999px;
  font-weight: 800;
}
.button.red {
  background: var(--methodist-red);
  color: white;
  border-radius: 999px;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.page-header {
  padding: 2.6rem 0 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.content-band,
.page-body {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.readable { max-width: 920px; }
.readable > p,
.readable li { font-size: 1.02rem; }
.breadcrumbs-wrap { margin-bottom: 1rem; }
.breadcrumbs { background: transparent; margin: 0; }
.content-image {
  margin: 1.5rem 0;
  background: white;
  border: 1px solid var(--line);
  padding: .75rem;
}
figcaption {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .9rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.gallery-grid figure {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  padding: .6rem;
}
.listing-grid { row-gap: 1rem; }
.listing-card {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--church-green);
  padding: 1.15rem;
  border-radius: 6px;
}
.listing-card h2,
.listing-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.worship-note {
  border-color: var(--church-green);
  border-radius: 6px;
}
.main-image {
  float: right;
  max-width: 33%;
  margin: .25rem 0 1rem 1.5rem;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
}
.site-footer {
  padding: 2rem 0;
  color: white;
  background: #24201d;
}
.site-footer p { margin: .3rem 0 0; color: #e9e1d8; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: flex-end;
  align-items: center;
}
.footer-links a:not(.button) { color: white; }

@media (max-width: 639px) {
  .header-inner { padding-left: 1rem; padding-right: 1rem; }
  .primary-menu { border-radius: 0; }
  .primary-menu .dropdown.menu { display: block; }
  .home-hero, .page-header { padding: 2rem 0; }
  .main-image { float: none; max-width: 100%; margin: 1rem 0; }
  .footer-links { justify-content: flex-start; margin-top: 1rem; }
}

@media print {
  .site-header, .site-footer, .button { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
}
