:root {
  --paper: #f7f2e8;
  --paper-deep: #efe7d9;
  --ink: #20251f;
  --muted: #686c63;
  --green: #2f5138;
  --green-deep: #1d3324;
  --ochre: #b47a32;
  --line: #d5ccbd;
  --white: #fffdf8;
  --map-surface: #f2ebdd;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--green-deep);
  border: 2px solid var(--green-deep);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.progress-track {
  height: 3px;
  background: var(--paper-deep);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ochre);
}

.header-inner {
  width: min(100% - 40px, 1240px);
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--green-deep);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--white);
  background: var(--green);
  font-size: 15px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  position: relative;
  padding: 20px 0 18px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 13px;
  left: 0;
  height: 2px;
  background: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--green-deep);
}

.site-nav a[aria-current="true"]::after {
  background: var(--ochre);
}

.hero {
  position: relative;
  height: clamp(520px, 78svh, 760px);
  overflow: hidden;
  background: var(--green-deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 58%;
}

.hero-shade {
  background: rgba(17, 25, 18, 0.48);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1240px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 58px) 0 clamp(26px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  color: var(--white);
}

.eyebrow,
.kicker,
.day-date,
.aside-label {
  margin: 0;
  color: var(--ochre);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c887;
}

.hero h1,
.section-heading h2,
.day-heading h2,
.principle h3,
.route-stop h3,
.place-copy h3,
.stay-list h3,
.driving-notes h3,
.time-row h3,
.stop-item strong,
.stay-note strong {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  letter-spacing: 0;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(46px, 8vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-route {
  max-width: 920px;
  margin: 0;
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 650;
  line-height: 1.5;
}

.hero-lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-rule {
  max-width: 700px;
  margin: 14px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--ochre);
  color: rgba(255, 253, 248, 0.92);
  font-size: 15px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 26px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 14px;
}

.hero-meta span {
  position: relative;
}

.hero-meta span + span::before {
  content: "/";
  position: absolute;
  left: -16px;
  color: rgba(255, 253, 248, 0.45);
}

.hero-meta strong {
  color: var(--white);
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 253, 248, 0.72);
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--white);
  color: var(--green-deep);
}

.section {
  padding: clamp(74px, 9vw, 132px) 20px;
}

.overview,
.places,
.stays {
  background: var(--paper);
}

.route-section {
  background: var(--paper-deep);
}

.section-heading,
.principle-grid,
.route-timeline,
.route-footnote,
.place-grid,
.stay-list,
.driving-notes {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(38px, 6vw, 72px);
}

.section-heading-wide {
  max-width: 1000px;
}

.section-heading h2 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 4.8vw, 54px);
  font-weight: 750;
  line-height: 1.18;
  text-wrap: balance;
}

.section-heading p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  min-width: 0;
  padding: 34px 34px 38px 0;
}

.principle + .principle {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.principle-number {
  display: block;
  margin-bottom: 22px;
  color: var(--ochre);
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  font-weight: 700;
}

.principle h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.25;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.route-timeline {
  position: relative;
  max-width: 940px;
  padding: 0;
  list-style: none;
}

.route-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 52px;
  left: 83px;
  width: 2px;
  background: var(--line);
}

.route-stop {
  display: grid;
  grid-template-columns: 62px 42px minmax(0, 1fr);
  align-items: start;
  gap: 0;
  padding-bottom: 34px;
}

.route-stop time {
  padding-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.route-dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 14px;
  height: 14px;
  margin: 6px auto 0;
  border: 3px solid var(--paper-deep);
  background: var(--green);
  outline: 1px solid var(--green);
}

.route-stop h3 {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.3;
}

.route-stop p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.route-stop-featured .route-dot {
  background: var(--ochre);
  outline-color: var(--ochre);
}

.route-stop-featured h3 {
  color: var(--green-deep);
}

.route-footnote {
  max-width: 940px;
  margin-top: -8px;
  padding-left: 104px;
  color: var(--muted);
  font-size: 13px;
}

/* Route view switch */
.route-view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: min(100%, var(--max-width));
  margin: 0 auto 30px;
}

.route-view-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--paper);
}

.route-view-button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.route-view-button + .route-view-button {
  border-left: 1px solid var(--line);
}

