/* ===================================================================
   UNDERGO — design tokens
   Palette pulled from the Flint Hills themselves: turned soil, chert
   (flint) outcrops, limestone, tallgrass, and the wide prairie sky.
=================================================================== */
:root {
  --soil: #241f1b;
  --soil-raised: #322a23;
  --soil-line: #4a3f34;
  --limestone: #e9e2d3;
  --limestone-dim: #b8ae9b;
  --chert: #b04b1f;
  --chert-bright: #d15f2a;
  --tallgrass: #c9a227;
  --sky: #6e8b8c;
  --sky-bright: #8fadae;

  --font-display: "Big Shoulders Display", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --edge: 1px solid var(--soil-line);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--soil);
  color: var(--limestone);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky-bright); text-decoration: none; }
a:hover { color: var(--chert-bright); }

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tallgrass);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* focus visibility for keyboard nav */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sky-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   NAV
=================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 31, 27, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--edge);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--limestone);
}
.brand span { color: var(--chert-bright); }
.site-nav nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav nav a { color: var(--limestone-dim); }
.site-nav nav a:hover { color: var(--chert-bright); }

/* ===================================================================
   HERO — topographic contour lines as the signature motif
=================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  border-bottom: var(--edge);
}
.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--chert-bright);
}
.hero-sub {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--limestone-dim);
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--soil-line);
  color: var(--limestone);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-solid {
  background: var(--chert);
  border-color: var(--chert);
  color: var(--limestone);
}
.btn-solid:hover { background: var(--chert-bright); color: var(--limestone); }
.btn-outline:hover { border-color: var(--sky-bright); color: var(--sky-bright); }

/* elevation readout strip — functional, not decorative: mirrors what
   a GPX file actually reports for a ride */
.hero-stats {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}
.hero-stats div { min-width: 110px; }
.hero-stats .num {
  font-size: 1.6rem;
  color: var(--tallgrass);
}
.hero-stats .label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--limestone-dim);
}

/* ===================================================================
   MISSION — three working parts, not a numbered sequence
=================================================================== */
.mission {
  padding: 90px 0;
  border-bottom: var(--edge);
}
.mission-head {
  max-width: 60ch;
  margin-bottom: 56px;
}
.mission-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-top: 10px;
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--soil-line);
  border: var(--edge);
}
.mission-card {
  background: var(--soil);
  padding: 32px 28px;
}
.mission-card .eyebrow { display: block; margin-bottom: 14px; }
.mission-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.mission-card p {
  color: var(--limestone-dim);
  font-size: 0.95rem;
}
@media (max-width: 820px) {
  .mission-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   VIDEOS
=================================================================== */
.videos-section { padding: 90px 0; border-bottom: var(--edge); }
.videos-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 10px; margin-bottom: 40px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.video-card { border: var(--edge); background: var(--soil-raised); }
.video-frame { position: relative; width: 100%; padding-top: 56.25%; }
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card .video-meta { padding: 16px 18px; }
.video-card .video-meta .eyebrow { margin-bottom: 6px; }
.video-card h3 { font-size: 1.05rem; text-transform: none; }

.channel-cta {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===================================================================
   PHOTOS
=================================================================== */
.photos-section { padding: 90px 0; border-bottom: var(--edge); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.photo-card {
  margin: 0;
  border: var(--edge);
  background: var(--soil-raised);
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--soil-line); /* shows as a placeholder block until a real photo is added */
}
.photo-card figcaption {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--limestone-dim);
}

/* ===================================================================
   ABOUT / FOOTER
=================================================================== */
.about-section {
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}
@media (max-width: 820px) {
  .about-section { grid-template-columns: 1fr; }
}
.about-section h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 20px; }
.about-section p { color: var(--limestone-dim); margin-bottom: 16px; }
.about-facts {
  border: var(--edge);
  padding: 28px;
  background: var(--soil-raised);
}
.about-facts dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tallgrass);
  margin-top: 18px;
}
.about-facts dt:first-child { margin-top: 0; }
.about-facts dd { margin: 6px 0 0; color: var(--limestone); }

footer {
  border-top: var(--edge);
  padding: 32px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--limestone-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--limestone-dim); }
footer a:hover { color: var(--chert-bright); }
