:root {
  --navy: #004f86;
  --blue: #0069b4;
  --sky: #8ed4f5;
  --ink: #004f86;
  --muted: #617179;
  --line: #d6e0e3;
  --bg: #fafcfc;
  --bg-soft: #f5f8f9;
  --white: #fff;
  --font-body: Arial, Helvetica, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.wrap {
  width: min(1320px, calc(100% - 112px));
  margin: auto;
}

.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  padding: 15px;
  background: var(--white);
  z-index: 40;
}

.skip:focus { top: 15px; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, color .3s, box-shadow .3s, border-color .3s;
}

.header-inner {
  min-height: 0;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.brand {
  display: block;
  position: relative;
  flex-shrink: 0;
  height: 80px;
  width: auto;
  aspect-ratio: 2065 / 453;
  max-width: min(365px, 100%);
  transition: height .3s;
}

.brand .logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .25s;
}

.logo-on-light { opacity: 0; }
.logo-on-dark { opacity: 1; }

header.is-scrolled {
  background: rgba(255, 255, 255, .98);
  color: var(--navy);
  border-bottom-color: #e0e6e9;
  box-shadow: 0 6px 22px #004f8614;
}

header.is-scrolled .brand { height: 72px; }
header.is-scrolled .logo-on-dark { opacity: 0; }
header.is-scrolled .logo-on-light { opacity: 1; }

.menu-button {
  color: var(--white);
  background: none;
  border: 1px solid #66818b;
  padding: 10px 12px;
}

header.is-scrolled .menu-button {
  color: var(--navy);
  border-color: #b8c8cf;
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

nav a {
  padding: 13px 15px;
  position: relative;
  transition: color .2s;
}

nav a:after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .2s;
}

nav a:hover:after,
nav a:focus-visible:after { transform: scaleX(1); }

nav a:hover { color: var(--sky); }
header.is-scrolled nav a:hover { color: var(--blue); }

.nav-contact span { margin-left: 9px; }

/* Typography */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 29px;
}

.eyebrow:before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -2.4px;
  margin: 0;
}

h1 {
  font-size: clamp(48px, 4.55vw, 74px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(36px, 3.2vw, 49px);
  line-height: 1.14;
  letter-spacing: -1.5px;
}

em {
  font-style: normal;
  font-weight: 400;
}

.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.6;
  color: #5b6b70;
  max-width: 560px;
  margin: 31px 0 35px;
}

.button {
  display: inline-flex;
  gap: 35px;
  align-items: center;
  padding: 17px 24px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  letter-spacing: .2px;
  border: 0;
}

.button:hover { background: #00558f; }

/* Hero */
.hero { padding: 78px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  column-gap: 88px;
  align-items: start;
}

.hero-copy { padding: 9px 0 0; }

.hero-photo {
  margin: 0;
  height: 620px;
}

.hero-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid #cdd9db;
  margin-top: 77px;
  padding: 27px 0 31px;
  font-size: 9px;
  letter-spacing: 1.5px;
  line-height: 1.8;
}

.hero-bottom > a { white-space: nowrap; }

/* Sections */
.section { padding: 110px 0; }

.about {
  background: var(--white);
  border-top: 1px solid #dde5e6;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 115px;
}

.about-copy > p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 20px;
}

.about-copy .large,
.support-copy .large {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.55;
  color: var(--navy);
}

.belief {
  display: flex;
  gap: 24px;
  border-top: 1px solid #d9e2e4;
  margin-top: 29px;
  padding-top: 24px;
}

.belief > span {
  color: var(--blue);
  font-size: 29px;
}

.belief p {
  font: italic 21px/1.65 var(--font-display);
  margin: 0;
}

.founding-note {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #d9e2e4;
  font-size: 13px;
  line-height: 1.75;
  color: #73848c;
}

.about-photo {
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 14px;
}

.about-shot {
  margin: 0;
  overflow: hidden;
  background: #e8eef0;
  min-height: 0;
}

.about-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-shot-main {
  grid-row: 1 / span 2;
}

.about-shot-wide {
  grid-column: 2 / span 2;
}

/* Activities */
.activities { background: var(--bg-soft); }

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

.section-top > p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 2px;
}

.areas {
  margin-top: 57px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.areas article { min-width: 0; }

.area-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 22px;
  background: #e8eef0;
}