.route-view-button:hover {
  background: var(--white);
  color: var(--green-deep);
}

.route-view-button[aria-selected="true"] {
  background: var(--green);
  color: var(--white);
}

.route-view-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.route-view[hidden] {
  display: none;
}

/* Route map */
.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  width: min(100%, var(--max-width));
  margin: 0 auto 24px;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-chip {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.map-chip:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.map-chip[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-mark {
  flex: 0 0 auto;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-mark-end {
  background: var(--green-deep);
}

.legend-mark-stop {
  background: var(--green);
}

.legend-mark-road {
  background: var(--ochre);
  box-shadow: 0 0 0 2px rgba(180, 122, 50, 0.35);
}

.legend-mark-optional {
  border: 2px dashed var(--ochre);
}

.legend-mark-stay {
  border-radius: 0;
  background: var(--green-deep);
}

.legend-mark-supply {
  width: 9px;
  height: 9px;
  background: #9a958a;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(26px, 3vw, 44px);
  align-items: start;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.map-detail {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.map-figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--map-surface);
}

.map-figure svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 980;
  max-height: min(86vh, 840px);
  touch-action: manipulation;
}

.map-figure figcaption {
  padding: 10px 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.map-detail {
  padding-top: 16px;
  border-top: 3px solid var(--ochre);
}

.map-detail-kicker {
  margin: 0;
  color: var(--ochre);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.map-detail-title {
  margin: 8px 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.map-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.map-tag {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.map-detail-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.map-detail-stay {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 650;
}

.map-canvas-bg {
  fill: var(--map-surface);
}

.map-graticule line {
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.55;
}

.map-guide-line {
  stroke: var(--muted);
  stroke-width: 2;
}

.map-guide-text {
  fill: var(--muted);
  font-size: 20px;
}

.map-guide-arrow {
  fill: var(--muted);
}

.map-route {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: opacity 200ms ease, stroke-width 200ms ease;
}

.map-route-featured {
  stroke: var(--ochre);
}

.map-route.is-dim {
  opacity: 0.16;
}

.map-route.is-active {
  opacity: 1;
  stroke-width: 4.6;
}

.map-node {
  cursor: pointer;
}

.map-node:focus-visible {
  outline: none;
}

.map-node.is-dim {
  opacity: 0.3;
}

.map-hit {
  fill: transparent;
}

.map-marker {
  transition: transform 160ms ease;
}

.map-node:hover .map-marker,
.map-node.is-selected .map-marker {
  transform: scale(1.16);
}

.map-marker-shape {
  stroke: var(--map-surface);
  stroke-width: 3;
}

.map-marker-end {
  fill: var(--green-deep);
}

.map-marker-stop {
  fill: var(--green);
}

.map-marker-road {
  fill: var(--ochre);
}

.map-marker-stay {
  fill: var(--green-deep);
}

.map-marker-supply {
  fill: #9a958a;
  stroke-width: 2;
}

.map-marker-optional {
  fill: var(--map-surface);
  stroke: var(--ochre);
  stroke-dasharray: 5 3.4;
}

.map-marker-core {
  fill: var(--white);
}

.map-marker-ring {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 2.2;
  opacity: 0.6;
}

.map-focus {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 2.4;
  opacity: 0;
  transition: opacity 160ms ease;
}

.map-node:hover .map-focus {
  opacity: 0.7;
}

.map-node:focus-visible .map-focus,
.map-node.is-selected .map-focus {
  opacity: 1;
  stroke-width: 3;
}

.map-label {
  fill: var(--ink);
  font-size: 24px;
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--map-surface);
  stroke-width: 7px;
  stroke-linejoin: round;
  pointer-events: none;
}

.map-label-minor {
  fill: var(--muted);
  font-size: 21px;
  font-weight: 550;
}

.days {
  border-top: 1px solid var(--line);
}

.day {
  padding: clamp(62px, 8vw, 112px) 20px;
  border-bottom: 1px solid var(--line);
}

.day:nth-child(even) {
  background: var(--paper-deep);
}

.day-wrap {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.day-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.day-number {
  color: var(--ochre);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 700;
  line-height: 0.9;
}

.day-heading h2 {
  max-width: 920px;
  margin: 8px 0 10px;
  font-size: clamp(28px, 4.4vw, 50px);
  font-weight: 750;
  line-height: 1.18;
  text-wrap: balance;
}

.day-distance {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.day-media {
  margin: 46px 0 clamp(48px, 7vw, 84px);
  overflow: hidden;
  background: #d9d2c6;
}

.day-media img {
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
}

.day-media-portrait img {
  aspect-ratio: 16 / 10;
  object-position: center 35%;
}

.day-media figcaption {
  margin: 0;
  padding: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.7fr);
  gap: clamp(42px, 8vw, 108px);
  align-items: start;
}

.lead {
  max-width: 760px;
  margin: 0 0 38px;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.62;
}

.day-timeline {
  position: relative;
  padding-left: 0;
}

.time-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 28px;
}

.time-row time {
  padding-top: 4px;
  color: var(--ochre);
  font-size: 14px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.time-row > div {
  padding: 0 0 0 22px;
  border-left: 1px solid var(--line);
}

.time-row h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.32;
}

.time-row p {
  margin: 0;
  color: var(--muted);
}

.day-aside {
  position: sticky;
  top: 94px;
  border-top: 4px solid var(--green);
  padding-top: 24px;
}

.pace-panel {
  padding-left: 18px;
  border-left: 3px solid var(--ochre);
}

.pace-panel p {
  margin: 9px 0 0;
  color: var(--muted);
}

.pace-panel strong {
  color: var(--ink);
}

.stop-stack {
  margin-top: 38px;
}

.stop-stack > h3 {
  margin: 0 0 12px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.stop-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.stop-item strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.35;
}

.stop-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 2px 8px 3px;
  border: 1px solid currentColor;
  border-radius: 1px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.tag-road {
  color: var(--green);
  background: rgba(47, 81, 56, 0.06);
}

.tag-short {
  color: #8a591e;
  background: rgba(180, 122, 50, 0.08);
}

.tag-optional {
  color: #6b665d;
  border-style: dashed;
  background: rgba(107, 102, 93, 0.05);
}

.stay-note {
  margin-top: 38px;
  padding: 22px 22px 24px;
  background: var(--green);
  color: var(--white);
}

.stay-note .aside-label {
  color: #efc37e;
}

.stay-note strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.4;
}

.stay-note span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 253, 248, 0.75);
  font-size: 14px;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 48px);
  align-items: start;
}

.place {
  min-width: 0;
}

.place-large,
.place-wide {
  grid-column: 1 / -1;
}

.place figure {
  margin: 0;
  overflow: hidden;
  background: #d9d2c6;
}

.place figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms ease;
}

