:root {
  --coral: #f15d40;
  --coral-dark: #cd4128;
  --gold: #f0c943;
  --taupe: #827a6b;
  --charcoal: #252123;
  --green: #466851;
  --cream: #f7f2e8;
  --paper: #fffdfa;
  --muted: #655f57;
  --line: #ded6c8;
  --shadow: 0 24px 65px rgba(37, 33, 35, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: white; color: var(--charcoal); border-radius: .35rem; }
.skip-link:focus { top: 1rem; }

.site-header { background: rgba(255, 253, 250, .97); border-bottom: 1px solid rgba(37, 33, 35, .1); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.header-inner { max-width: 1240px; margin: 0 auto; min-height: 88px; padding: .75rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; width: min(310px, 42vw); }
.brand img { width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 1.4rem; }
.manage-link { text-decoration: none; color: var(--charcoal); font-weight: 700; border-bottom: 2px solid var(--gold); padding: .3rem 0; }
.header-give { min-height: 46px; padding: .65rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--coral); color: white; text-decoration: none; font-weight: 800; }

.hero { position: relative; min-height: min(760px, calc(100vh - 88px)); display: flex; align-items: center; overflow: hidden; background: var(--charcoal); }
.hero-picture { position: absolute; inset: 0; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 62% 51%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 23, 22, .9) 0%, rgba(24, 23, 22, .73) 35%, rgba(24, 23, 22, .12) 72%), linear-gradient(0deg, rgba(24, 23, 22, .34), transparent 50%); }
.hero-copy { position: relative; z-index: 2; width: min(680px, 58%); margin-left: max(1.5rem, calc((100vw - 1240px) / 2)); padding: 6rem 1rem 7rem 0; color: white; }
.eyebrow { margin: 0 0 1rem; color: var(--coral-dark); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold); }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.03; letter-spacing: -.035em; }
h1 { margin: 0; color: white; font-size: clamp(3.7rem, 7vw, 7.2rem); text-shadow: 0 4px 24px rgba(0,0,0,.18); }
h2 { color: var(--charcoal); font-size: clamp(2.5rem, 4.7vw, 4.75rem); margin: 0 0 1.25rem; }
.hero-lede { max-width: 35rem; margin: 1.5rem 0 2rem; color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.hero-button, .outline-button { display: inline-flex; justify-content: center; align-items: center; gap: 1.5rem; min-height: 54px; padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 800; }
.hero-button { background: var(--coral); color: white; box-shadow: 0 10px 25px rgba(0,0,0,.22); }
.hero-button:hover, .header-give:hover { background: var(--coral-dark); }

.mission-section { max-width: 1180px; margin: 0 auto; padding: clamp(4.5rem, 9vw, 8rem) 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.mission-copy { max-width: 780px; }
.mission-copy p:last-child { max-width: 670px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.mission-stat { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 4px solid var(--coral); }
.mission-stat strong { color: var(--coral); font-family: Georgia, serif; font-size: 5rem; line-height: .8; }
.mission-stat span { color: var(--taupe); font-weight: 800; line-height: 1.25; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }

.photo-stories { display: grid; grid-template-columns: 1.2fr .9fr .9fr; min-height: 520px; background: var(--charcoal); }
.story { position: relative; min-width: 0; min-height: 470px; margin: 0; overflow: hidden; }
.story + .story { border-left: 5px solid var(--paper); }
.story img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story:hover img { transform: scale(1.025); }
.story-chapel img { object-position: 36% center; }
.story-walk img { object-position: 53% center; }
.story-canoe img { object-position: 53% center; }
.story::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(22,20,21,.84)); }
.story figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2rem; color: white; }
.story figcaption strong, .story figcaption span { display: block; }
.story figcaption strong { color: var(--gold); font-family: Georgia, serif; font-size: 2.15rem; }
.story figcaption span { max-width: 20rem; margin-top: .25rem; }

