:root {
  --teal: #087f83;
  --teal-dark: #07505c;
  --navy: #12344a;
  --coral: #c95f3d;
  --charcoal: #253238;
  --muted: #5d6b70;
  --sand: #f5f1e9;
  --light: #f7faf9;
  --white: #fff;
  --border: #d8e1df;
  --shell: 1360px;
  --focus: #f4b942;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: var(--white);
  font-family: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-bottom: 0.7rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.shell {
  width: min(100% - 3rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  width: min(100% - 3rem, var(--shell));
  min-height: 94px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 1 390px;
}

.brand img {
  width: min(100%, 390px);
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.3vw, 1.35rem);
  font-size: 0.91rem;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav > a:not(.button) {
  text-decoration: none;
}

.desktop-nav > a:not(.button):hover,
.desktop-nav > a[aria-current="page"] {
  color: var(--teal);
}

.mobile-menu {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--coral);
  border: 2px solid var(--coral);
  border-radius: 0.25rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: #a9472b;
  border-color: #a9472b;
}

.button--small {
  min-height: 42px;
  padding: 0.62rem 1rem;
}

.button--outline {
  color: var(--teal-dark);
  background: transparent;
  border-color: var(--teal);
}

.button--outline:hover {
  color: var(--white);
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.waterfront-hero {
  position: relative;
  min-height: clamp(330px, 31vw, 490px);
  overflow: hidden;
  background: var(--navy);
}

.waterfront-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.waterfront-hero__caption {
  position: absolute;
  right: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 2.5vw, 2.5rem);
  max-width: 440px;
  padding: clamp(1rem, 1.7vw, 1.35rem) clamp(1.2rem, 2.2vw, 1.75rem);
  color: var(--white);
  background: rgba(7, 80, 92, 0.84);
}

.waterfront-hero h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.08;
}

.waterfront-hero h1 span {
  display: block;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section {
  padding: clamp(3.75rem, 5vw, 5.25rem) 0;
}

.section--light {
  background: var(--light);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(2.3rem, 5vw, 4rem);
  text-align: center;
}

.section-heading--left {
  margin-inline: 0;
  text-align: left;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading link"
    "cards cards";
  column-gap: 2rem;
}

.events-heading {
  grid-area: heading;
  max-width: 950px;
  margin-bottom: clamp(2.1rem, 4vw, 3.5rem);
}

.events-heading h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.15rem, 3.1vw, 3.15rem);
}

.events-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.events-all-link {
  display: inline-flex;
  grid-area: link;
  align-self: end;
  justify-self: end;
  margin-bottom: clamp(2.1rem, 4vw, 3.5rem);
  color: var(--teal);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}

.events-all-link:hover {
  color: var(--coral);
}

.event-grid {
  grid-area: cards;
}

.event-grid,
.impact-grid,
.participate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.event-card {
  --event-card-radius: 7px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #c6d5d2;
  border-radius: var(--event-card-radius);
}

.event-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--event-card-radius) var(--event-card-radius) 0 0;
  text-decoration: none;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: inherit;
  object-fit: cover;
}

.event-card:nth-child(1) .event-card__image img {
  object-position: 50% 45%;
}

.event-card:nth-child(2) .event-card__image img {
  object-position: 50% 42%;
}

.event-card__image--poster img {
  object-position: 50% 9%;
}

.event-card__body {
  display: flex;
  padding: 1.5rem;
  flex: 1;
  flex-direction: column;
}

.event-card__body > p:not(.event-card__date, .text-link) {
  color: var(--muted);
}

