:root {
  --color-primary: #1f4d3a;
  --color-accent: #5e8b7e;
  --color-bg: #f8f9f7;
  --color-surface: #f1f3f0;
  --color-text: #111111;
  --color-text-secondary: #5a5a5a;
  --container-max: 1100px;
  --content-max: 800px;
  --radius: 16px;
  --space-section: 120px;
  --space-stack: 32px;
  --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 64px, var(--container-max));
  margin-inline: auto;
}

.text-container {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.section {
  padding: var(--space-section) 0;
}

.section-light {
  background: var(--color-surface);
}

.stack > * + * {
  margin-top: var(--space-stack);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 247, 0.95);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list a {
  text-decoration: none;
  font-size: 16px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.nav-list a[aria-current="page"],
.nav-list a:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-backdrop {
  display: none;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page-title {
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(34px, 5vw, 42px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subheading {
  font-size: clamp(20px, 3.2vw, 22px);
  color: var(--color-text-secondary);
  max-width: 36ch;
}

.meta {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: #173a2c;
  border-color: #173a2c;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 19, 16, 0.68) 0%,
    rgba(12, 19, 16, 0.42) 42%,
    rgba(12, 19, 16, 0.2) 62%,
    rgba(12, 19, 16, 0.08) 100%
  );
  z-index: -1;
}

.hero-content {
  color: #ffffff;
  padding: 100px 0;
}

.hero-content .subheading {
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.85);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
}

.story-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.story-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.route-center {
  text-align: center;
}

.distance-display {
  font-size: clamp(62px, 11vw, 130px);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.route-path {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(31, 77, 58, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
}

.center-hero {
  text-align: center;
  padding: 120px 0 40px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-stack);
  align-items: start;
}

.facts-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.facts-card ul,
.clean-list {
  margin: 0;
  padding-left: 24px;
}

.facts-card li,
.clean-list li {
  margin: 12px 0;
}

.center-block {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  text-align: center;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
}

.map-canvas {
  width: 100%;
  height: min(70vh, 720px);
}

.map-frame-large .map-canvas {
  height: min(80vh, 860px);
}

.journey-title {
  text-align: center;
  padding: 120px 0 56px;
}

.journey-progress {
  width: min(100%, var(--content-max));
  margin: 48px auto 0;
}

.journey-value {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.log-list {
  width: min(100%, var(--content-max));
  margin: 48px auto 0;
}

.log-entry {
  padding: 24px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.log-entry:last-child {
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.log-date {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.log-location {
  font-size: 22px;
  font-weight: 600;
}

.grounds-list {
  width: min(100%, var(--container-max));
}

.grounds-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

.grounds-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.grounds-table th,
.grounds-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.grounds-table thead th {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-surface);
}

.grounds-table tfoot td {
  font-weight: 600;
  background: var(--color-surface);
}

.gallery-shell {
  width: 100%;
  margin: 0;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 560px;
  overflow: hidden;
  background: #111111;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #ffffff;
  padding: 42px 36px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.58) 75%);
}

.slide-caption p {
  max-width: 50ch;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.slide-nav.prev {
  left: 24px;
}

.slide-nav.next {
  right: 24px;
}

.thumbnail-strip {
  width: min(100% - 64px, var(--container-max));
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.thumbnail {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  opacity: 0.6;
  cursor: pointer;
}

.thumbnail.active {
  opacity: 1;
  outline: 2px solid var(--color-primary);
}

.thumbnail img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.contact-wrap {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-stack);
  align-items: start;
}

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.contact-card a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px 16px;
  font: inherit;
  color: var(--color-text);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  color: var(--color-text-secondary);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-copy {
  margin-top: 28px;
  font-size: 14px;
}

@media (max-width: 920px) {
  .two-column {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 96px 0;
  }

  .container,
  .thumbnail-strip {
    width: min(100% - 40px, var(--container-max));
  }
}

@media (max-width: 820px) {
  .site-header {
    backdrop-filter: none;
    z-index: 1300;
  }

  .menu-toggle {
    display: inline-flex;
    z-index: 1001;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    display: grid;
    place-items: center;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1301;
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 26px;
    text-align: center;
    position: relative;
    z-index: 1302;
  }

  .nav-list a {
    font-size: 28px;
    color: var(--color-text);
  }

  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1200;
  }

  body.menu-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-content {
    padding: 88px 0;
  }

  .button-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .slide-nav {
    width: 42px;
    height: 42px;
  }

  .thumbnail-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container,
  .thumbnail-strip {
    width: min(100% - 28px, var(--container-max));
  }

  .section {
    padding: 80px 0;
  }

  .slideshow {
    min-height: 480px;
  }

  .slide-caption {
    padding: 28px 18px;
  }
}