.giving-section { max-width: 1180px; margin: 0 auto; padding: clamp(5rem, 10vw, 8.5rem) 1.5rem; display: grid; grid-template-columns: 1fr minmax(390px, .82fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.giving-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; max-width: 38rem; }
.impact-list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.impact-list > div { display: grid; grid-template-columns: 3.5rem 1fr; align-items: start; gap: .8rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.impact-list span { color: var(--coral); font-family: Georgia, serif; font-size: 1.35rem; }
.impact-list p { margin: 0; }
.impact-list strong { color: var(--charcoal); }

.donation-card { background: white; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid #e7dfd2; border-top: 7px solid var(--gold); border-radius: .75rem; box-shadow: var(--shadow); }
.card-heading { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.4rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.card-heading p, .card-heading strong { display: block; margin: 0; }
.card-heading p { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-heading strong { font-family: Georgia, serif; font-size: 1.55rem; }
.heart-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: var(--gold); font-size: 1.5rem; }
fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; }
legend, .custom-amount label { display: block; margin-bottom: .7rem; font-weight: 800; color: var(--charcoal); font-size: .95rem; }
.frequency-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; background: var(--cream); padding: .35rem; border-radius: 999px; }
.frequency-tabs label { position: relative; cursor: pointer; }
.frequency-tabs input { position: absolute; opacity: 0; }
.frequency-tabs span { min-height: 46px; display: grid; place-items: center; border-radius: 999px; color: var(--muted); font-weight: 800; }
.frequency-tabs input:checked + span { color: white; background: var(--charcoal); box-shadow: 0 5px 14px rgba(37,33,35,.18); }
.frequency-tabs input:focus-visible + span { outline: 3px solid rgba(240,201,67,.7); outline-offset: 2px; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.amount-grid button { min-height: 52px; border: 1px solid var(--line); border-radius: .4rem; background: var(--paper); color: var(--charcoal); cursor: pointer; font-weight: 800; }
.amount-grid button:hover { border-color: var(--coral); }
.amount-grid button.selected { background: #fff1ed; border: 2px solid var(--coral); color: var(--coral-dark); }
.amount-grid button:focus-visible, .donate-button:focus-visible, .hero-button:focus-visible, .outline-button:focus-visible, .header-give:focus-visible { outline: 3px solid rgba(240,201,67,.8); outline-offset: 3px; }
.custom-amount { margin: -.4rem 0 1.5rem; }
.currency-input { display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; min-height: 54px; border: 2px solid var(--coral); border-radius: .4rem; background: white; }
.currency-input span { text-align: center; color: var(--coral-dark); font-weight: 800; }
.currency-input input { width: 100%; min-width: 0; border: 0; outline: 0; padding: .75rem .75rem .75rem 0; background: transparent; color: var(--charcoal); font-size: 1.1rem; }
.gift-summary { margin: .2rem 0 1rem; color: var(--muted); }
.gift-summary strong { color: var(--charcoal); }
.form-error { margin-bottom: 1rem; padding: .8rem 1rem; border-left: 4px solid #bd2b35; background: #fff0ef; color: #7b1d24; font-weight: 700; }
.donate-button { width: 100%; min-height: 58px; border: 0; border-radius: 999px; padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; background: var(--coral); color: white; cursor: pointer; font-weight: 800; box-shadow: 0 9px 22px rgba(241,93,64,.23); }
.donate-button:hover { background: var(--coral-dark); }
.donate-button[disabled] { opacity: .7; cursor: wait; }
.security-note { margin: 1rem 0 0; text-align: center; color: var(--muted); font-size: .8rem; }
.security-note span { color: var(--green); }

.monthly-section { max-width: 1180px; margin: 0 auto; padding: clamp(4.5rem, 9vw, 7rem) 1.5rem; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.monthly-section > div { max-width: 46rem; }
.monthly-section p:last-child { color: var(--muted); }
.outline-button { color: var(--charcoal); border: 2px solid var(--charcoal); white-space: nowrap; }
.outline-button:hover { background: var(--charcoal); color: white; }

footer { background: var(--cream); color: var(--charcoal); padding: 3.5rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 3rem; align-items: start; }
.footer-brand { width: min(300px, 100%); }
.footer-brand img { width: 100%; height: auto; }
.footer-address strong { font-family: Georgia, serif; font-size: 1.15rem; }
.footer-address p { color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer-links a { text-underline-offset: 3px; }
.footer-links .admin-link { margin-top: .35rem; color: var(--muted); font-size: .84rem; }
.legal { max-width: 1180px; margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

@media (max-width: 920px) {
  .hero { min-height: 700px; align-items: flex-end; }
  .hero-photo { object-position: 66% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(24,23,22,.92) 0%, rgba(24,23,22,.6) 58%, rgba(24,23,22,.06) 100%); }
  .hero-copy { width: 100%; margin: 0; padding: 12rem 1.5rem 8rem; }
  .mission-section { grid-template-columns: 1fr; align-items: start; }
  .mission-stat { width: fit-content; }
  .photo-stories { grid-template-columns: 1fr 1fr; }
  .story-chapel { grid-column: 1 / -1; }
  .story { min-height: 420px; }
  .story-walk { border-left: 0 !important; }
  .giving-section { grid-template-columns: 1fr; }
  .donation-card { max-width: 620px; width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  main { display: flex; flex-direction: column; }
  .hero { order: 1; }
  .giving-section { order: 2; }
  .mission-section { order: 3; }
  .photo-stories { order: 4; }
  .monthly-section { order: 5; }
  .header-inner { min-height: 64px; padding: .5rem .85rem; }
  .brand { width: 165px; }
  .manage-link { display: none; }
  .header-give { min-height: 40px; padding: .5rem .9rem; font-size: .9rem; }
  .hero { min-height: 515px; align-items: flex-end; }
  .hero-photo { object-position: center center; }
  .hero-shade { background: linear-gradient(0deg, rgba(24,23,22,.94) 0%, rgba(24,23,22,.7) 43%, rgba(24,23,22,.08) 78%); }
  .hero-copy { padding: 7.5rem 1rem 2.25rem; }
  h1 { font-size: clamp(3rem, 14vw, 4rem); }
  .hero-lede { margin: 1rem 0 1.25rem; font-size: .98rem; line-height: 1.45; }
  .hero-button { width: 100%; justify-content: space-between; min-height: 56px; }
  .giving-section { padding: 2.75rem 1rem 3.5rem; gap: 1.75rem; }
  .giving-intro h2 { font-size: 2.35rem; }
  .giving-intro > p:not(.eyebrow) { font-size: 1rem; }
  .impact-list { display: none; }
  .donation-card { padding: 1.1rem; border-radius: .65rem; box-shadow: 0 14px 38px rgba(37,33,35,.14); }
  .card-heading { padding-bottom: 1rem; margin-bottom: 1.25rem; }
  .frequency-tabs span, .amount-grid button { min-height: 50px; }
  .donate-button { min-height: 60px; }
  .mission-section { padding: 4rem 1rem; gap: 2.5rem; }
  .mission-stat strong { font-size: 4rem; }
  .photo-stories { display: flex; min-height: 350px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .photo-stories::-webkit-scrollbar { display: none; }
  .story, .story-chapel { flex: 0 0 86vw; grid-column: auto; min-height: 350px; border: 0 !important; border-right: 5px solid var(--paper) !important; scroll-snap-align: start; }
  .story:last-child { border-right: 0 !important; }
  .story figcaption { padding: 1.4rem; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .monthly-section { grid-template-columns: 1fr; gap: 1rem; padding: 4.5rem 1rem; }
  .outline-button { white-space: normal; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { grid-column: auto; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story img { transition: none; }
}
