:root {
  color-scheme: light;
  --ink: #0E2A47;
  --deep: var(--ink);
  --evergreen: #4E6C5C;
  --gold: #C9A65C;
  --river-blue: #5C708E;
  --stone: #B8BCC2;
  --paper: #F9F9F9;
  --surface: #F9F9F9;
  --sand: #EDE9E3;
  --muted: var(--evergreen);
  --line: #B8BCC2;
  --gutter: clamp(20px, 5vw, 76px);
  --sans: "Instrument Sans", Inter, system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[id] { scroll-margin-top: 12px; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { inset: 12px auto auto 12px; width: auto; height: auto; clip-path: none; padding: 14px; background: var(--surface); z-index: 5; }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.navigation { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); min-height: 76px; }
.logo { margin-right: auto; flex: 0 0 auto; }
.logo img { display: block; object-fit: contain; width: 170px; height: 57px; filter: brightness(.61) saturate(1.25); }
.navigation nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 32px); font-size: .94rem; font-weight: 650; }
.navigation nav a { text-decoration: none; padding-block: 9px; }
.navigation nav a:hover, .navigation nav a[aria-current="page"] { text-decoration: underline; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 8px; text-align: left; color: var(--paper); background: var(--ink); font-weight: 700; line-height: 1.3; text-decoration: none; }
.button:hover { background: var(--evergreen); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0; }
.actions .button + .button { background: transparent; border-color: var(--muted); color: var(--ink); }
.actions .button + .button:hover { background: var(--sand); }