.place-large figure img {
  aspect-ratio: 16 / 7.8;
}

.place-wide figure img {
  aspect-ratio: 16 / 6.4;
}

.places .place figure.place-media-duo,
.places .place-large figure.place-media-duo,
.places .place-wide figure.place-media-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.places .place figure.place-media-duo img,
.places .place-large figure.place-media-duo img,
.places .place-wide figure.place-media-duo img {
  aspect-ratio: 1 / 1;
}

.places .place-large figure.place-media-duo img,
.places .place-wide figure.place-media-duo img {
  aspect-ratio: 3 / 2;
}

.places .place figure.place-media-duo.place-media-tall img,
.places .place-large figure.place-media-duo.place-media-tall img,
.places .place-wide figure.place-media-duo.place-media-tall img {
  aspect-ratio: 3 / 4;
}

.place:hover figure img {
  transform: scale(1.015);
}

.place-copy {
  max-width: 720px;
  padding-top: 20px;
}

.place-copy h3 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.place-copy p {
  margin: 0;
  color: var(--muted);
}

.stay-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.stay-list li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.stay-list time {
  color: var(--ochre);
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.stay-list h3 {
  margin: 0;
  font-size: clamp(21px, 2.7vw, 29px);
  line-height: 1.3;
}

.stay-list p {
  margin: 5px 0 0;
  color: var(--muted);
}

.driving-notes {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(28px, 6vw, 82px);
  margin-top: clamp(48px, 7vw, 82px);
  padding-top: 30px;
  border-top: 4px solid var(--green);
}

.driving-notes h3 {
  margin: 0;
  font-size: 26px;
}

.driving-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.driving-notes li {
  position: relative;
  padding: 0 0 14px 20px;
  color: var(--muted);
}

.driving-notes li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--ochre);
}

