:root {
  --c-emerald: #176f2b;
  --c-emerald-dark: #0b3f1c;
  --c-emerald-bright: #2ecc40;
  --c-turquoise: #0b726b;
  --c-turquoise-bright: #40e0d0;
  --c-earth: #65320d;
  --c-sun: #ffd700;
  --c-orange: #a83f00;
  --c-coral: #b9332a;
  --c-sand: #f5deb3;
  --c-cream: #fffaf0;
  --c-white: #ffffff;
  --c-ink: #13251a;
  --c-muted: #425449;
  --c-line: rgba(19, 37, 26, 0.2);
  --c-shadow: 0 2px 12px rgba(34, 45, 29, 0.12);
  --c-radius-sm: 10px;
  --c-radius-md: 20px;
  --c-radius-lg: 30px;
  --c-wrap: 1280px;
  --c-measure: 72ch;
  --c-section: clamp(4rem, 8vw, 8rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--c-cream);
}

body {
  position: relative;
  margin: 0;
  color: var(--c-ink);
  font-family: "Montserrat", "Avenir Next", Avenir, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(64, 224, 208, 0.18), transparent 25rem),
    linear-gradient(180deg, var(--c-cream) 0, #f3e7c9 45%, var(--c-white) 100%);
}

a {
  color: var(--c-turquoise);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--c-earth);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-turquoise-bright);
  outline-offset: 2px;
}

button,
a {
  transition: color 220ms ease-out, background-color 220ms ease-out, transform 220ms ease-out, border-color 220ms ease-out;
}

p,
li,
dd,
dt,
blockquote,
footer,
a,
button {
  font-size: 1rem;
}

p,
ul,
ol,
dl {
  max-width: var(--c-measure);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--c-emerald-dark);
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.c-skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: var(--c-radius-sm);
  background: var(--c-white);
  color: var(--c-ink);
  transform: translateY(-150%);
}

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

.c-site-marker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding-inline: max(1rem, calc((100% - var(--c-wrap)) / 2));
  color: var(--c-cream);
  background-color: #102d20;
}

.c-site-marker__name,
.c-site-marker__label,
.c-chip,
.c-source-label,
.c-data-label,
.c-footer__eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.c-site-marker__name {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.c-site-marker__name:hover {
  color: var(--c-sun);
}

.c-site-marker__label {
  color: var(--c-sun);
}

.c-hero {
  position: relative;
  min-height: calc(92svh - 72px);
  padding: 4rem 1rem;
  overflow: hidden;
  color: var(--c-white);
  background-color: #0b6c62;
  isolation: isolate;
}

.c-hero::after,
.c-page-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: var(--c-hero-paint);
}

.c-hero {
  --c-hero-paint:
    linear-gradient(118deg, rgba(7, 60, 27, 0.98) 0 46%, rgba(11, 114, 107, 0.88) 46% 100%),
    var(--c-emerald-dark);
}

.c-hero::before,
.c-page-hero::before {
  position: absolute;
  z-index: -1;
  inset: auto -10vw -1px 35%;
  height: 45%;
  content: "";
  opacity: 0.35;
  background:
    repeating-radial-gradient(ellipse at bottom, transparent 0 17px, rgba(255, 215, 0, 0.35) 18px 20px, transparent 21px 38px);
  clip-path: polygon(0 72%, 15% 35%, 32% 70%, 48% 18%, 65% 60%, 83% 10%, 100% 55%, 100% 100%, 0 100%);
}

.c-hero__grid,
.c-page-hero__grid,
.c-split,
.c-zig {
  display: grid;
  gap: 2rem;
  width: min(100%, var(--c-wrap));
  margin: 0 auto;
}

.c-hero__grid {
  min-height: calc(92svh - 72px - 8rem);
  align-items: center;
}

.c-hero h1,
.c-page-hero h1,
.c-hero h2,
.c-page-hero h2 {
  color: var(--c-white);
}

