:root {
  --deep-ocean: #102d3a;
  --tidal-ink: #162024;
  --milk-foam: #f6f0e6;
  --mist-white: #fffdf7;
  --kelp-green: #3e6f5a;
  --wet-stone: #64706a;
  --tide-pool: #5e9aa0;
  --sand-shell: #d9be8f;
  --rust-lichen: #a45b3f;
  --border: rgba(22, 32, 36, 0.14);
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tidal-ink);
  background: var(--milk-foam);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

h1 {
  max-width: 720px;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.98;
  font-weight: 740;
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.22;
}

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

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  color: var(--mist-white);
  background: var(--deep-ocean);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(16, 45, 58, 0.9), rgba(16, 45, 58, 0.58) 42%, rgba(16, 45, 58, 0.18)),
    linear-gradient(0deg, rgba(16, 45, 58, 0.86), rgba(16, 45, 58, 0.04) 42%);
}

.nav {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  font-weight: 720;
}

.nav__links,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.nav__links a,
.footer a {
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.94rem;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease;
}

.nav__links a:hover,
.footer a:hover {
  color: var(--sand-shell);
}

.nav__links a[aria-current="page"] {
  color: var(--sand-shell);
  border-bottom-color: currentColor;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: min(26vh, 220px) 0 88px;
}

.hero__lead {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero__note {
  max-width: 520px;
  margin-top: 20px;
  color: rgba(255, 253, 247, 0.7);
}

.page-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  color: var(--mist-white);
  background: var(--deep-ocean);
}

.page-hero__image,
.page-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__image {
  object-fit: cover;
  object-position: center;
}

.page-hero__veil {
  background:
    linear-gradient(90deg, rgba(16, 45, 58, 0.9), rgba(16, 45, 58, 0.56) 48%, rgba(16, 45, 58, 0.28)),
    linear-gradient(0deg, rgba(16, 45, 58, 0.82), rgba(16, 45, 58, 0.08) 58%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  padding: 110px 0 72px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-hero__lead {
  max-width: 700px;
  margin-top: 22px;
  color: rgba(255, 253, 247, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--kelp-green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sand-shell);
}

.section {
  padding: 104px 0;
}

.section--foam {
  background: var(--milk-foam);
}

.section--mist {
  background: var(--mist-white);
}

.section--ocean {
  color: var(--mist-white);
  background: var(--deep-ocean);
}

.section--gallery {
  background: #e8dfcf;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.copy {
  display: grid;
  gap: 22px;
}

.copy p,
.section-heading p,
.muted {
  color: var(--wet-stone);
}

.accent-list {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.accent-list li {
  position: relative;
  padding-left: 26px;
}

.accent-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kelp-green);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p:last-child {
  max-width: 680px;
  margin-top: 18px;
}

.section-heading--dark p:last-child {
  color: rgba(255, 253, 247, 0.68);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--wet-stone);
  font-size: 0.86rem;
}

.breadcrumbs a {
  color: var(--kelp-green);
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: var(--wet-stone);
}

.breadcrumbs span {
  color: var(--tidal-ink);
}

.link-grid,
.note-grid,
.report-grid,
.journal-layout,
.sector-layout,
.map-points {
  display: grid;
  gap: 18px;
}

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

.link-card,
.note-card,
.report-card,
.journal-card,
.info-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--mist-white);
}

.link-card {
  transition: transform 180ms ease, border-color 180ms ease;
}

.link-card h3,
.note-card h3,
.report-card h3,
.journal-card h3,
.info-card h3 {
  margin-bottom: 12px;
}

.link-card p,
.note-card p,
.report-card p,
.journal-card p,
.info-card p {
  color: var(--wet-stone);
}

.card-meta {
  margin-bottom: 10px;
  color: var(--rust-lichen);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-grid {
  grid-template-columns: repeat(4, 1fr);
}

.note-card {
  min-height: 280px;
}

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

.report-card {
  display: grid;
  gap: 18px;
}

.report-card ul,
.journal-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--wet-stone);
}

.journal-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.journal-list {
  display: grid;
  gap: 18px;
}

.journal-card {
  background: var(--milk-foam);
}

.side-note {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--mist-white);
}

.side-note ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--wet-stone);
}

.sector-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.shore-map {
  min-height: 420px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 253, 247, 0.2);
  background:
    radial-gradient(circle at 24% 28%, rgba(217, 190, 143, 0.28), transparent 17%),
    radial-gradient(circle at 70% 62%, rgba(94, 154, 160, 0.28), transparent 20%),
    linear-gradient(145deg, #102d3a, #1f4750 48%, #3e6f5a);
  color: var(--mist-white);
}

