/* ============================================================
   Site chrome — shared header + footer styling.
   Single source of truth across every page (home, baseball,
   travels, turkeys, parks). Edit here, not per-page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Kreon:wght@400;700&family=Roboto+Condensed:wght@300;400;700&display=swap');

/* --- Header --------------------------------------------- */
.site-header {
  background: #1a2e3b;
  color: #fff;
  padding: 0.55rem 1rem 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2000;            /* above Leaflet panes/controls (~1000) */
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.site-title {
  font-family: 'Kreon', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 0.15rem;
}

.site-tagline {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.85rem;
  color: #a8bfc9;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
}

/* Home link — explicit states so it wins over any base a:link rules */
.home-link:link,
.home-link:visited {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.35);
  transition: color 0.2s, border-color 0.2s;
}

.home-link:hover,
.home-link:focus {
  color: #E8A020;
  border-bottom-color: #E8A020;
  text-decoration: none;
}

/* --- Header nav (section links) ------------------------- */
.site-header [role="navigation"] { margin: 0; }

.site-header nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav ul li {
  display: block;
  font-size: 1rem;
  padding: 0;
  margin: 0;
}

.site-header nav ul li a:link,
.site-header nav ul li a:visited {
  display: block;
  padding: 0.65rem 1.25rem;
  font-family: 'Kreon', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-header nav ul li a:hover,
.site-header nav ul li a:focus {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.3);
  text-decoration: none;
}

/* Scrollspy: highlight the nav link for the section currently in view */
.site-header nav ul li a.active {
  color: #E8A020 !important;
  border-bottom-color: #E8A020 !important;
}

/* Mobile: keep the nav on a single line (scroll if truly too narrow) */
@media (max-width: 640px) {
  .site-header nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header nav ul li a:link,
  .site-header nav ul li a:visited {
    padding: 0.5rem 0.55rem;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
  }
}

/* Offset jump-link targets so they clear the sticky header */
.section-heading[id],
.contents a[name] { scroll-margin-top: 6rem; }

/* --- Footer --------------------------------------------- */
footer {
  background: #1a2e3b;
  color: #a8bfc9;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
}

footer a:link,
footer a:visited {
  color: #E8A020;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  color: #E8A020;
  text-decoration: underline;
}
