:root {
  color-scheme: light;
  --navy: #0a1b45;
  --navy-soft: #102b49;
  --gold: #f6cf00;
  --gold-light: #f6cf00;
  --red: #9f2931;
  --paper: #f7f4ed;
  --paper-soft: #ede7db;
  --ink: #102033;
  --muted: #586272;
  --line: #d7cdb9;
  --surface: #fffdf8;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Liberation Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { color: inherit; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--gold); color: var(--navy); font-weight: 800; }
.skip-link:focus { top: 1rem; }
.header-inner, .hero, .trust-grid, .section, .endowment-inner, .family-inner, .footer-inner { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(215, 205, 185, .85); background: rgba(247, 244, 237, .95); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--serif); font-weight: 700; text-decoration: none; }
.brand img { width: 42px; }
nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.65rem); font-size: .88rem; font-weight: 700; }
nav a { text-decoration: none; }
.nav-donate { min-height: 42px; display: inline-flex; align-items: center; padding: .55rem 1rem; border: 2px solid var(--gold); border-radius: 4px; background: var(--gold); color: var(--navy); }

.hero { min-height: 670px; padding-block: clamp(3.5rem, 7vw, 5rem) clamp(4.25rem, 7vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: clamp(3.5rem, 7vw, 5rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 10ch; margin-bottom: 1.35rem; font-size: clamp(3.4rem, 6.2vw, 5.5rem); }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 4.5vw, 4rem); }
h3 { font-size: 1.75rem; }
.hero-summary { max-width: 35rem; margin: 0 0 1.75rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .72rem 1.2rem; border: 2px solid var(--gold); border-radius: 4px; background: transparent; font-family: var(--sans); font-size: .92rem; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.button.primary { background: var(--gold); color: var(--navy); }
.button:hover, .nav-donate:hover { background: var(--gold-light); color: var(--navy); }
.button:active, .nav-donate:active { transform: translateY(1px); }
.button:focus-visible, nav a:focus-visible, .text-link:focus-visible, footer a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.hero-visual { position: relative; width: min(100%, 420px); justify-self: end; padding: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 18px 22px 0 var(--gold-light); }
.hero-portrait { width: 100%; object-fit: contain; filter: saturate(.85) contrast(1.03); }
.hero-seal { position: absolute; width: clamp(104px, 11vw, 132px); left: -3rem; bottom: -2.4rem; filter: drop-shadow(0 12px 18px rgba(7, 29, 53, .2)); }

.trust-strip { background: var(--navy); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { min-height: 104px; padding: 1.35rem 1.75rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255, 255, 255, .18); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { color: var(--gold-light); font-family: var(--serif); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.trust-item span { color: #d6dfeb; font-size: .82rem; font-weight: 700; }

.section { padding-block: clamp(4.5rem, 8vw, 6rem); }
.legacy { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3.5rem, 8vw, 5.7rem); align-items: start; }
.legacy-copy > p:not(.eyebrow), .goal-copy > p:not(.eyebrow), .give-copy > p:not(.eyebrow), .family-inner p { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
blockquote { margin: 2.1rem 0 0; padding: 1rem 0 .25rem 1.5rem; border-left: 4px solid var(--gold); }
blockquote p { max-width: 26ch; margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.3; }
.service-timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.35rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.service-timeline strong { padding-top: .2rem; color: var(--red); font-size: .78rem; letter-spacing: .04em; }
.service-timeline li > span { font-family: var(--serif); font-size: clamp(1.12rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.25; }
.service-timeline small { display: block; margin-top: .3rem; color: var(--muted); font-family: var(--sans); font-size: .75rem; }

.endowment { padding-block: clamp(4.5rem, 8vw, 6rem); background: var(--paper-soft); }
.endowment-inner { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(3.5rem, 8vw, 5rem); align-items: center; }
.goal-copy .button { margin-top: .75rem; }
.goal-card { padding: clamp(2rem, 5vw, 2.5rem); background: var(--navy); color: white; box-shadow: 18px 18px 0 var(--gold); }
.goal-label { display: block; color: var(--gold-light); font-size: .75rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.goal-amount { display: block; margin: .55rem 0 .25rem; font-family: var(--serif); font-size: clamp(4rem, 8vw, 5.2rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.goal-purpose { margin: 0 0 1.5rem; color: #d6dfeb; }
.goal-status { padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.goal-status strong { display: block; margin-bottom: .3rem; color: var(--gold-light); }
.goal-status span { color: #d6dfeb; font-size: .88rem; }
.campaign-progress { width: 100%; height: 8px; margin: 0 0 1.25rem; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: rgba(255, 255, 255, .18); }
.campaign-progress::-webkit-progress-bar { border-radius: 999px; background: rgba(255, 255, 255, .18); }
.campaign-progress::-webkit-progress-value { border-radius: 999px; background: var(--gold); }
.campaign-progress::-moz-progress-bar { border-radius: 999px; background: var(--gold); }

.family-legacy { padding-block: clamp(3.5rem, 6vw, 4.5rem); background: var(--navy-soft); color: white; }
.family-inner { display: grid; grid-template-columns: 9.5rem 1fr; gap: 3rem; align-items: center; }
.family-inner img { width: 9.5rem; }
.family-inner h2 { margin-bottom: .75rem; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.family-inner p { margin: 0; color: #d6dfeb; }

.give { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3.5rem, 8vw, 5rem); align-items: start; }
.give-copy > .button { margin-top: .7rem; }
.share-actions { margin-top: 1.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; border-top: 1px solid var(--line); }
.share-button { appearance: none; }
.text-link { padding: .5rem .1rem; color: var(--red); font-weight: 800; text-underline-offset: .2em; }
.share-status { min-height: 1.5rem; margin: .55rem 0 0; color: var(--muted); font-size: .88rem; font-weight: 700; }
.check-details { padding: 2rem; border-top: 5px solid var(--gold); background: var(--surface); }
.check-details h3 { margin-bottom: .9rem; }
.check-details p, .check-details address { color: var(--muted); font-style: normal; }
.check-details a { color: var(--red); }

footer { padding-block: 2.4rem; background: var(--navy); color: #d6dfeb; font-size: .88rem; }
.footer-inner { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1.5rem; align-items: center; }
.footer-inner img { width: 2.9rem; }
.footer-inner p { margin: 0; }
.footer-domain { color: var(--gold-light); font-weight: 900; text-decoration: none; }
.footer-domain:hover { text-decoration: underline; text-underline-offset: .2em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s 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; gap: 3rem; padding-top: 3rem; }
  .hero-visual { max-width: 430px; margin-inline: 1rem; justify-self: center; }
  .hero-seal { width: 100px; left: -.75rem; bottom: -2rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { min-height: 84px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .trust-item:last-child { border-bottom: 0; }
  .legacy, .endowment-inner, .give { grid-template-columns: 1fr; }
  .family-inner { grid-template-columns: 5rem 1fr; gap: 1.5rem; }
  .family-inner img { width: 5rem; }
  .footer-inner { grid-template-columns: 3rem 1fr; align-items: start; }
  .footer-inner p:last-child { grid-column: 2; }
}

@media (max-width: 520px) {
  .header-inner, .hero, .trust-grid, .section, .endowment-inner, .family-inner, .footer-inner { width: min(100% - 32px, 1180px); }
  .site-header .brand span { max-width: 7ch; line-height: 1.05; }
  .nav-donate { padding-inline: .75rem; font-size: .8rem; }
  h1 { font-size: clamp(3rem, 14vw, 4.1rem); }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .service-timeline li { grid-template-columns: 5.2rem 1fr; gap: .9rem; }
  .goal-card { box-shadow: 10px 10px 0 var(--gold); }
  .goal-amount { font-size: 3.8rem; }
  .family-inner { grid-template-columns: 4rem 1fr; gap: 1rem; }
  .family-inner img { width: 4rem; }
  .family-inner h2 { font-size: 2rem; }
  .family-inner p { font-size: .96rem; }
  .share-actions { display: grid; align-items: stretch; }
  .share-actions .button { width: 100%; }
  .text-link { text-align: center; }
  .footer-inner { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .footer-inner img { width: 2.5rem; }
}

@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, .share-actions { display: none; }
  body { background: white; color: black; }
  .reveal { opacity: 1; transform: none; }
}
