:root {
  --ink: #101411;
  --muted: #5c665d;
  --soft: #f4f1e8;
  --paper: #ffffff;
  --line: #d8d1c1;
  --green: #173d31;
  --green-2: #245747;
  --gold: #b78a3b;
  --clay: #875a43;
  --shadow: 0 28px 72px rgba(16, 20, 17, .11);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: Aptos, "Segoe UI", Calibri, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf7;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid rgba(216, 209, 193, .78);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 92px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 10px 0;
  color: #26302a;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: currentColor;
}

.nav .donate-link {
  padding: 10px 18px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
}

.nav .donate-link::after {
  display: none;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(6px);
}

.menu-open .menu-toggle span {
  width: 18px;
  height: 18px;
  background: transparent;
}

.menu-open .menu-toggle span::before,
.menu-open .menu-toggle span::after {
  left: 50%;
  top: 50%;
  opacity: 1;
  background: var(--ink);
}

.menu-open .menu-toggle span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-open .menu-toggle span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.section {
  padding: 104px 0;
}

.section-tight {
  padding: 68px 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.hero-grid > *,
.two-col > *,
.heritage-panel > *,
.donation-layout > *,
.contact-grid > * {
  min-width: 0;
}

.two-col.reverse {
  grid-template-columns: minmax(320px, .84fr) minmax(0, 1fr);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 68px 0 58px;
  background:
    radial-gradient(circle at 82% 18%, rgba(183, 138, 59, .14), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f6f2e8 100%);
  border-bottom: 1px solid rgba(216, 209, 193, .72);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 28px auto 28px 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(16, 20, 17, .24), transparent);
  opacity: .55;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(340px, .72fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
}

.hero-logo {
  width: min(220px, 68vw);
  margin-bottom: 34px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
}

h1 {
  max-width: 700px;
  font-size: clamp(44px, 6.4vw, 78px);
  letter-spacing: -.015em;
}

h2 {
  font-size: clamp(35px, 5.5vw, 66px);
}

h3 {
  font-size: clamp(25px, 3vw, 36px);
}

.lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: #344039;
  font-size: clamp(18px, 2vw, 22px);
}

.page-hero {
  padding: 96px 0 72px;
  background:
    linear-gradient(180deg, #fff 0%, #f7f4ec 100%);
  border-bottom: 1px solid rgba(216, 208, 191, .7);
}

.page-hero .lead {
  max-width: 780px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.button.gold {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button.light {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}

.hero-card {
  position: relative;
  padding: 14px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(216, 209, 193, .96);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5.15;
  object-fit: cover;
  object-position: center top;
  filter: sepia(.14);
}

.caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.impact-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.impact-item {
  min-height: 190px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
}

.impact-item p {
  margin: 16px 0 0;
  color: var(--muted);
}

.text-block p {
  margin: 20px 0 0;
  color: #36433b;
}

.photo-frame,
.archive-card {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  object-fit: cover;
}

.photo-frame.tall img {
  aspect-ratio: 4 / 5;
}

.photo-frame.wide img {
  aspect-ratio: 16 / 11;
}

.soft-band {
  background: var(--soft);
  border-top: 1px solid rgba(216,208,191,.6);
  border-bottom: 1px solid rgba(216,208,191,.6);
}

.green-band {
  color: #fff;
  background: var(--green);
}

.green-band .lead,
.green-band p,
.green-band .caption {
  color: rgba(255,255,255,.78);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.program-card {
  min-height: 250px;
  padding: 30px;
  background: #fffdf9;
}

.program-card .number {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 34px;
}

.program-card p {
  color: var(--muted);
}

.heritage-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}

.heritage-panel.reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, .72fr);
}

.heritage-photo {
  position: relative;
  z-index: 0;
}

.heritage-photo::after {
  content: "";
  position: absolute;
  inset: 28px -18px -18px 28px;
  z-index: -1;
  border: 1px solid rgba(183, 138, 59, .54);
}

.heritage-meta,
.archive-note {
  margin-top: 30px;
  padding: 22px 0 0 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.heritage-meta span,
.archive-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.heritage-meta strong {
  display: block;
  max-width: 430px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.18;
}

.archive-note p {
  margin: 0;
  color: #36433b;
}

.quote-panel {
  padding: clamp(34px, 6vw, 74px);
  color: #fff;
  background: var(--ink);
}

.quote-panel blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4.2vw, 56px);
  line-height: 1.1;
}

.quote-panel p {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.72);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 42px;
  background: var(--line);
  border: 1px solid var(--line);
}

.timeline-item {
  padding: 28px;
  background: #fff;
}

.timeline-item span {
  display: block;
  margin-bottom: 20px;
  color: var(--clay);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.research-card {
  padding: 32px;
  border: 1px solid var(--line);
  background: #fff;
}

.research-card p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-item {
  grid-column: span 4;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.gallery-item.wide {
  grid-column: span 8;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  filter: sepia(.12);
}

.gallery-item.tall img {
  height: 520px;
}

.gallery-item p {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(380px, 1fr);
  gap: 44px;
  align-items: start;
}

.donation-form,
.contact-form {
  padding: clamp(26px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.amount-grid,
.fund-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 26px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.choice.active,
.choice:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.field label,
.form-label {
  color: #29352f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.success-message {
  display: none;
  margin-top: 18px;
  padding: 14px;
  color: #fff;
  background: var(--green);
}

.success-message.visible {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(380px, 1fr);
  gap: 44px;
  align-items: start;
}

.contact-card {
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.contact-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 54px 0;
  color: #fff;
  background: #070807;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) repeat(3, 1fr);
  gap: 34px;
}

.footer-logo {
  width: 146px;
  margin-bottom: 18px;
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,.7);
  font-size: 14px;
}

.site-footer a {
  display: block;
  margin-top: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0,0,0,.84);
}

.lightbox.visible {
  display: flex;
}

.lightbox figure {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  margin: 0;
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
}

.lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  text-align: center;
}

.lightbox button {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 26px 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .donate-link {
    margin-top: 16px;
    text-align: center;
    border-bottom: 0;
  }

  .hero,
  .page-hero {
    padding-top: 48px;
  }

  .hero::before {
    display: none;
  }

  .hero-grid,
  .two-col,
  .two-col.reverse,
  .heritage-panel,
  .heritage-panel.reverse,
  .donation-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .impact-rail,
  .program-list,
  .timeline,
  .research-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .container {
    width: min(100% - 26px, 1180px);
  }

  .brand img {
    width: 78px;
  }

  .section {
    padding: 66px 0;
  }

  h1 {
    font-size: clamp(36px, 10vw, 42px);
    letter-spacing: 0;
  }

  h2 {
    font-size: clamp(31px, 9vw, 38px);
  }

  .lead {
    font-size: 17px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
    padding-inline: 14px;
    letter-spacing: .08em;
    text-align: center;
  }

  .hero {
    min-height: auto;
    background:
      radial-gradient(circle at 80% 8%, rgba(183, 138, 59, .16), transparent 32%),
      linear-gradient(180deg, #fff 0%, #f6f2e8 100%);
  }

  .hero-logo {
    width: 176px;
  }

  .impact-rail,
  .program-list,
  .timeline,
  .research-grid,
  .footer-grid,
  .field-grid,
  .amount-grid,
  .fund-grid {
    grid-template-columns: 1fr;
  }

  .impact-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-grid {
    display: block;
  }

  .gallery-item {
    width: 100%;
    margin-bottom: 16px;
  }

  .gallery-item img,
  .gallery-item.tall img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