.area-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-top {
  display: flex;
  justify-content: space-between;
  color: var(--blue);
  font: 20px var(--font-display);
}

.areas h3 {
  font: 400 26px/1.2 var(--font-display);
  min-height: 63px;
  margin: 18px 0 13px;
  letter-spacing: -.5px;
}

.areas p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}

/* Support */
.support {
  background: var(--navy);
  color: var(--white);
}

.support .eyebrow { color: var(--sky); }
.support .eyebrow:before { background: var(--sky); }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 115px;
  align-items: start;
}

.support-copy .large { color: var(--white); }

.support-copy > p {
  font-size: 15px;
  line-height: 1.95;
  color: #c0cfd5;
  margin: 0 0 20px;
}

.support .button {
  margin-top: 12px;
  background: var(--white);
  color: var(--navy);
}

.support .button:hover {
  background: var(--sky);
  color: var(--navy);
}

/* Contact */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 115px;
}

.contact-intro {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 400px;
  margin: 27px 0;
}

.text-link {
  display: inline-flex;
  gap: 40px;
  padding: 12px 0;
  border-bottom: 1px solid var(--blue);
  font-size: 13px;
}

.text-link span { color: var(--blue); }

.contact-label {
  font-size: 10px;
  letter-spacing: 1.3px;
  margin: 4px 0 25px;
  color: #63767f;
}

.detail {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 22px;
  padding: 21px 0;
  border-top: 1px solid #dae3e5;
}

.detail > span {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #63767f;
  padding-top: 5px;
}

.detail a,
.detail p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.detail .email {
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Footer */
footer {
  background: var(--navy);
  color: #c0cfd5;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 33px 0;
  font-size: 10px;
}

.footer-inner > span:first-child {
  color: var(--white);
  letter-spacing: .7px;
}

.footer-inner > span:nth-child(2) {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 0 0 28px;
  border-top: 1px solid #286c9b;
  font-size: 11px;
  letter-spacing: .2px;
}

.footer-links a {
  color: #a8c0c9;
  padding-top: 16px;
}

.footer-links a:hover { color: var(--white); }

/* Legal pages — compact document style (overrides global h1/h2) */
.legal-page {
  padding: 36px 0 64px;
  background: var(--white);
  border-top: 1px solid #dde5e6;
}

.legal-wrap {
  width: min(640px, calc(100% - 40px));
  max-width: 640px;
}

.legal-page .legal-title,
main.legal-page h1.legal-title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  color: var(--navy);
  margin: 0 0 6px;
}

.legal-updated {
  font-size: 11px;
  color: #73848c;
  margin: 0 0 18px;
}

.legal-body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.65;
  color: #4a5a63;
}

.legal-body .legal-heading,
.legal-body h2.legal-heading,
main.legal-page .legal-body h2 {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  color: var(--navy);
  margin: 16px 0 6px;
}

.legal-body p { margin: 0 0 8px; }

.legal-body ul {
  margin: 0 0 10px;
  padding-left: 16px;
}

.legal-body li { margin-bottom: 3px; }

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.legal-nav a { color: var(--blue); }

.legal-cta { margin-top: 16px; }
.legal-cta .button {
  text-decoration: none;
  font-size: 12px;
  padding: 10px 16px;
}

.donate-legal {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #73848c;
}

.donate-legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Donation page */
.donate-page { padding: 70px 0 110px; }

.donate-card {
  max-width: 640px;
  margin: 40px 0 0;
}

.donate-card > p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 28px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.amount-option {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  padding: 18px 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.amount-option[aria-pressed="true"],
.amount-option:hover {
  border-color: var(--blue);
  background: #eef6fb;
}

.custom-amount {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.custom-amount label {
  font-size: 11px;
  letter-spacing: 1px;
  color: #63767f;
}

.custom-amount input {
  border: 1px solid var(--line);
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  width: 100%;
  max-width: 280px;
}

.donate-fields {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.donate-fields label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #63767f;
}

.donate-fields input {
  border: 1px solid var(--line);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--navy);
}

.donate-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 18px 0 0;
}

.donate-status {
  margin-top: 20px;
  padding: 16px 18px;
  background: #eef6fb;
  border-left: 4px solid var(--blue);
  font-size: 14px;
  line-height: 1.7;
  color: var(--navy);
}

.donate-status[hidden] { display: none; }

/* Responsive */
@media (min-width: 761px) {
  .menu-button { display: none; }
}

