:root {
  --evergreen: #04201C;
  --evergreen-900: #062A25;
  --evergreen-800: #0A3832;
  --evergreen-700: #0F4A41;
  --evergreen-500: #1E7466;
  --mint: #4ADB8E;
  --mint-hover: #22C773;
  --mint-tint: #EEFDF5;
  --mint-text: #13804B;
  --ink: #04201C;
  --muted: #4B5551;
  --subtle: #66716C;
  --line: #E9EDEB;
  --paper: #FFFFFF;
  --paper-alt: #F4F6F5;
  --on-dark: #F2F6F4;
  --on-dark-muted: #B4C4BE;
  --on-dark-line: #174A42;
  --feature: linear-gradient(135deg, #D6FAE6 0%, #E4F5F1 45%, #DCEBFB 100%);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: 1rem;
  --content: 1440px;
  --section: 4rem;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
}

a {
  color: var(--evergreen-700);
}

a:hover {
  color: var(--evergreen-900);
}

a:focus {
  outline: 2px solid #16A35D;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--mint);
  color: var(--evergreen);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: var(--section) 0;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mint-text);
  margin-bottom: 1rem;
}

.wordmark {
  display: inline-block;
  line-height: 0;
}

.wordmark img {
  display: block;
  width: auto;
  height: 24px;
}

.wordmark--footer img {
  height: 44px;
}

@media (min-width: 768px) {
  .wordmark img {
    height: 28px;
  }
  .wordmark--footer img {
    height: 52px;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid rgba(242, 246, 244, 0.12);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header.is-solid {
  background: var(--evergreen);
  border-bottom-color: var(--on-dark-line);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  background: var(--evergreen);
  color: var(--on-dark);
  text-align: center;
}

.hero__photo {
  position: absolute;
  top: 6px;
  right: 0;
  bottom: 0;
  left: -6px;
  background-color: var(--evergreen-700);
  background-image: url("../images/hero-facade.jpg");
  background-size: cover;
  background-position: 60% center;
}

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(4, 32, 28, 0.35) 0%, rgba(4, 32, 28, 0.7) 75%), linear-gradient(180deg, rgba(4, 32, 28, 0.3) 0%, rgba(4, 32, 28, 0.85) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 1.75rem;
}

.hero__lead {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 26ch;
  color: var(--on-dark);
}

.hero h1 {
  margin-top: auto;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 10ch;
}

.hero__creed {
  margin-top: auto;
  padding-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

.hero__creed span {
  color: var(--mint);
}

.mission {
  position: relative;
}

.mission__inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.mission .label {
  color: var(--mint-text);
  margin: 0;
}

.mission__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.125rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 19ch;
}

.pixels {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  grid-auto-rows: 16px;
  justify-self: end;
}

.pixels .g {
  background: var(--evergreen);
}

.pixels .m {
  background: var(--mint);
}

.invest {
  background: var(--evergreen);
  color: var(--on-dark);
}

.invest .label {
  color: var(--mint);
}

.invest__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.invest__intro {
  color: var(--on-dark-muted);
  max-width: 44ch;
}

.allocations {
  border-bottom: 1px solid var(--on-dark-line);
}

.allocation {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--on-dark-line);
}

.allocation__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  background: var(--evergreen-800);
}

.allocation h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}

.allocation p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 46ch;
}

.icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--mint-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 4.5rem;
}

.invest + .approach {
  border-top: 1px solid var(--on-dark-line);
}

.approach {
  background: var(--evergreen);
  color: var(--on-dark);
}

.approach .label {
  color: var(--mint);
}

.approach__head {
  margin-bottom: 3rem;
}

.approach__intro {
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
  max-width: 44ch;
}

.criteria {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.criterion {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 1.5rem;
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.criterion__icon {
  margin: 0 0 1.25rem;
}

.criterion h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.criterion p {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 40ch;
}

.giving__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.giving__intro {
  color: var(--muted);
  max-width: 46ch;
}

.causes {
  display: grid;
  border-top: 1px solid var(--line);
}

.cause {
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.cause h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.625rem;
}

.cause p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 3rem;
  margin-top: 3rem;
}

.partners a {
  display: block;
  line-height: 0;
  opacity: 0.85;
  transition: opacity 200ms var(--ease);
}

.partners a:hover {
  opacity: 1;
}

.partners img {
  width: auto;
  height: 40px;
  max-width: 100%;
}

.partners li:nth-child(2) img {
  height: 44px;
}

.partners li:nth-child(3) img {
  height: 22px;
}

.giving__close {
  margin-top: 3.5rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--evergreen);
}

