:root {
  --ivory: #f7f4ef;
  --paper: #fffdf9;
  --green: #1b4332;
  --green-deep: #10281e;
  --green-soft: #e7f0ea;
  --burgundy: #5c2a2a;
  --gold: #c6a15b;
  --gold-deep: #8d6b32;
  --clay: #b86a45;
  --ink: #2a2826;
  --muted: #5e5852;
  --line: rgba(27, 67, 50, 0.14);
  --footer: #3d4643;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(16, 40, 30, 0.08);
  --header: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(198, 161, 91, 0.16), transparent 55%),
    var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
}

a:hover {
  color: var(--gold-deep);
}

h1, h2, h3, .brand strong {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--green-deep);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.section {
  padding: 4.5rem 0;
}

.rule {
  width: 3.5rem;
  height: 2px;
  margin: 0 0 1.1rem;
  background: var(--gold);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--green);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-deep);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: auto;
}

.brand strong,
.brand em {
  display: block;
  font-style: normal;
}

.brand strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand em {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  cursor: pointer;
}

.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;
}

.nav-toggle > span:first-child,
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--green);
  position: relative;
  margin-inline: auto;
}

.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-donate {
  background: var(--gold);
  color: var(--green-deep) !important;
  padding: 0.45rem 0.8rem;
  box-shadow: none !important;
}

.nav-donate[aria-current="page"] {
  background: var(--green);
  color: white !important;
}

.home-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: white;
  background: var(--green-deep);
}

.home-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 26, 20, 0.88) 0%, rgba(10, 26, 20, 0.28) 48%, rgba(10, 26, 20, 0.18) 100%);
}

.home-hero .container {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.2rem;
  max-width: 760px;
  margin-left: max(1.2rem, calc((100% - 1120px) / 2));
  width: min(760px, calc(100% - 2.4rem));
}

.home-hero h1 {
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
}

.btn-gold:hover {
  background: #d7b56e;
  color: var(--green-deep);
}

.btn-line {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-line:hover,
.btn-line-dark:hover {
  background: white;
  color: var(--green-deep);
}

.btn-line-dark {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

.btn-green {
  background: var(--green);
  color: white;
}

.btn-green:hover {
  background: var(--green-deep);
  color: white;
}

.welcome-grid,
.split,
.message-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.verse {
  margin: 0;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.verse p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.45;
  color: var(--green-deep);
}

.verse cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.times {
  background: var(--green-soft);
  border: 1px solid rgba(27, 67, 50, 0.08);
  padding: 1.5rem 1.4rem 1.2rem;
}

.times ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.1rem;
}

.times li + li {
  margin-top: 0.25rem;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

.live {
  background: var(--green-deep);
  color: #f6f1e8;
}

.live h2,
.support h2,
.page-hero h1,
.solid-hero h1 {
  color: white;
}

.live-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.play-mark {
  flex: 0 0 auto;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
}

.play-mark span {
  width: 0;
  height: 0;
  border-left: 14px solid var(--gold);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.card-grid,
.ministry-grid,
.news-list,
.give-grid {
  display: grid;
  gap: 1rem;
}

.card,
.ministry,
.news-card,
.give-card,
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.3rem 1.25rem 1.15rem;
}

.card h3,
.ministry h3 {
  color: var(--green-deep);
}

.text-link {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.support {
  background: var(--clay);
  color: white;
}

.support .container {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.support p {
  max-width: 38rem;
  font-size: 1.15rem;
}

.page-hero,
.solid-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  align-items: end;
  color: white;
  background-color: var(--green-deep);
  background-size: cover;
  background-position: center 40%;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 40, 30, 0.86), rgba(16, 40, 30, 0.28));
}

.solid-hero {
  background: var(--burgundy);
  min-height: 240px;
}

.page-hero .container,
.solid-hero .container {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 2.2rem;
}

.crumbs {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crumbs a {
  color: white;
  text-decoration: none;
}

.crumbs span {
  opacity: 0.75;
}

.prose {
  max-width: 44rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.step {
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
}

.step strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--green-deep);
}

.portrait-wrap {
  background: var(--paper);
  padding: 0.7rem;
  box-shadow: var(--shadow);
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10rem 10rem 0.4rem 0.4rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.filters button.is-active,
.filters button:hover {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.gallery-grid {
  display: grid;
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--green-deep);
  cursor: zoom-in;
}

.gallery-open img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.75rem 0.85rem 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: rgba(255, 253, 249, 0.7);
}

.tag {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.2rem 0.5rem;
  background: var(--burgundy);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.news-card time,
.article-date {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-layout {
  display: grid;
  gap: 1.5rem;
}

.article-layout img {
  width: 100%;
  box-shadow: var(--shadow);
}

.caption {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.45rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 0.85rem;
}

.contact-list span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.75rem;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  filter: saturate(0.85);
}

.site-footer {
  background: var(--footer);
  color: #f3efe8;
  padding: 3rem 0 1.4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.footer-brand img {
  width: 48px;
  height: auto;
}

.footer-brand p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.site-footer a {
  display: block;
  color: #f3efe8;
  text-decoration: none;
  margin: 0.2rem 0;
}

.site-footer a:hover {
  color: var(--gold);
}

.site-footer p {
  margin: 0;
}

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(243, 239, 232, 0.8);
  font-size: 0.92rem;
}

.form-note {
  padding: 1rem 1rem 0.2rem;
  background: var(--green-soft);
  border-top: 3px solid var(--green);
}

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, calc(100% - 2rem));
}