.shore-map__line {
  height: 100%;
  min-height: 300px;
  border: 2px solid rgba(255, 253, 247, 0.32);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 120px 0 0;
}

.map-points {
  grid-template-columns: 1fr;
}

.image-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.image-band img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-page-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--mist-white);
}

.gallery-page-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-page-grid figcaption {
  padding: 18px;
  color: var(--wet-stone);
}

.habitat-grid,
.feature-grid,
.gallery-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.habitat-grid {
  grid-template-columns: repeat(4, 1fr);
}

.habitat-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--milk-foam);
  transition: transform 180ms ease, border-color 180ms ease;
}

.habitat-card--wide {
  grid-column: span 2;
}

.habitat-card--green {
  background: #dfe8dc;
}

.habitat-card--dark {
  color: var(--mist-white);
  background: var(--deep-ocean);
}

.habitat-card span,
.feature-grid span {
  display: block;
  margin-bottom: 46px;
  color: var(--rust-lichen);
  font-weight: 800;
}

.habitat-card h3,
.feature-grid h3,
.faq h3,
.timeline h3 {
  margin-bottom: 12px;
}

.habitat-card p,
.feature-grid p,
.faq p,
.timeline p {
  color: var(--wet-stone);
}

.habitat-card--dark p {
  color: rgba(255, 253, 247, 0.72);
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-grid article {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 253, 247, 0.24);
}

.feature-grid p {
  color: rgba(255, 253, 247, 0.7);
}

.timeline {
  position: relative;
  display: grid;
  gap: 26px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--sand-shell);
}

.timeline article {
  position: relative;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--mist-white);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 28px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--milk-foam);
  border-radius: 50%;
  background: var(--rust-lichen);
}

.timeline__meta {
  margin-bottom: 8px;
  color: var(--kelp-green);
  font-size: 0.86rem;
  font-weight: 760;
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-grid figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist-white);
  border: 1px solid rgba(22, 32, 36, 0.12);
}

.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 16px 18px 18px;
  color: var(--wet-stone);
  font-size: 0.94rem;
}

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

.faq article {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--milk-foam);
}

.footer {
  color: var(--mist-white);
  background: var(--tidal-ink);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 32px 0;
}

.footer p {
  color: rgba(255, 253, 247, 0.76);
}

@media (hover: hover) {
  .habitat-card:hover,
  .link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(62, 111, 90, 0.44);
  }
}

@media (max-width: 900px) {
  .nav,
  .split,
  .footer__inner {
    display: grid;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .habitat-grid,
  .feature-grid,
  .faq-grid,
  .link-grid,
  .note-grid,
  .report-grid,
  .journal-layout,
  .sector-layout,
  .image-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .journal-layout,
  .sector-layout,
  .image-band {
    grid-template-columns: 1fr;
  }

  .side-note {
    position: static;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 40px, 100%);
  }

  body {
    font-size: 16px;
  }

  .hero {
    min-height: 92svh;
  }

  .page-hero {
    min-height: 420px;
  }

  .hero__image {
    object-position: 63% center;
  }

  .hero__veil {
    background:
      linear-gradient(90deg, rgba(16, 45, 58, 0.9), rgba(16, 45, 58, 0.58)),
      linear-gradient(0deg, rgba(16, 45, 58, 0.9), rgba(16, 45, 58, 0.12) 58%);
  }

  .nav {
    padding: 22px 0;
    gap: 16px;
  }

  .nav__links {
    gap: 8px 15px;
  }

  .hero__content {
    padding: 17vh 0 56px;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .habitat-grid,
  .feature-grid,
  .gallery-grid,
  .faq-grid,
  .link-grid,
  .note-grid,
  .report-grid,
  .gallery-page-grid,
  .journal-layout,
  .sector-layout,
  .image-band {
    grid-template-columns: 1fr;
  }

  .habitat-card,
  .habitat-card--wide,
  .gallery-grid figure:nth-child(1),
  .gallery-grid figure:nth-child(4) {
    grid-column: auto;
  }

  .habitat-card {
    min-height: auto;
    padding: 24px;
  }

  .habitat-card span,
  .feature-grid span {
    margin-bottom: 28px;
  }

  .feature-grid {
    gap: 28px;
  }

  .timeline {
    padding-left: 22px;
  }

  .timeline article {
    padding: 20px;
  }

  .gallery-grid img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