.contact {
  display: grid;
  padding: 0;
  background: var(--evergreen);
  color: var(--on-dark);
}

.contact__photo {
  min-height: 260px;
  background-color: var(--evergreen-700);
  background-image: url("../images/contact-library.jpg");
  background-size: cover;
  background-position: center;
}

.contact__body {
  padding: 3.5rem var(--gutter) 4rem;
}

.contact__intro {
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
  max-width: 42ch;
}

.details {
  margin-top: 2.5rem;
  border-top: 1px solid var(--on-dark-line);
}

.details div {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--on-dark-line);
}

.details dt {
  width: 6rem;
  flex: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}

.details dd address {
  font-style: normal;
}

.details dd a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.details dd a:hover {
  color: var(--mint);
}

.site-footer {
  background: var(--evergreen);
  color: #8FA39C;
  border-top: 1px solid var(--on-dark-line);
  padding: 2.5rem 0;
  font-size: 0.8125rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__link {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer__link:hover {
  color: var(--on-dark);
  text-decoration: underline;
}

.legal {
  padding: 7.5rem 0 var(--section);
}

.legal__inner {
  display: grid;
  gap: 2.5rem;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.legal__date {
  margin-top: 1rem;
  color: var(--subtle);
  font-size: 0.875rem;
}

.legal__body {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.legal__body p,
.legal__body ul {
  margin-top: 1rem;
}

.legal__body ul {
  padding-left: 1.2rem;
}

.legal__body li + li {
  margin-top: 0.5rem;
}

.legal__body strong,
.legal__body dt {
  color: var(--ink);
  font-weight: 600;
}

.legal__body h2 {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 1.75rem;
  color: var(--ink);
}

.legal__body h3 {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.legal__body a {
  color: var(--mint-text);
  overflow-wrap: anywhere;
}

.legal__body a:hover {
  color: var(--evergreen-700);
}

.cookie-types {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.cookie-types div {
  padding: 1.5rem;
  background: var(--paper-alt);
  border-radius: 4px;
}

.cookie-types dt {
  margin-bottom: 0.6rem;
}

.cookie-types dd + dd {
  margin-top: 0.35rem;
}

.reveal {
  --shift: 16px;
  opacity: 0;
  transform: translate3d(0, var(--shift), 0);
  transition: opacity 200ms linear, transform 0s linear 200ms;
}

.reveal--label {
  --shift: 8px;
}

.reveal--heading {
  --shift: 18px;
}

.reveal--text {
  --shift: 12px;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms), transform 800ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

@media (min-width: 768px) {
  .reveal--label {
    --shift: 10px;
  }
  .reveal--heading {
    --shift: 24px;
  }
  .reveal--text {
    --shift: 16px;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }
  .pixels {
    grid-template-columns: repeat(3, 24px);
    grid-auto-rows: 24px;
  }
}

@media (min-width: 768px) {
  :root {
    --section: 6rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  .hero h1 {
    font-size: 5.5rem;
  }
  .hero__lead {
    font-size: 1.125rem;
  }
  .hero__creed {
    flex-direction: row;
    gap: 0;
  }
  .hero__creed span + span::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 1.5rem;
    vertical-align: middle;
    background: var(--mint);
  }
  .mission .label {
    order: -1;
  }
  .mission__text {
    font-size: 2.75rem;
  }
  .pixels {
    position: absolute;
    top: -3rem;
    right: var(--gutter);
  }
  .invest__head {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 2rem;
  }
  .approach .wrap {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
    align-items: start;
  }
  .approach__head {
    margin-bottom: 0;
  }
  .criteria {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .criterion {
    display: block;
    padding: 2rem;
  }
  .criterion__icon {
    margin: 0 0 1.25rem;
  }
  .contact {
    grid-template-columns: 1fr 1fr;
    padding-left: calc((100% - var(--content)) / 2);
    padding-right: calc((100% - var(--content)) / 2);
  }
  .contact__photo {
    min-height: 100%;
  }
  .contact__body {
    padding: 6rem 3rem 6rem 3.5rem;
  }
  .site-footer__inner {
    flex-direction: row;
    gap: 2.5rem;
    align-items: baseline;
  }
  .site-footer__inner p {
    margin-left: auto;
  }
  .legal {
    padding-top: 10rem;
  }
  .legal__inner {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
  .legal__head {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
  .legal h1 {
    font-size: 3.25rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 2rem;
    --section: 8rem;
  }
  .site-header {
    height: 72px;
  }
  h2 {
    font-size: 3rem;
  }
  .hero__inner {
    padding-top: 9rem;
    padding-bottom: 2.5rem;
  }
  .hero h1 {
    font-size: clamp(6rem, 8vw, 8.5rem);
    max-width: 11ch;
  }
  .hero__creed {
    font-size: 0.9375rem;
  }
  .mission__text {
    font-size: 3.25rem;
  }
  .approach .wrap {
    gap: 4rem;
  }
  .criteria {
    gap: 1.5rem;
  }
  .criterion {
    min-height: 15rem;
    padding: 2.5rem;
  }
  .criterion__icon {
    margin-bottom: 1.5rem;
  }
  .criterion h3 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
  }
  .contact__body {
    padding: 8rem 4rem 8rem 5rem;
    max-width: 44rem;
  }
}

@media (max-width: 1440px) {
  .contact {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.cookie-banner {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--evergreen);
  color: var(--on-dark);
  border: 1px solid var(--on-dark-line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(4, 32, 28, 0.24);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
  max-width: 62ch;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.625rem;
}

.cookie-banner__btn {
  flex: 1 1 0;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  font: 500 0.9375rem/1 var(--sans);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.cookie-banner__btn--accept {
  background: var(--mint);
  border: 1px solid var(--mint);
  color: var(--evergreen);
}

.cookie-banner__btn--accept:hover {
  background: var(--mint-hover);
  border-color: var(--mint-hover);
}

.cookie-banner__btn--decline {
  background: transparent;
  border: 1px solid var(--on-dark-line);
  color: var(--on-dark);
}

.cookie-banner__btn--decline:hover {
  border-color: var(--on-dark-muted);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .cookie-banner {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
  }
  .cookie-banner__actions {
    flex-shrink: 0;
  }
  .cookie-banner__btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) {
  .cookie-banner {
    left: 2rem;
    right: auto;
    bottom: 2rem;
    max-width: 760px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}

@media (min-width: 1024px) {
  .allocations {
    position: relative;
    padding-left: 52%;
    min-height: 34rem;
  }
  .allocation {
    grid-template-columns: 3rem 1fr;
    gap: 0;
    padding: 2rem 0;
    cursor: default;
  }
  .allocation::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 0.75rem;
    background: var(--mint);
    opacity: 0;
    transition: opacity 300ms var(--ease);
  }
  .allocation__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 46%;
    height: 100%;
    aspect-ratio: auto;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 600ms var(--ease), transform 900ms var(--ease);
  }
  .allocation__body {
    opacity: 0.5;
    transition: opacity 300ms var(--ease);
  }
  .allocation.is-active::before,
  .allocation.is-active .allocation__body,
  .allocation.is-active .allocation__img {
    opacity: 1;
  }
  .allocation.is-active .allocation__img {
    transform: none;
  }
  .allocation h3 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .allocation__img,
  .allocation__body,
  .allocation::before {
    transition: none;
  }
}

@media (min-width: 768px) {
  .giving__head {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 2rem;
  }
  .causes {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    border-top: 0;
  }
  .cause {
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }
  .giving__close {
    font-size: 2.25rem;
    max-width: 18ch;
    margin-left: auto;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .partners {
    gap: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
    margin-top: 4rem;
  }
  .partners img {
    height: 48px;
  }
  .partners li:nth-child(2) img {
    height: 52px;
  }
  .partners li:nth-child(3) img {
    height: 26px;
  }
}
