:root {
  --bg: #f6eddc;
  --bg-soft: #fbf4e8;
  --ink: #1f2630;
  --muted: #5e645f;
  --terracotta: #b65a3c;
  --terracotta-dark: #7d3426;
  --lagoon: #4f7a7c;
  --lagoon-deep: #254f55;
  --gold: #d9b46c;
  --line: rgba(31, 38, 48, 0.11);
  --shadow: 0 22px 50px rgba(61, 34, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 180, 108, 0.34), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79, 122, 124, 0.18), transparent 30%),
    linear-gradient(180deg, #fbf3e6 0%, #f5ead6 54%, #f4eadf 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(182, 90, 60, 0.05), transparent 36%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 24px,
      rgba(255, 255, 255, 0.17) 24px,
      rgba(255, 255, 255, 0.17) 25px
    );
  opacity: 0.75;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 16px 40px;
  position: relative;
}

.hero {
  padding-top: 12px;
}

.hero__intro,
.detail-top,
.detail-copy,
.route-board,
.note-card {
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero__intro {
  border-radius: 28px;
  padding: 22px 20px;
  display: grid;
  gap: 18px;
}

.eyebrow,
.pill,
.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217, 180, 108, 0.22);
  color: var(--terracotta-dark);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
.detail-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 15vw, 5rem);
}

h2 {
  font-size: clamp(2.1rem, 9vw, 3.2rem);
}

.hero__lede,
.hero__meta,
.detail-copy p,
.note-card p,
.map-caption p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: rgba(79, 122, 124, 0.12);
  color: var(--lagoon-deep);
}

.map-stage {
  margin-top: 18px;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 244, 221, 0.82), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79, 122, 124, 0.22), transparent 30%),
    linear-gradient(135deg, #f1dbc1 0%, #ecd0b0 44%, #e5c6a4 100%);
  min-height: clamp(520px, 70vh, 760px);
  border: 1px solid rgba(97, 66, 44, 0.12);
  box-shadow: var(--shadow);
}

.map-stage::before,
.map-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(79, 122, 124, 0.12);
  filter: blur(10px);
}

.map-stage::before {
  width: 220px;
  height: 220px;
  top: -30px;
  right: -40px;
}

.map-stage::after {
  width: 280px;
  height: 280px;
  bottom: -70px;
  left: -50px;
}

.map-preview {
  display: block;
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
}

.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e7dcc6;
}

.map-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.92);
  padding: 18px;
  box-shadow: 0 14px 30px rgba(50, 31, 15, 0.16);
  z-index: 4;
}

.map-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--terracotta), var(--terracotta-dark));
  color: #fff7ef;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(125, 52, 38, 0.28);
}

.route-board {
  margin-top: 18px;
  border-radius: 28px;
  padding: 18px;
}

.route-board__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.route-board__head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.route-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.route-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(247, 239, 226, 0.95));
  border: 1px solid rgba(31, 38, 48, 0.08);
}

.route-card strong {
  font-size: 1.08rem;
}

.route-card__index,
.route-card__meta,
.route-card__arrow {
  color: var(--muted);
  font-size: 0.82rem;
}

.route-card__index {
  color: var(--terracotta-dark);
  font-weight: 800;
}

.note-card {
  margin-top: 18px;
  border-radius: 26px;
  padding: 18px;
}

.detail-page .page-shell {
  padding-top: 14px;
}

.detail-top {
  border-radius: 28px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--terracotta-dark);
  font-weight: 800;
}

.detail-grid {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.detail-figure,
.detail-copy {
  border-radius: 28px;
  overflow: hidden;
}

.detail-figure {
  min-height: 320px;
  background:
    radial-gradient(circle at top left, rgba(217, 180, 108, 0.38), transparent 30%),
    linear-gradient(145deg, rgba(79, 122, 124, 0.84), rgba(36, 70, 76, 0.96));
  position: relative;
  box-shadow: var(--shadow);
}

.detail-figure::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-figure__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.detail-copy {
  padding: 22px 18px;
}

.detail-copy p + p {
  margin-top: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--terracotta), var(--terracotta-dark));
  color: #fff7ef;
  font-weight: 800;
}

.detail-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(18, 25, 30, 0.68);
  color: rgba(255, 247, 239, 0.92);
  font-size: 0.78rem;
  line-height: 1.5;
}

.detail-nav {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.detail-nav a {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 251, 244, 0.84);
  border: 1px solid rgba(31, 38, 48, 0.08);
  box-shadow: 0 12px 26px rgba(68, 39, 20, 0.1);
  font-weight: 700;
}

.detail-copy a {
  color: var(--terracotta-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

@media (min-width: 760px) {
  .page-shell {
    padding: 28px 24px 60px;
  }

  .hero__intro {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

  .map-stage {
    min-height: 82vh;
  }

  .map-preview {
    min-height: 82vh;
  }

  .route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 0.96fr 1.04fr;
    align-items: stretch;
  }

  .detail-copy {
    padding: 26px 24px;
  }

  .detail-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .route-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