.event-card__date {
  margin-bottom: 0.55rem;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-card__meta {
  display: flex;
  margin-bottom: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.event-card__meta .event-card__date {
  margin-bottom: 0;
}

.event-card__next {
  display: inline-flex;
  min-height: 24px;
  padding: 0.2rem 0.5rem;
  align-items: center;
  color: var(--white);
  background: var(--teal-dark);
  border-radius: 0.2rem;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.event-card .text-link {
  margin-top: auto;
  padding-top: 0.65rem;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.text-link:hover {
  color: var(--coral);
}

.text-link--plain {
  display: inline-block;
  margin-bottom: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.story {
  background: var(--white);
}

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.story__image {
  overflow: hidden;
  border-radius: 0.35rem;
}

.story__image img {
  width: 100%;
  min-height: 365px;
  object-fit: cover;
  object-position: center;
}

.lead {
  color: var(--teal-dark);
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  font-weight: 750;
  line-height: 1.35;
}

.link-row {
  display: flex;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
}

.impact {
  color: var(--white);
  background: var(--navy);
}

.impact h2,
.impact .section-heading > p:last-child {
  color: var(--white);
}

.impact .eyebrow {
  color: #8bd3d0;
}

.impact-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-top: 5px solid var(--teal);
}

.impact-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.impact-card:nth-child(2) > img {
  object-position: center 35%;
}

.impact-card__body {
  display: flex;
  padding: 1.6rem 1.5rem 2rem;
  flex: 1;
  flex-direction: column;
  color: var(--charcoal);
}

.impact-card__body p {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.impact-card__body .text-link {
  margin-top: auto;
  padding-top: 0.35rem;
}

.participate {
  background: var(--sand);
}

.participate-grid article {
  padding: 1.65rem 1.4rem 1.75rem;
  background: rgba(255, 255, 255, 0.52);
  border-top: 6px solid var(--teal);
}

.participate-grid article:nth-child(2) {
  border-color: var(--coral);
}

.participate-grid article:nth-child(3) {
  border-color: var(--navy);
}

.participate-grid article p {
  min-height: 3.4em;
  margin-bottom: 1.35rem;
  color: var(--muted);
}

.participate-grid article h3 {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
}

.secondary-action {
  margin: 2.25rem 0 0;
  text-align: center;
}

.secondary-action a {
  color: var(--teal-dark);
  font-weight: 800;
}

.connect {
  padding: clamp(2.2rem, 4vw, 3.25rem) 0;
  color: var(--white);
  background: var(--teal-dark);
}

.connect__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.connect h2 {
  color: var(--white);
}

.connect .eyebrow {
  color: #b7e8e5;
}

.connect h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.connect__links {
  display: flex;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.button--light {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--white);
}

.button--light:hover {
  color: var(--navy);
  background: var(--sand);
  border-color: var(--sand);
}

.button--ghost {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.78);
}

.button--ghost:hover {
  color: var(--teal-dark);
  background: var(--white);
  border-color: var(--white);
}

.site-footer {
  padding: 4rem 0 1.5rem;
  color: #d9e2e5;
  background: #0e2838;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 3rem;
}

.site-footer__grid > div {
  max-width: 620px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.tax-id {
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.65rem 1.5rem;
}

.footer-nav a {
  color: var(--white);
  font-weight: 700;
}

.site-footer__bottom {
  display: flex;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
}

.site-footer__bottom p {
  margin-bottom: 0;
}

.site-footer__bottom a {
  color: var(--white);
  font-weight: 750;
}

@media (max-width: 1120px) {
  .site-header__inner,
  .shell {
    width: min(100% - 2rem, var(--shell));
  }

  .brand {
    flex-basis: 330px;
  }

  .desktop-nav {
    gap: 0.75rem;
    font-size: 0.84rem;
  }

}

@media (min-width: 1100px) {
  .events-heading h2 {
    white-space: nowrap;
  }
}

@media (max-width: 1040px) {
  .site-header__inner {
    min-height: 86px;
  }

  .brand {
    flex: 1 1 auto;
    max-width: 380px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: block;
    min-width: 76px;
    padding: 0.55rem 0.8rem;
    color: var(--teal-dark);
    border: 2px solid var(--teal);
    border-radius: 0.25rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu[open] summary {
    color: var(--white);
    background: var(--teal-dark);
    border-color: var(--teal-dark);
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    display: grid;
    width: min(88vw, 320px);
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(18, 52, 74, 0.16);
  }

  .mobile-menu nav a:not(.button) {
    padding: 0.65rem 0.55rem;
    color: var(--navy);
    font-weight: 750;
    text-decoration: none;
  }

  .mobile-menu .button {
    margin-top: 0.5rem;
  }

  .story__grid {
    grid-template-columns: 1fr;
  }

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

  .event-card:last-child,
  .impact-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .event-card:last-child .event-card__image img,
  .impact-card:last-child > img {
    height: 100%;
    aspect-ratio: auto;
  }

  .story__image {
    order: 2;
  }

  .story__image img {
    min-height: 320px;
  }

  .participate-grid {
    gap: 1.4rem;
  }

  .participate-grid article p {
    min-height: 5.4em;
  }

  .connect__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 701px) and (max-width: 1040px) {
  .event-card:last-child {
    display: flex;
    grid-template-columns: none;
    flex-direction: column;
  }

  .event-card__image {
    height: calc(30.46875vw - 11.25px);
    aspect-ratio: auto;
    align-self: start;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 1.5rem, var(--shell));
  }

  .site-header__inner {
    width: min(100% - 1.5rem, var(--shell));
    gap: 1rem;
  }

  .events-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "cards"
      "link";
  }

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

  .events-all-link {
    min-height: 44px;
    margin: 1.25rem 0 0;
    align-items: center;
    justify-self: start;
  }

  .event-card:last-child,
  .impact-card:last-child {
    display: flex;
    grid-template-columns: none;
  }

  .event-grid,
  .impact-grid,
  .participate-grid {
    grid-template-columns: 1fr;
  }

  .event-card:last-child,
  .impact-card:last-child {
    grid-column: auto;
    flex-direction: column;
  }

  .event-card:last-child .event-card__image img,
  .impact-card:last-child > img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .story__image img {
    min-height: 260px;
  }

  .participate-grid article p {
    min-height: 0;
  }

  .connect__links {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
  }

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

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-header__inner {
    min-height: 76px;
  }

  .brand {
    max-width: 270px;
  }

  .mobile-menu summary {
    min-width: 68px;
    padding-inline: 0.6rem;
  }

  .section {
    padding-block: 3.75rem;
  }

  .event-card__body,
  .impact-card__body {
    padding-inline: 1.15rem;
  }

  .link-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .waterfront-hero {
    min-height: clamp(300px, 78vw, 380px);
  }

  .waterfront-hero > img {
    object-position: 58% center;
  }

  .waterfront-hero__caption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: auto;
    width: min(78vw, 440px);
    max-width: calc(100% - 1.5rem);
  }

  .waterfront-hero h1 {
    max-width: 16ch;
    font-size: clamp(2rem, 6.2vw, 2.6rem);
  }
}

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