:root {
  --bg-canvas: #fbf1f0;
  --bg-surface: #fffaf8;
  --bg-surface-hover: #f6e4e2;
  --bg-pale-plum: #f2e1ea;
  --text-primary: #1c1917;
  --text-muted: #57454d;
  --accent-primary: #6b2155;
  --accent-secondary: #9d3b7d;
  --accent-tint: #ead6e3;
  --border-subtle: #dec6d4;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(107, 33, 85, 0.14);
  --glow-accent: 0 0 24px -4px rgba(107, 33, 85, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: Charter, Cambria, Georgia, serif;
  line-height: 1.65;
  font-size: 18px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 1.2rem;
}

.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose {
  max-width: 70ch;
  margin: 0 auto;
}

/* Header - Static/Relative, never fixed or sticky */
.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.35s ease;
}

.site-header.scrolled-blush {
  background-color: var(--bg-canvas);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-variant: small-caps;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.menu-dots-btn {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

/* Buttons */
.btn-plum {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
  border: 1px solid var(--text-primary);
  box-shadow: 4px 4px 0 var(--text-primary);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.btn-plum:hover {
  color: var(--bg-surface);
  background-color: var(--accent-secondary);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--text-primary);
}

.btn-outline {
  display: inline-block;
  background-color: var(--bg-surface);
  color: var(--accent-primary);
  text-decoration: none;
  padding: 0.7rem 1.35rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
  border: 1px solid var(--accent-primary);
  box-shadow: 4px 4px 0 var(--accent-primary);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-outline:hover {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--accent-primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 3rem 0 4.5rem;
  background: linear-gradient(165deg, var(--bg-canvas) 0%, var(--bg-pale-plum) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-visual-wrap {
  position: relative;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 0.75rem;
}

.hero-illustration {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background-color: var(--accent-tint);
}

.visual-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  margin-bottom: 0;
  font-style: italic;
}

.floating-facts-panel {
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevation);
  position: relative;
}

.floating-facts-panel h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.fact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.fact-list li {
  font-size: 0.92rem;
  border-left: 3px solid var(--accent-primary);
  padding-left: 0.75rem;
}

.fact-source {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Section Dividers (Clipped Diagonal Edges outside text) */
.edge-divider-down {
  height: 44px;
  background-color: var(--bg-pale-plum);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.edge-divider-up {
  height: 44px;
  background-color: var(--bg-pale-plum);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* Progressive Vertical Trail Layout */
.trail-stream {
  position: relative;
  padding: 3rem 0;
}

.trail-stream::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 560px);
  width: 2px;
  background-color: var(--accent-primary);
  opacity: 0.45;
}

.trail-node-section {
  position: relative;
  padding: 3rem 0 3rem 3.75rem;
}

.trail-node-section.alt-bg {
  background-color: var(--bg-pale-plum);
  padding-left: 3.75rem;
  padding-right: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--border-subtle);
}

.route-marker {
  position: absolute;
  left: 0;
  top: 3rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 3px solid var(--bg-canvas);
  box-shadow: 0 0 0 2px var(--accent-primary);
}

.route-marker.tint-2 { background-color: #7c2863; }
.route-marker.tint-3 { background-color: #8b3170; }
.route-marker.tint-4 { background-color: #5a1b47; }
.route-marker.tint-5 { background-color: #49153a; }
.route-marker.tint-6 { background-color: #6b2155; }

/* Card Grid & Overlapping Round Category Badges */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.75rem;
}

.story-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic);
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation);
}

.card-illust-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--accent-tint);
  border-bottom: 1px solid var(--border-subtle);
}

.card-illust-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-badge {
  position: absolute;
  bottom: -14px;
  left: 1.25rem;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid var(--bg-surface);
}

.card-body {
  padding: 1.65rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

/* Split Panels for Wildlife vs Access Logistics */
.dual-guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.guidance-box {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  padding: 1.5rem;
}

.guidance-box.ethics-focus {
  border-top: 5px solid var(--accent-primary);
}

.guidance-box.logistics-focus {
  border-top: 5px solid var(--text-primary);
}

.checklist {
  list-style: none;
  margin-top: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* Contributors & Round Avatars */
.contributor-strip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.avatar-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--accent-tint);
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* FAQ Items */
.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
}

.faq-item h3 {
  font-size: 1.15rem;
  color: var(--accent-primary);
  margin-bottom: 0.45rem;
}

/* Forms */
.field-group {
  margin-bottom: 1.2rem;
}

.field-group label {
  display: block;
  font-variant: small-caps;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--accent-primary);
  background: var(--bg-surface);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
}

.note-preview-box {
  background: var(--bg-pale-plum);
  border: 1px solid var(--accent-primary);
  padding: 1.25rem;
  margin-top: 1.5rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background-color: var(--bg-pale-plum);
  border-top: 2px solid var(--accent-primary);
  padding: 3.5rem 0 2.5rem;
  margin-top: 4rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1240px) {
  .trail-stream::before {
    left: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .menu-dots-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--accent-primary);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-elevation);
  }
  .main-nav.nav-open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .trail-stream::before {
    left: 21px;
  }
  .trail-node-section,
  .trail-node-section.alt-bg {
    padding-left: 3.2rem;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 16px;
  }
  .trail-node-section,
  .trail-node-section.alt-bg {
    padding-left: 2.75rem;
  }
  .route-marker {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }
}

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