.c-hero__lead,
.c-page-hero__lead {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.c-kicker {
  margin: 0 0 1rem;
  color: var(--c-sun);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.c-hero .c-kicker,
.c-page-hero .c-kicker {
  color: #ffec8a;
}

.c-hero__scenario,
.c-scenario {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 30px 30px 30px 10px;
  background: rgba(4, 28, 18, 0.34);
  box-shadow: var(--c-shadow);
  backdrop-filter: blur(8px);
}

.c-hero__scenario::after,
.c-scenario::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 4.25rem;
  height: 4.25rem;
  content: "";
  border-radius: 100% 0 30px 0;
  background: var(--c-sun);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.c-hero__scenario p:last-child,
.c-scenario p:last-child {
  margin-bottom: 0;
}

.c-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.c-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--c-emerald-bright);
  border-radius: var(--c-radius-sm);
  background: var(--c-emerald-bright);
  color: #173319;
  font-weight: 600;
  text-decoration: none;
}

.c-button:hover {
  border-color: var(--c-sun);
  background: var(--c-sun);
  color: var(--c-ink);
  transform: translateY(-2px);
}

.c-button--warm {
  border-color: var(--c-orange);
  background: var(--c-orange);
  color: var(--c-white);
}

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

.c-button--ghost:hover {
  color: var(--c-ink);
}

.c-page-hero {
  position: relative;
  min-height: calc(74svh - 72px);
  padding: 4rem 1rem;
  overflow: hidden;
  color: var(--c-white);
  background-color: var(--c-turquoise);
  isolation: isolate;
  --c-hero-paint: linear-gradient(135deg, var(--c-emerald-dark), var(--c-turquoise));
}

.c-page-hero__grid {
  min-height: calc(74svh - 72px - 8rem);
  align-items: center;
}

/* background-color is the lightest stop of each gradient, so a contrast check against it is the worst case */
.c-page-hero--earth {
  background-color: #8f3e08;
  --c-hero-paint: linear-gradient(135deg, #542c10, #8f3e08 62%, #165d35);
}

.c-page-hero--water {
  background-color: #0b726b;
  --c-hero-paint: linear-gradient(135deg, #083f3d, #0b726b 58%, #176f2b);
}

.c-page-hero--night {
  background-color: #174f34;
  --c-hero-paint: linear-gradient(135deg, #102d20, #174f34 55%, #61330f);
}

.c-page-hero--coral {
  background-color: #a83f00;
  --c-hero-paint: linear-gradient(135deg, #70281e, #a83f00 55%, #28522d);
}

.c-wrap {
  width: min(100% - 2rem, var(--c-wrap));
  margin-inline: auto;
}

.c-section {
  padding-block: var(--c-section);
}

.c-section--compact {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.c-section--green {
  position: relative;
  color: var(--c-white);
  background: var(--c-emerald-dark);
}

.c-section--green h2,
.c-section--green h3 {
  color: var(--c-white);
}

.c-section--sand {
  position: relative;
  background-color: var(--c-sand);
  isolation: isolate;
}

.c-section--sand::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(106deg, rgba(101, 50, 13, 0.035) 0 1px, transparent 1px 24px);
}

.c-section__head {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.c-section .c-kicker {
  color: var(--c-earth);
}

.c-section--green .c-kicker {
  color: var(--c-sun);
}

.c-section__head p {
  margin: 1rem 0 0;
  color: var(--c-muted);
}

.c-section--green .c-section__head p,
.c-section--green .c-source-note p {
  color: #e0efe4;
}

.c-section--green .c-source-label {
  color: var(--c-sun);
}

.c-section--green .c-source-note {
  border-top-color: rgba(255, 255, 255, 0.3);
}

.c-leaf-rule {
  display: flex;
  width: 7rem;
  height: 1.15rem;
  margin-bottom: 1rem;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(90deg, var(--c-emerald-bright), var(--c-turquoise-bright));
  transform: skewX(-22deg);
}

.c-card-grid,
.c-route-grid,
.c-check-grid,
.c-cost-stack,
.c-faq-list,
.c-resource-list {
  display: grid;
  gap: 1rem;
}

.c-card,
.c-route-card,
.c-check-card,
.c-cost-row,
.c-faq,
.c-resource {
  position: relative;
  padding: 1.35rem;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius-md);
  background: var(--c-white);
  box-shadow: var(--c-shadow);
}

.c-card p:last-child,
.c-route-card p:last-child,
.c-check-card p:last-child,
.c-cost-row p:last-child,
.c-faq p:last-child,
.c-resource p:last-child {
  margin-bottom: 0;
}

.c-route-card {
  min-height: 13rem;
  padding-bottom: 4.5rem;
}

.c-route-card::before {
  position: absolute;
  top: -2.2rem;
  right: -1.4rem;
  width: 6.5rem;
  height: 6.5rem;
  content: "";
  border-radius: 80% 0 70% 30%;
  background: var(--c-sand);
  transform: rotate(24deg);
}

.c-route-card:hover::before {
  background: var(--c-turquoise-bright);
}

.c-route-card__link {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  left: 1.25rem;
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--c-earth);
  font-weight: 600;
}

.c-route-card__link::after {
  margin-left: auto;
  content: "→";
  color: var(--c-orange);
  font-size: 1.45rem;
}

.c-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.c-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-earth);
}

.c-data-map {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--c-line);
  position: relative;
  overflow: hidden;
  border-radius: var(--c-radius-lg);
  background-color: var(--c-white);
  box-shadow: var(--c-shadow);
  isolation: isolate;
}

