:root {
  --ink: #1f1a17;
  --sand: #f4efe6;
  --clay: #c94b3d;
  --cactus: #3b6b5a;
  --sunset: #f0a24a;
  --stone: #e2d7c6;
  --sky: #c6d7e5;
  --shadow: rgba(31, 26, 23, 0.12);
  --radius: 18px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% -10%, #ffe6c8 0%, rgba(255, 230, 200, 0) 60%),
    radial-gradient(800px 500px at 90% 10%, #e7f2f2 0%, rgba(231, 242, 242, 0) 55%),
    linear-gradient(180deg, #f9f5ee 0%, #f4efe6 55%, #f1e8d7 100%);
}

a {
  color: var(--clay);
  text-decoration: none;
}

a:hover {
  color: #9f352b;
}

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

header.site-header {
  position: sticky;
  top: 0;
  background: rgba(249, 245, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  z-index: 10;
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand::before {
  content: "";
  width: 38px;
  height: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%20120%20140'><path d='M20%2010h80l10%2020-10%2090-40%2020-40-20-10-90z' fill='%23fff4e6' stroke='%231f1a17' stroke-width='6'/><text x='60' y='60' font-family='Arial,sans-serif' font-size='28' text-anchor='middle' fill='%231f1a17'>ROUTE</text><text x='60' y='95' font-family='Arial,sans-serif' font-size='40' text-anchor='middle' fill='%231f1a17'>66</text></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}

nav.primary {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

nav.primary a {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

nav.primary a.is-active {
  border-color: var(--clay);
  color: var(--clay);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 14px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 18px;
}

.hero-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px var(--shadow);
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  background: var(--stone);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.section {
  margin-top: 48px;
}

.section h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  margin-bottom: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px var(--shadow);
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.card h3 {
  margin-top: 0;
}

.callout {
  background: linear-gradient(135deg, #fff 0%, #fdebd4 100%);
  border: 1px solid rgba(31, 26, 23, 0.08);
  padding: 20px;
  border-radius: var(--radius);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px var(--shadow);
}

thead th,
table th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.95rem;
}

table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(31, 26, 23, 0.08);
  font-size: 0.95rem;
}

table tr:last-child td {
  border-bottom: none;
}

.selection-cell {
  width: 120px;
}

.selection-label {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: rgba(31, 26, 23, 0.72);
}

.selection-label input {
  accent-color: var(--clay);
}

.selection-distance {
  font-weight: 600;
  color: var(--ink);
}

.segment-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.segment-meta {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 26px var(--shadow);
}

.segment-meta p {
  margin: 6px 0;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(31, 26, 23, 0.08);
  background: #fff;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.subtle {
  color: rgba(31, 26, 23, 0.72);
}

footer {
  border-top: 1px solid rgba(31, 26, 23, 0.08);
  padding: 24px;
  text-align: center;
  font-size: 0.9rem;
  background: rgba(249, 245, 238, 0.9);
}

.button {
  display: inline-block;
  background: var(--clay);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(201, 75, 61, 0.2);
}

.button:hover {
  color: white;
  background: #9f352b;
}

.segment-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
}

.segment-nav a {
  background: white;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.12);
  box-shadow: 0 8px 18px var(--shadow);
}

.fade-in {
  animation: fadeIn 0.8s ease-out both;
}

.stagger > * {
  animation: fadeIn 0.9s ease-out both;
}

.stagger > *:nth-child(2) {
  animation-delay: 0.08s;
}

.stagger > *:nth-child(3) {
  animation-delay: 0.16s;
}

.stagger > *:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  nav.primary {
    justify-content: flex-start;
  }

  .segment-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
