* {
  box-sizing: border-box;
}

:root {
  --navy: #062b4f;
  --blue: #0f78a8;
  --aqua: #55c7d8;
  --sand: #f7edd7;
  --white: #ffffff;
  --yellow: #f5c748;
  --ink: #102033;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.hero {
  min-height: 92vh;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 43, 79, .92), rgba(6, 43, 79, .45)),
    url("assets/sailing-overhead.jpeg") center/cover no-repeat;
  display: flex;
  flex-direction: column;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand {
  font-weight: 900;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: .95rem;
}

.nav-links a {
  text-decoration: none;
  opacity: .92;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 64px 0 120px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  color: var(--yellow);
  margin: 0 0 10px;
}

h1, h2, h3 {
  line-height: 1.05;
  margin: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  text-transform: uppercase;
  letter-spacing: -.05em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  color: var(--navy);
  letter-spacing: -.04em;
}

h3 {
  color: var(--navy);
  font-size: 1.35rem;
}

.lead {
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin: 28px 0 32px;
}

.hero-buttons,
.donate .button {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid var(--white);
}

.button.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

.button.secondary {
  background: transparent;
  color: var(--white);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: -64px auto 0;
  position: relative;
}

.intro-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  box-shadow: 0 24px 80px rgba(6, 43, 79, .22);
}

.intro-card img,
.donate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-card div {
  padding: clamp(28px, 5vw, 56px);
}

.section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 32px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 28px;
  align-items: center;
}

.quote-card {
  background: var(--navy);
  color: var(--white);
  padding: 34px;
  border-radius: 26px;
  font-size: 1.4rem;
  font-weight: 800;
}

.boat-section {
  background: rgba(255, 255, 255, .65);
  border-radius: 30px;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.spec {
  background: var(--white);
  border-radius: 20px;
  padding: 22px;
  border-bottom: 5px solid var(--aqua);
}

.spec span {
  display: block;
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .08em;
}

.spec strong {
  display: block;
  font-size: 1.25rem;
  color: var(--navy);
}

.center-copy {
  max-width: 860px;
  font-size: 1.15rem;
}

.route-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.route-list span {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 900;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cards article {
  background: var(--white);
  padding: 24px;
  border-radius: 24px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(6, 43, 79, .16);
}

.donate {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  margin-bottom: 72px;
}

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

.donate img {
  border-radius: 24px;
  max-height: 520px;
}

footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 34px 16px;
}

footer p {
  margin: 6px 0;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-card,
  .two-column,
  .donate {
    grid-template-columns: 1fr;
  }

  .spec-grid,
  .cards,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  main {
    margin-top: -36px;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  .spec-grid,
  .cards,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-bottom: 84px;
  }
}
