:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #292e34;
  --bg-surface-hover: #333940;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-secondary: #10b981;
  --border-subtle: #3d444d;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 24px -4px rgba(20, 184, 166, 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: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1, h2, h3, h4, .brand-logo, .badge-difficulty, .nav-link, .btn-primary, th {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  border-left: 3px solid var(--accent-primary);
  padding-left: 0.85rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-kinetic);
}

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

.link-secondary {
  display: inline-block;
  color: var(--text-primary);
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 3px;
}

.link-secondary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.link-secondary:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #11181c;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: #090d0f;
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

/* Header - strictly static/relative, left-aligned brand */
.site-header {
  position: relative;
  width: 100%;
  background-color: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 20;
}

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

.brand-logo {
  font-size: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: left;
}

.brand-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  border-radius: 0;
}

.nav-desktop {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.menu-toggle {
  display: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 0.4rem 0.75rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Dot Grid Background Pattern */
.dot-grid-bg {
  background-image: radial-gradient(rgba(229, 231, 235, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Hero Section */
.hero-section {
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 1.5rem;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  color: var(--accent-primary);
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero-caption {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

/* Layout & Reading Column */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

.breakout-wide {
  max-width: 1080px;
  margin: 2.5rem auto;
}

.section-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-padding-box {
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  margin: 2rem 0;
}

/* Pull Quotes */
.trail-quote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  font-style: normal;
}

.trail-quote p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.trail-quote cite {
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-style: normal;
}

/* Cards & Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

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

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
  background-color: var(--bg-surface-hover);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #141619;
}

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

.badge-difficulty {
  position: absolute;
  bottom: -12px;
  right: 16px;
  background-color: var(--accent-primary);
  color: #11181c;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 0;
  z-index: 2;
}

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

.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-family: "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* Breakout Landscape Figure */
.breakout-figure {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

.breakout-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.breakout-figure figcaption {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* Tables / Difficulty Comparison Rows */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  text-align: left;
  font-size: 0.92rem;
}

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

th {
  background-color: #202429;
  color: var(--accent-primary);
  font-size: 0.85rem;
}

tr:hover td {
  background-color: var(--bg-surface-hover);
}

/* Seasonal Accordions */
.accordion-group {
  margin: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
}

.accordion-item summary {
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.accordion-item[open] summary::after {
  content: "−";
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Forms */
.form-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus {
  outline: 2px solid var(--accent-primary);
  border-color: var(--accent-primary);
}

.output-box {
  background-color: #141619;
  border: 1px solid var(--accent-primary);
  padding: 1.25rem;
  margin-top: 1.5rem;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--text-primary);
}

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

/* Lists */
.check-list {
  list-style: none;
  margin: 1.25rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.75rem;
  top: 0.2rem;
}

/* Footer */
.site-footer {
  background-color: #15171b;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}

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

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-block;
  }
  .hero-section {
    padding: 2.5rem 1.25rem;
  }
  .section-padding-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 1rem;
  }
  .main-wrapper {
    padding: 2rem 1rem;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
  }
}

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