:root {
  color-scheme: light dark;
  --navy: #071d35;
  --navy-soft: #102b49;
  --gold: #c49a43;
  --gold-light: #e2c57e;
  --red: #a9272e;
  --paper: #f7f4ed;
  --paper-soft: #eee9df;
  --ink: #102033;
  --muted: #566171;
  --line: #d7cdb9;
  --surface: #ffffff;
  --shadow: rgba(7, 29, 53, .13);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #071522;
    --paper-soft: #0d2033;
    --ink: #f4f1e9;
    --muted: #b7c0cb;
    --line: #294159;
    --surface: #10263c;
    --shadow: rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Liberation Sans", "Noto Sans", Arial, sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: .75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: .7rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; font-family: Georgia, serif; font-weight: 700; }
.brand img { width: 48px; }
nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); font-size: .94rem; }
nav a { text-decoration: none; font-weight: 700; }
.nav-donate { padding: .62rem 1rem; background: var(--gold); color: var(--navy); border-radius: 6px; }

main { overflow: hidden; }
.hero {
  min-height: clamp(620px, 78dvh, 780px);
  max-width: 1420px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}
.eyebrow { margin: 0 0 1rem; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Liberation Serif", serif; line-height: 1.06; margin-top: 0; }
h1 { max-width: 11ch; margin-bottom: 1.25rem; font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -.045em; }
.hero-summary { max-width: 20ch; margin: 0 0 2rem; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.2rem; border: 2px solid var(--gold); border-radius: 6px; font-weight: 900; text-decoration: none; white-space: nowrap; transition: transform .18s ease, background .18s ease; }
.button:active { transform: translateY(1px); }
.button:focus-visible, nav a:focus-visible, .download-links a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.button.primary { background: var(--gold); color: var(--navy); }
.button.primary:hover { background: var(--gold-light); }
.button.secondary:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.hero-visual { position: relative; width: min(100%, 540px); justify-self: end; padding: clamp(.7rem, 1.4vw, 1rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 28px 70px var(--shadow); }
.hero-visual::before { content: ""; position: absolute; inset: 14% -9% -9% 22%; z-index: -1; border-radius: 14px; background: color-mix(in srgb, var(--gold) 22%, transparent); }
.hero-portrait { overflow: hidden; border-radius: 10px; }
.hero-portrait > img { width: 100%; aspect-ratio: 181 / 234; object-fit: cover; filter: saturate(.78) contrast(1.04); }
.hero-seal { position: absolute; width: clamp(122px, 15vw, 190px); left: -10%; bottom: -9%; filter: drop-shadow(0 15px 24px var(--shadow)); }

.section { max-width: 1280px; margin: 0 auto; padding: clamp(4rem, 7vw, 6.5rem) clamp(1rem, 5vw, 4rem); }
.legacy-intro { max-width: 780px; }
h2 { max-width: 16ch; margin-bottom: 1.4rem; font-size: clamp(2.3rem, 5vw, 4.8rem); letter-spacing: -.035em; }
.legacy-intro p, .goal-copy p, .impact-copy p, .give-copy p { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.service-timeline { max-width: 880px; margin: 2.8rem 0 0; padding: 0; list-style: none; }
.service-timeline li { position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; min-height: 76px; padding: 0 0 1.5rem 2.8rem; }
.service-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline-marker { position: absolute; left: 0; top: .22rem; width: 20px; height: 20px; border: 4px solid var(--paper); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.service-timeline strong { color: var(--red); font-size: .82rem; letter-spacing: .08em; }
.service-timeline li > span:last-child { font-family: Georgia, "Liberation Serif", serif; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; line-height: 1.25; }
.service-timeline small { display: block; margin-top: .35rem; color: var(--muted); font-family: "Liberation Sans", "Noto Sans", Arial, sans-serif; font-size: .78rem; font-weight: 700; }
blockquote { margin: clamp(3rem, 5vw, 5rem) 0 0 clamp(0rem, 12vw, 9rem); padding-left: 2rem; border-left: 5px solid var(--gold); }
blockquote p { max-width: 26ch; margin: 0; font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.25; }

.endowment { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(3rem, 6vw, 6rem); }
.goal-mark { min-height: 400px; padding: 2.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; place-items: center; gap: 1rem; box-shadow: 0 25px 60px var(--shadow); text-align: center; }
.goal-ring { --progress-angle: 360deg; width: min(100%, 285px); aspect-ratio: 1; padding: 10px; border-radius: 50%; outline: 2px solid var(--navy); outline-offset: 7px; display: grid; place-items: center; background: var(--gold); color: #f7f4ed; }
.goal-ring.has-progress { background: conic-gradient(var(--gold) var(--progress-angle), color-mix(in srgb, var(--gold) 22%, var(--navy)) 0); }
.goal-ring-content { width: 100%; height: 100%; padding: 2rem; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--navy); text-align: center; }
.goal-ring span { color: var(--gold-light); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.goal-ring strong { font-family: Georgia, serif; font-size: clamp(4.2rem, 8vw, 6.2rem); line-height: .9; letter-spacing: -.06em; }
.goal-ring small { max-width: 16ch; margin-top: .65rem; color: #dbe3ec; font-size: .78rem; font-weight: 800; line-height: 1.25; }
.campaign-progress { width: min(100%, 285px); height: 8px; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.campaign-progress::-webkit-progress-bar { border-radius: 999px; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.campaign-progress::-webkit-progress-value { border-radius: 999px; background: var(--gold); transition: width .6s ease; }
.campaign-progress::-moz-progress-bar { border-radius: 999px; background: var(--gold); transition: width .6s ease; }
.goal-notes { display: grid; gap: .35rem; justify-items: center; }
.goal-mark p { max-width: 32ch; margin: 0; color: var(--muted); font-weight: 700; }
.goal-mark .campaign-progress-note { font-size: .82rem; font-weight: 600; }
.confirmation { padding-left: 1rem; border-left: 3px solid var(--gold); font-size: .95rem !important; }

.impact { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(3rem, 6vw, 6rem); }
.impact-photo { display: grid; place-items: center; min-height: 380px; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%); }
.impact-photo img { width: min(80%, 430px); filter: drop-shadow(0 18px 30px var(--shadow)); }

.give { max-width: 1280px; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.give-panel { padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, var(--gold)); display: grid; grid-template-columns: 1.05fr 1px .8fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); box-shadow: 0 24px 70px var(--shadow); }
.give-copy { display: flex; flex-direction: column; align-items: flex-start; }
.give-copy h2 { max-width: 11ch; }
.give-copy p { color: var(--muted); }
.give-divider { align-self: stretch; background: var(--line); }
.check-details { align-self: center; }
.check-details h3 { margin-bottom: 1rem; font-size: 1.7rem; }
.check-details p, .check-details address { color: var(--muted); font-style: normal; }
.check-details a { color: var(--red); }

.downloads {
  padding-top: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  text-align: center;
}
.downloads h2 { margin-left: auto; margin-right: auto; }
.share-button {
  width: min(100%, 340px);
  gap: .65rem;
  margin: 0 auto;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  appearance: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.share-button:hover { background: var(--gold-light); }
.share-button svg { flex: 0 0 auto; }
.share-status { min-height: 1.65rem; margin: .65rem auto .8rem; color: var(--muted); font-size: .92rem; font-weight: 700; }
.download-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.download-links a { padding: .8rem 1rem; color: var(--ink); border-bottom: 2px solid var(--gold); font-weight: 800; text-decoration: none; }
footer { padding: 3rem 1rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
footer img { margin: 0 auto 1rem; }
footer p { margin: .3rem auto; max-width: 62ch; }
.footer-domain { color: var(--red); font-weight: 900; letter-spacing: .035em; text-decoration: none; }
.footer-domain:hover { text-decoration: underline; text-underline-offset: .2em; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  nav a:not(.nav-donate) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-visual { justify-self: center; margin: 0 1rem 2rem; max-width: 430px; }
  .endowment, .impact { grid-template-columns: 1fr; }
  .give-panel { grid-template-columns: 1fr; }
  .give-divider { width: 100%; height: 1px; }
  .impact-photo { min-height: 320px; }
}

@media (max-width: 520px) {
  .brand span { max-width: 11ch; line-height: 1.1; }
  .site-header { gap: .5rem; }
  .nav-donate { padding: .58rem .82rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.3rem); }
  .hero-actions { display: grid; }
  .service-timeline li { grid-template-columns: 1fr; gap: .35rem; padding-left: 2.4rem; }
  blockquote { margin-left: 0; }
  .download-links { width: min(100%, 340px); margin: 0 auto; flex-direction: column; align-items: stretch; gap: .9rem; }
  .download-links a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-actions, .downloads { display: none; }
  body { background: white; color: black; }
  .reveal { opacity: 1; transform: none; }
}