h1, h2, h3 { line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.032em; }
h1 { font-size: clamp(3.25rem, 6vw, 6.25rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 4.15rem); margin-top: 32px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.2rem; letter-spacing: -.025em; font-weight: 700; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }
p { max-width: 68ch; line-height: 1.63; }
.section { padding-block: clamp(42px, 6.4vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-heading h2 { margin: 0; }
.section-heading > a { font-weight: 650; }
.label, .event-date { color: var(--muted); font-weight: 700; }
.giving-note { font-size: .925rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

.mast { background: var(--deep); color: var(--paper); padding-block: clamp(44px, 6.2vw, 88px); }
.mast h1 { max-width: 18ch; }
.home-hero { background: var(--deep); color: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); align-items: stretch; gap: clamp(24px, 4.5vw, 75px); }
.hero-copy { padding-block: clamp(42px, 6.5vw, 98px); align-self: center; }
.home-hero h1 { max-width: 12ch; line-height: .95; }
.home-hero p { margin: 22px 0 0; color: #F9F9F9; font-size: clamp(1rem, 1.55vw, 1.18rem); max-width: 42ch; }
.home-hero .actions { margin: 28px 0 0; }
.home-hero .button { color: var(--deep); background: var(--paper); min-width: 100px; }
.home-hero .button:hover { background: var(--stone); }
.home-hero .actions .button + .button { border-color: var(--stone); background: transparent; color: var(--paper); }
.home-hero .actions .button + .button:hover { background: var(--evergreen); }

.photo-frame { position: relative; overflow: hidden; background: #0E2A47; min-width: 0; }
.photo-frame img { display: block; position: absolute; top: 50%; left: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(-50%); }
/* The originals contain black bands above and below the centered photographs. */
.photo-rapids img { height: 328%; }
.photo-chairlift img { height: 228%; }
.hero-photo { min-height: 400px; margin-right: calc(-1 * max(var(--gutter), (100vw - 1240px) / 2)); }
.story-photo { min-height: 345px; aspect-ratio: 1.27; border-radius: 3px; }
.fund-photo { min-height: 300px; aspect-ratio: 1.15; border-radius: 3px; }

.grid, .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 16px; margin: 24px 0; }
.grid article, .metrics > div { border: 1px solid var(--line); background: var(--surface); padding: clamp(17px, 2.3vw, 25px); border-radius: 4px; }
.grid article p { margin: .65rem 0 0; }
.grid article > a { display: inline-block; margin-top: 12px; font-size: .96rem; font-weight: 700; }
.grid article > :is(h2, h3) { overflow-wrap: anywhere; }
.grid article > h2 { font: 700 1.2rem/1.12 var(--sans); letter-spacing: -.025em; }
.grid article > h2 a { text-decoration: none; }
.grid article > h2 a:hover { text-decoration: underline; }
.grid article .event-date { font-size: .83rem; margin: 0 0 .75rem; }
.metrics strong { display: block; font-size: 2.6rem; letter-spacing: -.055em; }
.home-options .grid, .home-pillars .grid, .home-events .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-options .grid article { background: transparent; border-width: 1px 0 0; border-radius: 0; padding-inline: 0; border-top-color: var(--evergreen); }
.home-options .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 50px); }
.home-options > a { font-weight: 700; }
.home-pillars .grid article { background: var(--sand); }
.home-giving { background: var(--sand); }
.home-giving .section { padding-block: clamp(50px, 7vw, 90px); }
.home-giving h2 { max-width: 21ch; }
.home-giving p { max-width: 59ch; }
.home-giving .actions { margin-bottom: 0; }
.home-giving .button:first-child { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.home-giving .button:first-child:hover { background: var(--ink); color: var(--paper); }
.home-story-wrap { background: var(--sand); }
.home-story, .fund-story { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 88px); }
.home-story h2 { max-width: 15ch; }
.home-story p { margin: 17px 0; }
.home-story .story-line { font-weight: 700; font-size: 1.12rem; }
.home-impact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.home-impact > div { border-top: 1px solid var(--evergreen); padding-top: 10px; }
.home-impact dt { font-family: var(--display); font-size: clamp(2.8rem, 4.8vw, 4.9rem); line-height: 1; letter-spacing: -.035em; }
.home-impact dd { margin: 4px 0 0; line-height: 1.4; font-size: .93rem; }
.fund-story h2 { margin-top: 26px; }
.event-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 66px); align-items: start; }
.outdoor-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 24px); max-width: 730px; margin-block: 32px; }
.field-photo { aspect-ratio: 3 / 4; border-radius: 4px; }
.field-photo img { height: 164%; }
#fundraisers, #join { padding-top: 24px; }
.site-footer { color: #F9F9F9; background: var(--deep); }
.foot { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding-block: 32px; }
.foot > div:last-child { display: flex; flex-wrap: wrap; gap: 10px 17px; max-width: 420px; font-size: .92rem; }
.foot a { display: inline-flex; align-items: center; min-height: 24px; }
.foot p { margin: .4rem 0 0; font-size: .94rem; }
.site-footer a:focus-visible, .home-hero a:focus-visible { outline-color: var(--stone); }

@media (min-width: 960px) {
  html { scroll-padding-top: 84px; }
  .site-header { position: sticky; top: 0; }
}
@media (max-width: 880px) {
  .navigation { flex-wrap: wrap; gap: 0 14px; padding-block: 6px; }
  .navigation nav { order: 3; width: 100%; flex-wrap: wrap; row-gap: 0; }
  .logo img { width: 153px; height: 51px; }
  .hero-photo { margin-right: calc(-1 * var(--gutter)); min-height: 320px; }
}
@media (max-width: 640px) {
  .navigation nav { column-gap: 12px; }
  .hero-grid, .home-story, .fund-story, .event-detail { grid-template-columns: 1fr; }
  .hero-grid { gap: 0; }
  .hero-copy { padding-block: 36px 28px; }
  .hero-photo {
    width: calc(100% + 2 * var(--gutter));
    height: clamp(220px, 57vw, 350px);
    min-height: 220px;
    margin-inline: calc(-1 * var(--gutter));
  }
  .story-photo, .fund-photo {
    width: 100%;
    height: clamp(220px, 64vw, 365px);
    min-height: 220px;
    aspect-ratio: auto;
  }
  .home-options .grid, .home-pillars .grid, .home-events .grid { grid-template-columns: 1fr; }
  .home-options .grid { gap: 13px; }
  .foot { flex-direction: column; }
}

.button-arrow { flex: none; font-size: 1.05em; }
.navigation > .button { min-width: 78px; justify-content: center; }
.navigation > .button .button-arrow { display: none; }
.home-options .inline-links { font-weight: 700; }

.partner-mast p {
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  max-width: 47ch;
  margin-block: 16px 0;
}
.partner-mast .actions { margin-bottom: 0; }
.partner-mast .actions .button { color: var(--ink); background: var(--paper); }
.partner-mast .actions .button:hover { background: var(--stone); }
.partner-mast .actions .button + .button { color: var(--paper); background: transparent; border-color: var(--stone); }
.partner-mast .actions .button + .button:hover { background: var(--evergreen); }
.partner-mast a:focus-visible { outline-color: var(--stone); }

.partner-directory { padding-block: clamp(36px, 6vw, 72px); }
.partner-group {
  display: grid;
  grid-template-columns: minmax(164px, .64fr) minmax(0, 2fr);
  gap: clamp(14px, 4vw, 54px);
  padding-block: clamp(26px, 4vw, 54px);
  border-top: 1px solid var(--line);
}
.partner-group:first-child { padding-top: 0; border-top: 0; }
.partner-group h2 { margin: 0; font-size: clamp(1.8rem, 2.7vw, 2.8rem); }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 26px clamp(16px, 3vw, 34px);
}
.partner-grid article { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.partner-grid article:target { border-top: 3px solid var(--evergreen); padding-top: 12px; }
.partner-grid h3 { font-size: 1.25rem; }
.partner-grid p { margin: .55rem 0; }
.partner-logo {
  display: block;
  width: 148px;
  max-width: 100%;
  height: 74px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}
.partner-links {
  list-style: none;
  padding: 0;
  margin-block: 10px 0;
}
.partner-links a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }
.partner-join { background: var(--sand); }
.partner-join .actions { margin-bottom: 0; }
.event-host { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.event-host .partner-logo { width: 108px; height: 45px; margin-bottom: 0; }

@media (max-width: 785px) {
  .partner-group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
}