@media (max-width: 1150px) {
  .wrap { width: calc(100% - 72px); }
  .hero-grid { column-gap: 57px; }
  .hero-photo { height: 580px; }
  h1 { font-size: 56px; }
  .lead { font-size: 21px; }
  .about-grid,
  .contact-grid,
  .support-grid { gap: 65px; }
  .about-photo {
    grid-template-rows: 190px 190px;
    gap: 12px;
  }
  .brand { height: 70px; }
  header.is-scrolled .brand { height: 64px; }
  nav { gap: 8px; font-size: 12px; }
  nav a { padding: 12px; }
  .detail { grid-template-columns: 85px 1fr; gap: 12px; }
  .areas h3 { font-size: 23px; }
}

@media (max-width: 1000px) and (min-width: 761px) {
  .areas { grid-template-columns: 1fr 1fr; }
  .areas h3 { min-height: 0; }
}

@media (max-width: 900px) and (min-width: 761px) {
  h1 { font-size: 47px; }
  .hero-grid {
    column-gap: 40px;
    grid-template-columns: 1.12fr 1fr;
  }
  .hero-photo { height: 530px; }
  .lead { font-size: 19px; }
  .brand { height: 64px; }
  .detail { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .wrap { width: calc(100% - 40px); }

  .header-inner {
    min-height: 0;
    padding: 4px 0;
    flex-wrap: wrap;
    gap: 0;
  }

  .brand {
    height: 50px;
    max-width: calc(100% - 84px);
  }

  header.is-scrolled .brand { height: 50px; }

  .menu-button:not([hidden]) {
    display: block;
    font-size: 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    padding: 8px 0 18px;
    gap: 0;
    font-size: 11px;
  }

  header.js nav:not(.open) { display: none; }

  nav a,
  .nav-contact { padding: 12px 6px; }
  nav a:after { left: 6px; right: 6px; }
  .nav-contact span { margin-left: 4px; }

  .hero { padding-top: 42px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-copy { padding: 0; }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    gap: 12px;
    margin-bottom: 23px;
  }
  .eyebrow:before { width: 28px; }
  h1 {
    font-size: clamp(43px, 9.9vw, 69px);
    letter-spacing: -1.8px;
  }
  .lead {
    font-size: 21px;
    margin: 25px 0 28px;
  }
  .hero-photo {
    height: 510px;
    margin: 0;
  }
  .hero-bottom {
    margin-top: 28px;
    font-size: 8px;
    letter-spacing: .7px;
    padding: 24px 0;
  }
  .hero-bottom > span { max-width: 240px; }

  .section { padding: 68px 0; }
  .about-grid,
  .contact-grid,
  .support-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }
  h2 { font-size: 39px; letter-spacing: -1.2px; }
  .about-copy .large,
  .support-copy .large { font-size: 24px; }
  .about-photo {
    margin-top: 38px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
    gap: 10px;
  }
  .about-shot-main {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
  .about-shot-wide {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
  .section-top { display: block; }
  .section-top > p { margin-top: 24px; }
  .areas {
    grid-template-columns: 1fr;
    margin-top: 32px;
    gap: 36px;
  }
  .areas h3 {
    font-size: 23px;
    margin-top: 12px;
    min-height: 0;
  }
  .detail {
    grid-template-columns: 85px 1fr;
    gap: 12px;
  }
  .detail a,
  .detail p { font-size: 15px; }
  .detail .email { font-size: 12px; }
  .footer-inner { flex-wrap: wrap; font-size: 9px; }
  .footer-inner > span:nth-child(2) {
    order: 3;
    width: 100%;
    font-size: 12px;
  }
  .footer-links { font-size: 10px; gap: 6px 18px; }
  .legal-page { padding: 28px 0 56px; }
  .legal-page .legal-title,
  main.legal-page h1.legal-title { font-size: 17px !important; }
  .amount-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 39px; }
  .detail { grid-template-columns: 1fr; gap: 7px; }
  .hero-photo { height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  header,
  .brand,
  .brand .logo,
  nav a,
  nav a:after { transition: none; }
}

/* Final legal typography lock (beats responsive h1/h2 rules) */
main.legal-page h1.legal-title {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
}
main.legal-page .legal-body h2.legal-heading {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
}
main.legal-page .legal-body {
  font-size: 12px;
  line-height: 1.65;
}