.c-data-map::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: repeating-radial-gradient(ellipse at 20% 110%, transparent 0 31px, rgba(11, 114, 107, 0.14) 32px 34px, transparent 35px 66px);
}

.c-data-lane {
  display: grid;
  grid-template-columns: minmax(4.5rem, 0.28fr) 1fr;
  gap: 1rem;
  min-height: 7rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius-md) var(--c-radius-md) var(--c-radius-md) var(--c-radius-sm);
  background: var(--c-white);
}

.c-data-lane__mark {
  display: grid;
  width: 4.5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 60% 10% 55% 30%;
  background: var(--c-emerald-bright);
  color: var(--c-ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  transform: rotate(-7deg);
}

.c-data-lane:nth-child(2) .c-data-lane__mark {
  background: var(--c-sun);
  transform: rotate(6deg);
}

.c-data-lane:nth-child(3) .c-data-lane__mark {
  background: #d77060;
  transform: rotate(-3deg);
}

.c-data-lane h3,
.c-data-lane p {
  margin: 0;
}

.c-data-lane p {
  margin-top: 0.35rem;
}

.c-split,
.c-zig {
  align-items: start;
}

.c-prose > :first-child {
  margin-top: 0;
}

.c-prose h2,
.c-prose h3 {
  margin-top: 2.25rem;
}

.c-prose h2 + p,
.c-prose h3 + p {
  margin-top: 0.8rem;
}

.c-callout {
  padding: 1.35rem;
  border-left: 6px solid var(--c-sun);
  border-radius: 0 var(--c-radius-md) var(--c-radius-md) 0;
  background: #fff7c5;
}

.c-callout--risk {
  border-left-color: var(--c-coral);
  background: #fff0ed;
}

.c-callout--water {
  border-left-color: var(--c-turquoise);
  background: #e1faf7;
}

.c-callout p:first-child {
  margin-top: 0;
}

.c-callout p:last-child {
  margin-bottom: 0;
}

.c-question-list,
.c-plain-list,
.c-checklist {
  padding: 0;
  list-style: none;
}

.c-question-list li,
.c-checklist li {
  position: relative;
  min-height: 44px;
  padding: 0.65rem 0 0.65rem 2.1rem;
  border-bottom: 1px solid var(--c-line);
}

.c-question-list li::before,
.c-checklist li::before {
  position: absolute;
  top: 0.75rem;
  left: 0;
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  border-radius: 50%;
  background: var(--c-emerald-bright);
  color: var(--c-ink);
  content: "?";
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.c-checklist li::before {
  content: "✓";
}

.c-faq h2,
.c-faq h3 {
  margin-bottom: 0.75rem;
}

.c-cost-row {
  display: grid;
  gap: 1rem;
}

.c-cost-row__bar {
  height: 0.8rem;
  overflow: hidden;
  border-radius: 99px;
  background: #e4ddca;
}

.c-cost-row__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c-emerald-bright);
}

.c-cost-row:nth-child(2) .c-cost-row__fill {
  width: 72%;
  background: var(--c-turquoise);
}

.c-cost-row:nth-child(3) .c-cost-row__fill {
  width: 45%;
  background: var(--c-orange);
}

.c-cost-row:nth-child(4) .c-cost-row__fill {
  width: 58%;
  background: var(--c-sun);
}

.c-cost-row:first-child .c-cost-row__fill {
  width: 34%;
}