.site-footer {
  background: var(--green-deep);
  color: var(--white);
}

.footer-inner {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 58px 0 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 48px;
  align-items: start;
}

.footer-title {
  margin: 0 0 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 26px;
  font-weight: 700;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 253, 248, 0.7);
}

.credits summary {
  cursor: pointer;
  color: #efc37e;
  font-weight: 700;
}

.credits ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.credits li {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  color: rgba(255, 253, 248, 0.68);
  font-size: 13px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    padding: 26px 0 30px;
    border-left: 0;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
  }

  .principle-number {
    margin-bottom: 12px;
  }

  .day-layout {
    grid-template-columns: 1fr;
  }

  .day-aside {
    position: static;
  }

  .place-grid {
    grid-template-columns: 1fr;
  }

  .place,
  .place-large,
  .place-wide {
    grid-column: 1;
  }

  .place-large figure img,
  .place-wide figure img {
    aspect-ratio: 16 / 9;
  }

  .driving-notes {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    width: min(100% - 28px, 1240px);
    min-height: 58px;
    gap: 16px;
  }

  .wordmark {
    font-size: 16px;
  }

  .wordmark-mark {
    width: 27px;
    height: 27px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    padding: 17px 0 15px;
    font-size: 13px;
  }

  .site-nav a::after {
    bottom: 10px;
  }

  .hero {
    height: clamp(540px, 79svh, 680px);
  }

  .hero-content {
    width: min(100% - 36px, 1240px);
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(44px, 16vw, 66px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-meta {
    gap: 8px 18px;
    margin-top: 20px;
  }

  .hero-meta span + span::before {
    left: -11px;
  }

  .button {
    margin-top: 18px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .route-timeline::before {
    left: 58px;
    bottom: 54px;
  }

  .route-stop {
    grid-template-columns: 42px 32px minmax(0, 1fr);
  }

  .route-dot {
    width: 12px;
    height: 12px;
  }

  .route-stop h3 {
    font-size: 19px;
  }

  .route-footnote {
    padding-left: 74px;
  }

  .day {
    padding-right: 18px;
    padding-left: 18px;
  }

  .day-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
  }

  .day-number {
    font-size: 40px;
  }

  .day-heading h2 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .day-media {
    margin-top: 32px;
    margin-bottom: 42px;
  }

  .day-media img,
  .day-media-portrait img {
    aspect-ratio: 4 / 3;
  }

  .day-media-portrait img {
    object-position: center 32%;
  }

  .time-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .time-row > div {
    padding-left: 16px;
  }

  .stay-list li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
  }

  .place figure img,
  .place-large figure img,
  .place-wide figure img {
    aspect-ratio: 4 / 3;
  }

  .places .place-large figure.place-media-duo,
  .places .place-wide figure.place-media-duo {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    width: min(100% - 36px, 1180px);
    padding-top: 48px;
    padding-bottom: 52px;
  }
}

@media (max-width: 1080px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .map-figure {
    order: -1;
  }

  .map-figure svg {
    max-height: 70vh;
  }

  .map-detail {
    order: 1;
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (min-width: 681px) and (max-width: 1080px) {
  .map-figure {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .map-figure svg {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .route-view-bar {
    margin-bottom: 22px;
  }

  .route-view-switch {
    width: 100%;
  }

  .route-view-button {
    flex: 1 1 0;
    padding: 0 12px;
  }

  .route-view-hint {
    font-size: 12px;
  }

  .map-toolbar {
    margin-bottom: 20px;
  }

  .map-filters {
    gap: 6px;
  }

  .map-chip {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .map-legend {
    gap: 6px 14px;
    font-size: 12px;
  }

  .map-figure svg {
    max-height: 88vh;
  }

  .map-label {
    font-size: 27px;
    stroke-width: 8px;
  }

  .map-label-minor {
    display: none;
  }

  .map-node.is-selected .map-label-minor {
    display: block;
  }

  .map-guide-text {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