dialog::backdrop {
  background: rgba(16, 24, 20, 0.82);
}

.lightbox-card {
  position: relative;
  background: var(--paper);
  padding: 0.6rem;
}

.lightbox-card img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--green-deep);
}

.lightbox-card p {
  margin: 0.6rem 0.3rem 0.3rem;
}

.lightbox-close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  border: 0;
  background: var(--paper);
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

@media (min-width: 720px) {
  .welcome-grid,
  .split,
  .message-grid,
  .contact-grid,
  .article-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .card-grid,
  .ministry-grid,
  .give-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .gallery-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .gallery-item:first-child {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
  }

  .gallery-item:first-child .gallery-open {
    flex: 1;
  }

  .gallery-item:first-child img {
    height: 100%;
    min-height: 420px;
    object-fit: cover;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: -1.2rem;
    right: -1.2rem;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--green);
    padding: 0.4rem 0 0.8rem;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1.2rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: none;
  }

  .site-nav a[aria-current="page"]::after {
    content: "";
    display: block;
    width: 2rem;
    height: 2px;
    margin-top: 0.35rem;
    background: var(--gold);
  }

  .nav-donate {
    margin: 0.4rem 1.2rem 0;
    text-align: center;
  }
}

.offer-banner {
  background: var(--green-deep);
  color: #f6f1e8;
  padding: 3.2rem 0 2.6rem;
}

.offer-banner h1 {
  color: white;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.offer-verse {
  max-width: 38rem;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.offer-wrap {
  max-width: 760px;
}

.offer-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.offer-progress li {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}

.offer-progress li span {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--muted);
}

.offer-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: calc(50% + 1.2rem);
  right: calc(-50% + 1.2rem);
  height: 1px;
  background: var(--line);
}

.offer-progress li.is-done span,
.offer-progress li.is-current span {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.offer-progress li.is-current span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-deep);
}

.offer-progress li.is-current {
  color: var(--green-deep);
  font-weight: 700;
}

.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.25rem 1.3rem;
}

.offer-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.offer-card legend {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green-deep);
  padding: 0;
  margin-bottom: 0.35rem;
}

.offer-lead {
  margin-top: 0;
  color: var(--muted);
}

.giver-grid,
.pay-grid,
.type-grid {
  display: grid;
  gap: 0.7rem;
}

.choice,
.type-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input,
.type-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-body,
.type-choice span {
  display: grid;
  gap: 0.15rem;
  height: 100%;
  padding: 0.9rem 0.75rem;
  border: 1px solid var(--line);
  background: #fbf8f3;
  text-align: center;
}

.type-choice span {
  text-align: left;
  grid-template-columns: auto 1fr;
  column-gap: 0.7rem;
  align-items: center;
}

.type-choice span::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  grid-row: span 2;
}

.choice svg {
  width: 1.7rem;
  height: 1.7rem;
  margin: 0 auto 0.2rem;
  color: var(--green);
}

.choice strong,
.type-choice strong {
  color: var(--green-deep);
  font-size: 1rem;
}

.choice small,
.type-choice small {
  color: var(--muted);
  font-size: 0.86rem;
}

.choice input:focus-visible + .choice-body,
.type-choice input:focus-visible + span,
.choice input:checked + .choice-body,
.type-choice input:checked + span {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  background: white;
}

.type-choice input:checked + span::before {
  background: radial-gradient(circle, var(--green) 0 45%, white 50% 100%);
}

.field {
  margin-top: 1rem;
}

.field-label {
  margin: 1rem 0 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.field-help,
.offer-aside {
  color: var(--muted);
  font-size: 0.92rem;
}

.field-error {
  color: var(--burgundy);
  font-weight: 700;
  font-size: 0.95rem;
}

.member-found {
  margin: 0.7rem 0 0;
  padding: 0.75rem 0.85rem;
  background: var(--green-soft);
  border: 1px solid rgba(27, 67, 50, 0.16);
  color: var(--green-deep);
  font-weight: 700;
}

.amount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.amount-row button {
  border: 1px solid var(--line);
  background: white;
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.amount-row button.is-selected,
.amount-row button:hover {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.offer-next,
.offer-back,
.ready-panel .btn {
  width: 100%;
  margin-top: 0.8rem;
}

.review-list {
  margin: 0.4rem 0 0.2rem;
}

.review-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.review-list dt {
  color: var(--muted);
}

.review-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: var(--green-deep);
}

.gateway-note {
  margin: 0.9rem 0 0;
  padding: 0.8rem 0.85rem;
  background: #f8f1e4;
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-size: 0.95rem;
}

.ready-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.offer-aside {
  margin-top: 1.2rem;
}

@media (min-width: 720px) {
  .giver-grid,
  .pay-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .type-grid {
    grid-template-columns: 1fr 1fr;
  }

  .offer-card {
    padding: 1.8rem 1.6rem 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