.c-cost-row h3,
.c-cost-row p {
  margin: 0;
}

.c-source-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line);
}

.c-source-label {
  margin: 0;
  color: var(--c-earth);
}

.c-source-note p {
  margin: 0.35rem 0 0;
  color: var(--c-muted);
}

.c-evidence-toggle {
  display: none;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--c-turquoise);
  border-radius: var(--c-radius-sm);
  background: var(--c-white);
  color: var(--c-turquoise);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.js .c-evidence-toggle {
  display: inline-flex;
  align-items: center;
}

.js .c-evidence-panel[hidden] {
  display: none;
}

.c-evidence-panel {
  max-width: var(--c-measure);
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: var(--c-radius-sm);
  background: rgba(245, 222, 179, 0.5);
}

.c-resource {
  display: grid;
  gap: 0.75rem;
}

.c-resource__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: var(--c-radius-sm);
  background: var(--c-emerald-dark);
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
}

.c-resource__link::after {
  margin-left: 1rem;
  content: "↗";
  color: var(--c-sun);
}

.c-resource__link:hover {
  background: var(--c-turquoise);
  color: var(--c-white);
}

.c-step-path {
  display: grid;
  gap: 1rem;
  counter-reset: path;
}

.c-step {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--c-radius-md);
  background: var(--c-white);
  box-shadow: var(--c-shadow);
  counter-increment: path;
}

.c-step::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 55% 10% 55% 20%;
  background: var(--c-sun);
  content: counter(path, upper-alpha);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  transform: rotate(-6deg);
}

.c-step h2,
.c-step h3,
.c-step p {
  margin: 0;
}

.c-step p {
  margin-top: 0.5rem;
}

.c-next {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--c-radius-lg);
  background: var(--c-orange);
  color: var(--c-white);
}

.c-next h2,
.c-next p {
  margin: 0;
  color: var(--c-white);
}

.c-next__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 2px solid var(--c-white);
  border-radius: var(--c-radius-sm);
  color: var(--c-white);
  font-weight: 600;
  text-decoration: none;
}

.c-next__link:hover {
  background: var(--c-sun);
  color: var(--c-ink);
}

.c-footer {
  padding: 3.5rem 1rem 2rem;
  position: relative;
  color: #ecf5ed;
  background-color: #102d20;
  isolation: isolate;
}

.c-footer::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: repeating-radial-gradient(ellipse at 100% 110%, transparent 0 35px, rgba(64, 224, 208, 0.15) 36px 38px, transparent 39px 75px);
}

.c-footer__inner {
  width: min(100%, var(--c-wrap));
  margin: 0 auto;
}

.c-footer__eyebrow {
  margin: 0 0 1rem;
  color: var(--c-sun);
}

.c-footer__links {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  list-style: none;
}

.c-footer__links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--c-white);
}

.c-footer__links a:hover {
  color: var(--c-sun);
}

.c-footer__line {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.c-404 {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem 1rem;
  color: var(--c-white);
  background: var(--c-emerald-dark);
}

.c-404__card {
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--c-radius-lg);
  background: rgba(255, 255, 255, 0.1);
}

.c-404 h1 {
  color: var(--c-white);
}

@media (min-width: 48rem) {
  .c-wrap,
  .c-footer {
    padding-inline: 0.5rem;
  }

  .c-hero__grid,
  .c-page-hero__grid,
  .c-split,
  .c-zig {
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
    gap: clamp(2rem, 6vw, 6rem);
  }

  .c-zig:nth-child(even) > :first-child {
    order: 2;
  }

  .c-route-grid,
  .c-card-grid,
  .c-check-grid,
  .c-faq-list,
  .c-resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-cost-row {
    grid-template-columns: minmax(12rem, 0.35fr) 1fr;
    align-items: center;
  }

  .c-next {
    grid-template-columns: 1fr auto;
  }

  .c-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 70rem) {
  .c-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c-route-card:nth-child(3n) {
    transform: translateY(1.5rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .c-hero__grid > *,
  .c-page-hero__grid > * {
    animation: c-rise 420ms ease-out both;
  }

  .c-hero__grid > :nth-child(2),
  .c-page-hero__grid > :nth-child(2) {
    animation-delay: 80ms;
  }

  @keyframes c-rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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