:root {
  --color-background: #ffffff;
  --color-text: #1b1b1b;
  --color-copy: #5e5e5e;
  --color-line: #e6e6e6;
  --color-accent: #79a0ce;
  --color-hero-overlay: rgba(0, 0, 0, 0.4);
  --color-button: #000000;
  --color-button-text: #ffffff;
  --shadow-banner: 0 18px 40px rgba(0, 0, 0, 0.18);
  --font-heading: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lusitana", Georgia, "Times New Roman", serif;
  --shell: min(1030px, calc(100vw - 4rem));
  --radius: 7px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  padding: 0.75rem 1rem;
  background: var(--color-button);
  color: var(--color-button-text);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  color: #ffffff;
  background:
    linear-gradient(to bottom, var(--color-hero-overlay), var(--color-hero-overlay)),
    url("assets/images/hero-water-security.webp") center 54% / cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 2.9rem 1rem 0;
}

.site-logo img {
  width: 114px;
  height: auto;
  object-fit: contain;
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: calc(100svh - 132px);
  display: grid;
  place-items: end center;
  padding: 5.1rem 0 9.8rem;
}

.hero__copy {
  width: min(980px, 90vw);
  text-align: center;
}

.hero h1 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.96);
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 5.95vw, 4.9rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.hero h1 span + span {
  margin-top: 0.18rem;
}

.hero__lede {
  max-width: 1160px;
  margin: 1.6rem auto 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  line-height: 1.5;
  text-wrap: pretty;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
}

.section {
  padding: 2.9rem 0 2.4rem;
}

.section-heading {
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.05rem;
  margin: 0;
  color: #222222;
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.35vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading h2::after {
  content: "";
  width: 100%;
  height: 1px;
  background: var(--color-line);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
  margin-bottom: 2.9rem;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row__media img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.feature-row__media--about img {
  object-position: center 50%;
}

.feature-row__media--mission img {
  object-position: center 46%;
}

.feature-row__body {
  color: var(--color-copy);
  font-family: var(--font-body);
  font-size: clamp(1.06rem, 1.3vw, 1.22rem);
  line-height: 1.7;
  text-align: center;
}

.feature-row__body > * {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.feature-row--about .feature-row__body > * {
  max-width: 41rem;
}

.feature-row--mission .feature-row__body > * {
  max-width: 39rem;
}

.feature-row__body p {
  margin: 0 0 1rem;
}

.feature-row__body p:last-child {
  margin-bottom: 0;
}

.feature-row__body h3 {
  margin: 0 0 1rem;
  color: #222222;
  font-family: var(--font-body);
  font-size: clamp(1.95rem, 2.8vw, 2.45rem);
  font-weight: 400;
  line-height: 1.15;
}

.site-footer {
  padding: 1.4rem 0 1.6rem;
}

.site-footer__inner {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  width: min(calc(100vw - 6rem), 1730px);
  margin: 0 auto;
}

.site-footer__copyright,
.site-footer__settings {
  margin: 0;
  color: #5a5a5a;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
}

.site-footer__settings {
  text-align: left;
}

.cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: #5a5a5a;
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1000;
  width: min(400px, calc(100vw - 2rem));
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-banner);
  color: #101011;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 280ms ease,
    transform 320ms ease,
    visibility 320ms ease;
  will-change: opacity, transform;
}

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

.cookie-banner.is-entering {
  opacity: 0;
  transform: translateY(18px);
}

.cookie-banner__inner {
  padding: 1.5rem;
}

.cookie-banner h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.25;
}

.cookie-banner p {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.5;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  min-height: 2.5rem;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.063em;
  text-transform: uppercase;
  cursor: pointer;
}

.button--primary {
  background: var(--color-button);
  color: var(--color-button-text);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-text);
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .feature-row--reverse .feature-row__media {
    order: 2;
  }

  .feature-row--reverse .feature-row__body {
    order: 1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer__settings {
    text-align: right;
  }

  .feature-row:first-of-type .feature-row__body {
    padding-left: 0.5rem;
  }

  .feature-row--reverse .feature-row__body {
    padding-right: 0.8rem;
  }
}

@media (max-width: 899px) {
  :root {
    --shell: min(100vw - 2rem, 720px);
  }

  .site-nav {
    padding-top: 1.75rem;
  }

  .site-logo img {
    width: 102px;
  }

  .hero__content {
    place-items: center;
    padding: 3.5rem 1.1rem 4.4rem;
  }

  .hero__copy {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 10.2vw, 3.45rem);
    line-height: 0.96;
    padding-bottom: 0.5rem;
  }

  .hero__lede {
    max-width: 31rem;
    font-size: clamp(1.06rem, 4vw, 1.28rem);
    margin-top: 1.15rem;
    padding: 0 0.35rem;
  }

  .section {
    padding-top: 2.2rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .feature-row {
    margin-bottom: 2.5rem;
  }

  .feature-row--mission .feature-row__body {
    order: 1;
  }

  .feature-row--mission .feature-row__media {
    order: 2;
  }

  .site-footer {
    padding-top: 2.8rem;
  }

  .site-footer__inner {
    width: min(calc(100vw - 2rem), 720px);
  }

  .cookie-banner {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
    border-radius: 0;
  }

  .cookie-banner__actions > * {
    width: 100%;
  }
}
