:root {
  color-scheme: dark;
  --ink: #07120f;
  --panel: #0d1d19;
  --panel-2: #132822;
  --reef: #3ce6bf;
  --reef-2: #77f2d4;
  --amber: #f2b84b;
  --coral: #f06d5f;
  --kelp: #97cf5f;
  --mist: #e9fff8;
  --muted: #9cc5ba;
  --line: rgba(174, 255, 231, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(60, 230, 191, 0.08), transparent 28rem),
    linear-gradient(135deg, rgba(151, 207, 95, 0.08) 0 12%, transparent 12% 100%),
    var(--ink);
  color: var(--mist);
  font-family: "Avenir Next", "Bahnschrift", "Trebuchet MS", sans-serif;
  line-height: 1.62;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.36;
  background:
    repeating-linear-gradient(
      112deg,
      transparent 0 34px,
      rgba(60, 230, 191, 0.08) 35px 36px,
      transparent 37px 78px
    );
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 15, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--mist);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: conic-gradient(from 120deg, var(--reef), var(--kelp), var(--amber), var(--reef));
  border-radius: 9px;
  box-shadow: 0 0 28px rgba(60, 230, 191, 0.34);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--mist);
  background: rgba(60, 230, 191, 0.1);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 15, 0.94) 0%, rgba(7, 18, 15, 0.72) 46%, rgba(7, 18, 15, 0.26) 100%),
    linear-gradient(0deg, rgba(7, 18, 15, 0.95) 0%, rgba(7, 18, 15, 0.22) 58%, rgba(7, 18, 15, 0.58) 100%);
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 22px 58px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--reef-2);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 870px;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 900;
}

.lede {
  max-width: 750px;
  margin: 20px 0 0;
  color: #cceee5;
  font-size: 1.16rem;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 29, 25, 0.82);
  color: var(--mist);
  font-weight: 800;
}

.button.primary {
  background: var(--reef);
  color: #06211b;
  border-color: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.status-strip {
  max-width: var(--max);
  margin: -34px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.status-item {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(13, 29, 25, 0.92);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-item strong {
  display: block;
  margin-top: 4px;
  font-size: 1.04rem;
}

.band {
  padding: 78px 22px;
}

.band.alt {
  background: rgba(233, 255, 248, 0.035);
  border-block: 1px solid var(--line);
}

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

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.tile,
.guide-card,
.fact-card,
.source-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 29, 25, 0.78);
}

.tile,
.guide-card,
.fact-card,
.source-card {
  padding: 20px;
}

.tile h3,
.guide-card h3,
.fact-card h3,
.source-card h3 {
  font-size: 1.18rem;
}

.tile p,
.guide-card p,
.fact-card p,
.source-card p {
  color: var(--muted);
  margin: 10px 0 0;
}

.tile:hover,
.guide-card:hover {
  border-color: rgba(60, 230, 191, 0.45);
  background: rgba(18, 42, 35, 0.92);
}

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

.image-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.image-frame img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.caption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

.page-hero {
  padding: 72px 22px 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(233, 255, 248, 0.035);
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 34px;
  align-items: center;
}

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

.page-hero .image-frame {
  align-self: center;
}

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-nav a,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(13, 29, 25, 0.72);
  font-size: 0.88rem;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
}

.content > * {
  min-width: 0;
}

.article-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-x: auto;
}

.article-section p {
  color: #cceee5;
}

.article-section ul {
  padding-left: 20px;
  color: #cceee5;
}

.article-section li + li {
  margin-top: 8px;
}

.aside {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.fact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row span {
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
  overflow-wrap: normal;
}

.data-table th,
.data-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--reef-2);
  background: rgba(60, 230, 191, 0.08);
}

.data-table td {
  color: #d5f5ee;
}

.map-status-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.map-status-card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(60, 230, 191, 0.1), transparent 42%),
    rgba(13, 29, 25, 0.84);
  overflow-wrap: anywhere;
}

.map-status-card span {
  display: block;
  color: var(--reef-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.map-status-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
  line-height: 1.08;
}

.map-status-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.map-status-card.status-critical {
  border-color: rgba(240, 109, 95, 0.42);
  background:
    linear-gradient(145deg, rgba(240, 109, 95, 0.15), transparent 42%),
    rgba(13, 29, 25, 0.84);
}

.map-status-card.status-watch {
  border-color: rgba(242, 184, 75, 0.42);
  background:
    linear-gradient(145deg, rgba(242, 184, 75, 0.14), transparent 42%),
    rgba(13, 29, 25, 0.84);
}

.map-data-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 17, 14, 0.66);
  min-width: 0;
}

.map-preview {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(60, 230, 191, 0.16), transparent 28%),
    radial-gradient(circle at 74% 68%, rgba(242, 184, 75, 0.14), transparent 24%),
    linear-gradient(rgba(60, 230, 191, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 230, 191, 0.08) 1px, transparent 1px),
    #07120f;
  background-size: auto, auto, 38px 38px, 38px 38px, auto;
}

.map-preview p {
  position: absolute;
  inset: auto 18px 18px;
  margin: 0;
  color: var(--muted);
}

.map-preview-grid {
  position: absolute;
  inset: 18px;
}

.map-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--reef);
  box-shadow: 0 0 0 5px rgba(60, 230, 191, 0.14);
}

.source-registry {
  display: grid;
  gap: 10px;
  margin: 10px 0 18px;
}

.registry-row {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 29, 25, 0.72);
  overflow-wrap: anywhere;
}

.registry-row span {
  color: var(--reef-2);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.registry-row small {
  color: var(--muted);
}

.poi-sample {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.poi-sample li strong,
.poi-sample li span {
  display: block;
}

.poi-sample li strong {
  color: var(--mist);
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.footer {
  padding: 44px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  color: var(--reef-2);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--reef);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
  z-index: 99;
}

@media (max-width: 920px) {
  .status-strip,
  .grid.three,
  .grid.two,
  .map-status-board,
  .map-data-panel,
  .image-band,
  .page-hero .wrap,
  .content,
  .footer .wrap {
    grid-template-columns: 1fr;
  }

  .page-hero .image-frame {
    max-height: 320px;
  }

  .aside {
    position: static;
  }
}

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

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner {
    padding-top: 72px;
  }

  h1 {
    font-size: 3rem;
  }

  .section-head {
    display: block;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }
}
