@font-face {
  font-family: Figtree;
  src: url('figtree.woff2');
}

@font-face {
  font-family: Figtree;
  src: url('figtree-bold.woff2');
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Figtree, Arial, sans-serif;
  color: #242424;
  background: #fff;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  top: -80px;
  left: 16px;
  padding: 12px;
  background: white;
  color: blue;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.charity:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid blue;
  outline-offset: 3px;
}

.mast {
  max-width: 1200px;
  margin: auto;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
}

.mast a {
  font-size: 14px;
  text-decoration: none;
}

.mast a:hover {
  text-decoration: underline;
}

.home img {
  display: block;
}

.farewell {
  background: #00bc5c;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 78px max(40px, calc((100vw - 1120px) / 2)) 82px;
}

.eyebrow {
  font-size: 12px !important;
  letter-spacing: 1.7px;
  font-weight: 700;
  margin: 0 0 26px !important;
}

.intro h1 {
  font-size: clamp(44px, 4.7vw, 68px);
  line-height: 1.08;
  letter-spacing: -2.8px;
  font-weight: 700;
  margin: 0;
}

.intro h1 span {
  color: #242424;
  display: block;
  margin-top: 10px;
}

.colour-bars {
  display: flex;
  width: 144px;
  margin-top: 40px;
}

.colour-bars i {
  height: 10px;
  flex: 1;
  background: #242424;
}

.colour-bars i:nth-child(2) {
  background: #00c6e6;
}

.colour-bars i:nth-child(3) {
  background: #ff34c6;
}

.letter h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.7px;
  margin: 0 0 24px;
  font-weight: 700;
}

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

.letter .signature {
  margin: 26px 0 0;
  font-size: 15px;
}

.charities {
  max-width: 1200px;
  margin: auto;
  padding: 64px 40px 76px;
}

.charities .eyebrow {
  color: #9b0872;
  margin-bottom: 12px !important;
}

.charities h2 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin: 0 0 18px;
  font-weight: 700;
}

.charities > p {
  font-size: 17px;
  line-height: 1.6;
}

.regions {
  display: flex;
  gap: 8px;
  margin: 32px 0 24px;
}

.regions button {
  font-family: inherit;
  border: 1px solid #d3d3d3;
  background: white;
  color: #242424;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 3px;
  cursor: pointer;
  height: auto;
  flex: none;
  font-weight: 400;
  white-space: normal;
}

.regions button[aria-pressed=true] {
  background: blue;
  color: white;
  border-color: blue;
}

.count {
  font-size: 13px !important;
  color: #666;
  margin: 0 0 16px !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #dedede;
  border-left: 1px solid #dedede;
}

.grid .charity[hidden] {
  display: none;
}

.charity {
  position: relative;
  min-height: 182px;
  border-right: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: #fff;
}

.charity:hover {
  background: #f4faf8;
}

.charity:after {
  content: "\2197";
  position: absolute;
  right: 12px;
  top: 10px;
  color: #888;
  font-size: 13px;
}

.charity img {
  width: 100%;
  max-width: 174px;
  height: 80px;
  object-fit: contain;
  margin: 0 0 20px;
}

.charity span {
  font-size: 14px;
  line-height: 1.35;
}

.charity .logo-area {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.charity .logo-area img {
  max-height: 80px;
  margin: 0;
}

.charity .logo-area.dark {
  background: #242424;
  padding: 12px;
  max-width: 180px;
}

.charity .text-logo {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.charity .country {
  display: block;
  color: #686868;
  font-size: 12px;
  margin-top: 7px;
}

.charity .country[hidden] {
  display: none;
}

footer {
  background: #242424;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px max(40px, calc((100vw - 1120px) / 2));
  gap: 20px;
  font-size: 14px;
}

footer strong {
  font-size: 23px;
}

footer img {
  width: 32px;
  height: auto;
}

footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

footer a:focus-visible {
  outline-color: white;
}

@media (max-width: 800px) {
  .farewell {
    gap: 34px;
    padding: 52px 28px;
  }

  .intro h1 {
    font-size: 47px;
  }

  .letter h2 {
    font-size: 26px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mast,
  .charities {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 600px) {
  .mast {
    min-height: 82px;
    padding: 18px 24px;
  }

  .mast img {
    width: 43px;
    height: auto;
  }

  .mast a {
    font-size: 12px;
    max-width: 155px;
    text-align: right;
  }

  .farewell {
    display: block;
    padding: 42px 24px 46px;
  }

  .intro h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .intro .eyebrow {
    font-size: 10px !important;
  }

  .colour-bars {
    margin: 28px 0 34px;
    width: 114px;
  }

  .letter h2 {
    font-size: 27px;
  }

  .letter p {
    font-size: 16px;
    line-height: 1.65;
  }

  .charities {
    padding: 42px 24px 50px;
  }

  .charities h2 {
    font-size: 34px;
  }

  .charities > p {
    font-size: 16px;
  }

  .regions {
    gap: 6px;
    flex-wrap: wrap;
    margin: 24px 0;
  }

  .regions button {
    padding: 11px 12px;
    font-size: 13px;
    min-height: 44px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .charity {
    min-height: 156px;
    padding: 20px 12px;
  }

  .charity img {
    height: 66px;
    margin-bottom: 15px;
  }

  .charity span {
    font-size: 13px;
  }

  .charity .logo-area {
    height: 70px;
  }

  .charity .logo-area img {
    max-height: 64px;
  }

  .charity .text-logo {
    font-size: 16px;
  }

  .charity .country {
    font-size: 11px;
  }

  footer {
    padding: 28px 24px;
    display: block;
  }

  footer span {
    display: block;
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
