*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  color: #292524;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; }
.stanagego { font-family: 'Red Hat Text', sans-serif; font-style: italic; font-weight: 400; }
.stanagego strong { font-weight: 700; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #e7e5e4;
}
.nav-inner {
  max-width: 64rem; margin: 0 auto; padding: 0 1.5rem;
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  font-size: 1.125rem; color: #3d6b4a;
  letter-spacing: 0.04em;
}
.nav-logo:hover { color: #2f5438; }
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2rem; height: 2rem; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-hamburger span { display: block; height: 2px; background: #57534e; border-radius: 2px; }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: 0.875rem; }
.nav-links a { color: #78716c; }
.nav-links a:hover { color: #1c1917; }
.nav-links a.active { color: #292524; font-weight: 600; }
.nav-links a.nav-nereus {
  color: #1e3a27; font-weight: 600;
  padding: 0.25rem 0.75rem; border-radius: 0.25rem; background: #f0f7f2;
}
.nav-links a.nav-nereus:hover { background: #d8eede; color: #122318; }
.nav-links a.nav-nereus.active { background: #d8eede; }
.nav-drawer {
  display: none; flex-direction: column;
  border-top: 1px solid #e7e5e4; background: #fff;
  padding: 0.5rem 1.5rem 1rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: #78716c; font-size: 0.9375rem;
  padding: 0.75rem 0; border-bottom: 1px solid #f5f5f4;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover, .nav-drawer a.active { color: #1c1917; font-weight: 600; }
.nav-drawer a.nav-nereus { color: #1e3a27; font-weight: 600; }

/* Layout */
.container { max-width: 64rem; margin: 0 auto; }
.section       { padding: 5rem 1.5rem; }
.section-alt   { padding: 5rem 1.5rem; background: #f0f7f2; }
.section-dark  { padding: 4rem 1.5rem; background: #1c1917; }

.section-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.875rem;
  color: #3d6b4a; margin-bottom: 0.75rem;
}
h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-subtitle   { color: #78716c; margin-bottom: 3rem; }
.section-subtitle-sm { color: #78716c; margin-bottom: 2.5rem; }

/* Page header (inner pages) */
.page-header { background: #122318; padding: 4rem 1.5rem; }
.page-header-inner { max-width: 64rem; margin: 0 auto; }
.page-header-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.875rem;
  color: #d8eede; opacity: 0.5; margin-bottom: 0.75rem;
}
.page-header h1 {
  font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1.2;
}

/* About */
.about-grid { display: grid; gap: 4rem; align-items: start; }
.about-prose { color: #57534e; line-height: 1.625; }
.about-prose p + p { margin-top: 1rem; }
.fact-row {
  padding: 1rem 0; display: flex; justify-content: space-between;
  align-items: baseline; border-bottom: 1px solid #f5f5f4; font-size: 0.875rem;
}
.fact-row:first-child { border-top: 1px solid #f5f5f4; }
.fact-label { color: #78716c; }
.fact-value { font-weight: 500; color: #292524; }

/* Routes */
.route-row {
  padding: 2rem 0; display: grid; gap: 1rem;
  border-bottom: 1px solid #e7e5e4;
}
.route-row:first-child { border-top: 1px solid #e7e5e4; }
.route-name-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.route-name { font-weight: 600; color: #1c1917; }
.grade-Easy     { font-size: 0.75rem; font-weight: 500; color: #16a34a; }
.grade-Moderate { font-size: 0.75rem; font-weight: 500; color: #d97706; }
.grade-Hard     { font-size: 0.75rem; font-weight: 500; color: #dc2626; }
.route-desc { font-size: 0.875rem; color: #57534e; line-height: 1.625; }
.route-meta { font-size: 0.875rem; color: #78716c; }
.route-meta div + div { margin-top: 0.25rem; }
.route-start {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  color: #a8a29e; margin-top: 0.5rem;
}

/* Wildlife */
.wildlife-grid { display: grid; gap: 3rem; }
.wildlife-heading {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #a8a29e; margin-bottom: 1.5rem;
}
.species-list { display: flex; flex-direction: column; gap: 1rem; }
.species-item { display: flex; align-items: flex-start; gap: 1rem; }
.dot {
  width: 0.375rem; height: 0.375rem; border-radius: 50%;
  background: #4a7c59; margin-top: 0.4rem; flex-shrink: 0;
}
.species-name { font-weight: 500; color: #292524; font-size: 0.875rem; }
.species-latin { font-size: 0.75rem; color: #a8a29e; font-style: italic; }
.species-note { font-size: 0.75rem; color: #78716c; margin-top: 0.125rem; }
.conservation { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e7e5e4; }
.conservation h4 {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #a8a29e; margin-bottom: 0.75rem;
}
.conservation p { font-size: 0.875rem; color: #57534e; line-height: 1.625; max-width: 42rem; }

/* Nereus */
.section-nereus { background: #0f1e14; padding: 6rem 1.5rem; }
.nereus-wordmark {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #4a7c59; margin-bottom: 1.5rem;
}
.nereus-header { margin-bottom: 4rem; }
.nereus-header h2 {
  font-size: 3rem; font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 1.25rem;
}
.nereus-header p {
  font-size: 1.125rem; color: #d8eede; opacity: 0.7; max-width: 38rem; line-height: 1.7;
}
.nereus-features {
  display: grid; gap: 1px; background: #1e3a27;
  border: 1px solid #1e3a27; border-radius: 0.5rem;
  overflow: hidden; margin-bottom: 5rem;
}
.nereus-feature { background: #122318; padding: 2rem; }
.nereus-feature-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: #4a7c59; margin-bottom: 1rem;
}
.nereus-feature-title { font-size: 1.125rem; font-weight: 600; color: #fff; margin-bottom: 0.625rem; }
.nereus-feature-body { font-size: 0.875rem; color: #d8eede; opacity: 0.6; line-height: 1.7; }
.nereus-steps-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #4a7c59; margin-bottom: 2rem;
}
.step-row {
  padding: 1.75rem 0; display: flex; gap: 2rem; align-items: flex-start;
  border-bottom: 1px solid #1e3a27;
}
.step-row:first-child { border-top: 1px solid #1e3a27; }
.step-num {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.875rem;
  color: #2f5438; width: 1.5rem; flex-shrink: 0; padding-top: 0.125rem;
}
.step-title { font-weight: 600; color: #fff; margin-bottom: 0.25rem; }
.step-body { font-size: 0.875rem; color: #d8eede; opacity: 0.55; line-height: 1.625; }
.nereus-cta {
  margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid #1e3a27;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.nereus-cta-text { color: #d8eede; opacity: 0.5; font-size: 0.875rem; }
.nereus-cta-link {
  font-size: 0.875rem; font-weight: 600; color: #fff;
  border-bottom: 1px solid #4a7c59; padding-bottom: 0.125rem;
}
.nereus-cta-link:hover { border-color: #fff; }

/* Home teasers */
.teaser-grid { display: grid; gap: 1px; background: #e7e5e4; border: 1px solid #e7e5e4; border-radius: 0.5rem; overflow: hidden; }
.teaser-card { background: #fff; padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.teaser-card:hover { background: #fafaf9; }
.teaser-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: #78716c; }
.teaser-title { font-size: 1.25rem; font-weight: 700; color: #1c1917; }
.teaser-body { font-size: 0.875rem; color: #78716c; line-height: 1.6; flex: 1; }
.teaser-link { font-size: 0.875rem; font-weight: 600; color: #3d6b4a; margin-top: 0.5rem; }
.teaser-card-nereus { background: #0f1e14; }
.teaser-card-nereus:hover { background: #122318; }
.teaser-card-nereus .teaser-label { color: #4a7c59; }
.teaser-card-nereus .teaser-title { color: #fff; }
.teaser-card-nereus .teaser-body { color: #d8eede; opacity: 0.6; }
.teaser-card-nereus .teaser-link { color: #4a7c59; }

/* Emergency */
.emergency-grid { max-width: 64rem; margin: 0 auto; display: grid; gap: 2.5rem; }
.emergency-label {
  font-size: 0.75rem; font-weight: 600; color: #78716c;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.emergency-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.emergency-body { font-size: 0.875rem; color: #a8a29e; line-height: 1.625; }

/* Footer */
footer { background: #1c1917; border-top: 1px solid #292524; padding: 2rem 1.5rem; }
.footer-inner {
  max-width: 64rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; font-size: 0.875rem;
}
.footer-logo { color: #4a7c59; font-weight: 500; }
.footer-tagline { color: #57534e; }
.footer-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: #57534e; }
.footer-foundation { max-width: 64rem; margin: 0.75rem auto 0; font-size: 0.75rem; color: #44403c; }

/* Responsive */
@media (min-width: 640px) {
  .nav-hamburger { display: none; }
  .nav-links { display: flex; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .route-row { grid-template-columns: 2fr 1fr; }
  .wildlife-grid { grid-template-columns: 1fr 1fr; }
  .emergency-grid { grid-template-columns: repeat(3, 1fr); }
  .nereus-features { grid-template-columns: repeat(3, 1fr); }
  .nereus-header h2 { font-size: 3.75rem; }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
