@font-face {
  font-family: Journal Ming;
  src: url("/fonts/journal-tc.woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Instrument Serif;
  src: url("/fonts/instrument-italic.woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f7f1;
  --surface: #fffef9;
  --ink: #283b32;
  --muted: #606d61;
  --rust: #ad432a;
  --line: #d9dcd0;
  --soft: #eaece2;
  --serif: "Journal Ming", "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --width: 1240px;
  --edge: clamp(22px, 5.2vw, 86px);
}
* {
  box-sizing: border-box;
}
html {
  min-width: 0;
  -webkit-text-size-adjust: 100%;
  scroll-padding-block: 18px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #b85029;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg.icon {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.skip {
  position: fixed;
  z-index: 15;
  left: 12px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 5px;
}
.skip:focus {
  top: 8px;
}
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding-inline: max(var(--edge), env(safe-area-inset-left));
}
.mast-inner,
.footer-inner {
  max-width: var(--width);
  margin: auto;
  display: flex;
  align-items: center;
}
.mast-inner {
  min-height: 77px;
  gap: 36px;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand {
  margin-right: auto;
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-text strong {
  font: 700 23px/1.22 var(--serif);
  letter-spacing: 0.09em;
}
.brand-text small {
  font: 700 8px/1.2 var(--sans);
  letter-spacing: 0.23em;
  color: #6a705f;
}
.primary {
  display: flex;
  align-self: stretch;
  gap: 27px;
}
.primary a {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
  white-space: nowrap;
}
.primary a[aria-current="page"] {
  color: var(--rust);
}
.primary a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 21px;
  height: 2px;
  background: var(--rust);
}
.share-button,
.plain-button,
.solid-button,
.gallery-nav button,
.dialog-close,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.share-button,
.plain-button {
  background: transparent;
  border: 1px solid #cbd0c2;
  border-radius: 9px;
  font-weight: 650;
  font-size: 14px;
  min-height: 42px;
  padding: 8px 16px;
}
.share-button:hover,
.plain-button:hover,
.gallery-nav button:not(:disabled):hover {
  background: #e9ecdf;
}
.share-button svg {
  width: 16px;
  height: 16px;
}
.page {
  width: min(calc(100% - var(--edge) * 2), var(--width));
  margin: 27px auto 0;
  flex: 1;
  outline: none;
}
.initial {
  min-height: 50vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(355px, 31vw, 445px);
  background: #455d4c;
  border-radius: 17px;
  color: #fffdf2;
}
.cover-image,
.cover-shader,
.cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cover-image {
  object-fit: cover;
  object-position: 68% 60%;
  z-index: -4;
}
.cover-shader {
  z-index: -3;
  opacity: 0;
  mix-blend-mode: soft-light;
  transition: opacity 1s;
}
.cover-shader.ready {
  opacity: 0.24;
}
.cover-shade {
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(14, 33, 28, 0.88) 0%,
      rgba(20, 37, 31, 0.7) 26%,
      rgba(22, 41, 33, 0.2) 57%,
      rgba(29, 40, 30, 0.01) 80%
    ),
    linear-gradient(0deg, rgba(19, 30, 23, 0.32), transparent 38%);
}
.cover-content {
  position: relative;
  max-width: 76%;
  padding: 38px clamp(30px, 4.5vw, 66px) 39px;
}
.cover-top,
.cover-meta,
.country-label,
.with-icon,
.photo-place,
.day-kicker,
.gallery-nav,
.card-dateline,
.eyebrow,
.back-link {
  display: flex;
  align-items: center;
}
.cover-top {
  gap: 15px;
  margin-bottom: 17px;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f2f0d8;
  color: #394737;
  border-radius: 30px;
  font-weight: 750;
  font-size: 12px;
  padding: 4px 11px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}
.status-tag i,
.day-tab i,
.sync-dot {
  width: 6px;
  height: 6px;
  background: #798758;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.country-label {
  gap: 9px;
  font: 600 11px/1.4 var(--sans);
  letter-spacing: 0.15em;
  color: #f7f5e9;
}
.place-divider {
  opacity: 0.55;
  font-weight: 400;
}
.cover h1 {
  font: 700 clamp(45px, 4.85vw, 76px) / 1.24 var(--serif);
  letter-spacing: 0.045em;
  text-shadow: 0 2px 14px #16291b3d;
}
.cover-english {
  font:
    italic 400 clamp(30px, 3.05vw, 47px) / 1.12 "Instrument Serif",
    Georgia,
    serif;
  color: #f3e6c6;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.cover-meta {
  gap: 15px;
  flex-wrap: wrap;
  margin: 22px 0 22px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.015em;
  line-height: 1.5;
}
.with-icon {
  gap: 8px;
}
.cover-meta svg {
  width: 16px;
  height: 16px;
}
.cover-meta b {
  background: #f1f0db72;
  width: 1px;
  height: 14px;
}
.cover-link,
.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 45px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.cover-link {
  padding: 10px 19px;
  background: #f5f2dd;
  color: #2f3c31;
  box-shadow: 0 1px 6px #19271d26;
}
.cover-link:hover {
  background: white;
}
.cover-link svg {
  width: 18px;
}
.photo-place {
  position: absolute;
  right: 22px;
  bottom: 16px;
  gap: 5px;
  font-size: 12px;
  font-weight: 550;
  text-shadow: 0 1px 6px #000;
  background: #23382d70;
  border: 1px solid #ffffff38;
  border-radius: 20px;
  padding: 3px 10px;
  color: white;
  backdrop-filter: blur(3px);
}
.photo-place svg {
  width: 13px;
  height: 13px;
}
.routes-section,
.other-section {
  margin-top: clamp(28px, 3.1vw, 44px);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.eyebrow {
  font: 700 10px/1.5 var(--mono);
  color: var(--rust);
  letter-spacing: 0.16em;
  gap: 9px;
}
.eyebrow i {
  height: 2px;
  width: 21px;
  background: var(--rust);
  display: inline-block;
}
.section-head h2,
.other-section h2,
.empty-inline h2 {
  font: 700 clamp(27px, 2.5vw, 37px) / 1.35 var(--serif);
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.gallery-nav {
  gap: 8px;
  padding-bottom: 2px;
}
.gallery-nav > span {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-right: 8px;
}
.gallery-nav button,
.dialog-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #cbd0c3;
  background: transparent;
}
.gallery-nav button svg {
  width: 16px;
  height: 16px;
}
.gallery-nav button:disabled {
  opacity: 0.38;
}
.route-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 3px 0 6px;
}
.route-gallery::-webkit-scrollbar,
.day-scroller::-webkit-scrollbar {
  display: none;
}
.route-card {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-width: 0;
  background: var(--surface);
  border: 1px solid #d8dace;
  border-radius: 12px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.route-card:hover {
  border-color: #9da894;
  box-shadow: 0 2px 9px #32433713;
}
.route-card:focus-visible {
  outline-offset: -3px;
}
.route-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2.25;
  background: #d7dfd2;
}
.card-image,
.aside-img,
.other-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-image {
  transition: transform 0.35s ease;
  object-position: center 55%;
}
.route-card:hover .card-image {
  transform: scale(1.035);
}
.day-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  color: #384835;
  background: #f9f8e9f0;
  border-radius: 4px;
  padding: 5px 9px;
  font: 700 10px/1.3 var(--mono);
  letter-spacing: 0.11em;
}
.card-body {
  padding: 15px 18px 17px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-dateline {
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.card-dateline span {
  font: 700 12px/1.3 var(--mono);
  letter-spacing: 0.045em;
  color: var(--rust);
}
.card-dateline i,
.day-kicker i {
  width: 4px;
  height: 4px;
  background: #a7ac97;
  border-radius: 50%;
}
.card-body h3 {
  font: 700 clamp(20px, 1.7vw, 26px) / 1.5 var(--serif);
  letter-spacing: 0.02em;
  margin: 4px 0 8px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}
.card-bottom > span {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}
.card-bottom > span svg {
  width: 15px;
  height: 15px;
}
.card-arrow {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
}
.card-arrow .icon {
  width: 12px;
  height: 12px;
}
.prep-link,
.other-trip {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 15px;
  background: #f0f0e7;
  gap: 12px;
}
.prep-link {
  margin-top: 16px;
  font-size: 14px;
}
.prep-link > .icon,
.other-trip > .icon {
  margin-left: auto;
  width: 17px;
}
.prep-link > span:not(.prep-symbol) {
  color: var(--muted);
}
.prep-symbol {
  display: grid;
  place-items: center;
}
.prep-symbol svg {
  width: 17px;
  height: 17px;
}
.prep-link:hover,
.other-trip:hover {
  border-color: #a6b09d;
  background: #edeee2;
}
.other-trips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 13px;
  margin-top: 14px;
}
.other-trip {
  background: var(--surface);
}
.other-photo {
  width: 80px;
  height: 72px;
  border-radius: 5px;
}
.other-trip > span {
  display: grid;
}
.other-trip small {
  color: var(--rust);
}
.other-trip strong {
  font: 700 21px/1.4 var(--serif);
}
.other-trip span span {
  font-size: 13px;
  color: var(--muted);
}
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 20px max(var(--edge), env(safe-area-inset-left)) max(18px, env(safe-area-inset-bottom));
}
.footer-inner {
  justify-content: space-between;
  gap: 10px;
}
.footer-brand {
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}
.footer-brand img {
  opacity: 0.87;
}
.footer-brand span {
  font:
    italic 17px/1.1 "Instrument Serif",
    Georgia,
    serif;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 1px;
  font-weight: 600;
}
.text-button:hover,
.back-link:hover,
.today-link:hover {
  color: var(--rust);
  text-decoration: underline;
}
.back-link {
  font-size: 13px;
  gap: 3px;
  color: var(--muted);
  width: max-content;
  min-height: 36px;
}
.back-link .icon {
  width: 14px;
  height: 14px;
}
.trip-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 9px 0 22px;
}
.trip-heading .eyebrow {
  text-transform: uppercase;
}
.trip-heading h1,
.message-page h1 {
  font: 700 clamp(32px, 3.5vw, 52px) / 1.35 var(--serif);
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.trip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.trip-meta .icon {
  width: 16px;
  height: 16px;
}
.day-strip {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--paper);
  padding: 5px 0 12px;
  border-bottom: 1px solid var(--line);
}
.day-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 3px;
}
.day-tab {
  display: flex;
  flex: 1 0 max-content;
  flex-direction: column;
  gap: 2px;
  scroll-snap-align: center;
  min-width: 88px;
  padding: 9px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.day-tab > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 650 11px/1.4 var(--mono);
  letter-spacing: 0.05em;
}
.day-tab strong {
  font: 650 16px/1.5 var(--sans);
}
.day-tab strong small {
  font-size: 12px;
  font-weight: 500;
}
.day-tab.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.day-tab.selected > span {
  color: #e9e7cc;
}
.day-tab.selected i {
  background: #f4d28b;
}
.day-tab:not(.selected):hover {
  background: var(--soft);
}
.daily-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 30%);
  gap: clamp(30px, 5vw, 74px);
  align-items: start;
  margin: 32px 0 20px;
}
.day-kicker {
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.day-kicker > span {
  color: var(--rust);
  font: 700 12px/1.4 var(--mono);
  letter-spacing: 0.075em;
}
.day-kicker b {
  font-size: 11px;
  background: #e1ead9;
  color: #3b613e;
  border-radius: 10px;
  padding: 1px 7px;
}
.timeline-section {
  min-width: 0;
}
.timeline-section h2 {
  font: 700 clamp(26px, 2.5vw, 38px) / 1.45 var(--serif);
  letter-spacing: 0.02em;
  margin: 4px 0 16px;
}
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stop {
  display: grid;
  grid-template-columns: 57px 17px minmax(0, 1fr);
  column-gap: 10px;
}
.stop-time {
  padding-top: 12px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.stop-time strong {
  font: 700 16px/1.45 var(--mono);
  color: var(--ink);
}
.stop-time small {
  font: 500 13px/1.6 var(--mono);
  color: var(--muted);
}
.stop-rail {
  position: relative;
  display: flex;
  justify-content: center;
}
.stop-rail:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #c3cbbb;
}
.stop:first-child .stop-rail:before {
  top: 20px;
}
.stop:last-child .stop-rail:before {
  height: 20px;
  bottom: auto;
}
.stop:only-child .stop-rail:before {
  display: none;
}
.stop-rail i {
  position: relative;
  top: 19px;
  height: 9px;
  width: 9px;
  border: 2px solid #9a533a;
  border-radius: 50%;
  background: var(--paper);
}
.stop-body {
  padding: 7px 0 18px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}
.stop + .stop .stop-body {
  padding-top: 16px;
}
.stop + .stop .stop-time {
  padding-top: 20px;
}
.stop + .stop .stop-rail i {
  top: 28px;
}
.stop + .stop:last-child .stop-rail:before {
  height: 28px;
}
.stop-body h3,
.day-aside h3 {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 720;
}
.duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.duration svg {
  width: 13px;
  height: 13px;
}
.note-text {
  margin-top: 4px;
  white-space: pre-line;
  line-height: 1.75;
  color: #455147;
  font-size: 16px;
}
.note-text a {
  color: var(--rust);
  text-decoration: underline;
}
.note-text a svg {
  width: 13px;
  height: 13px;
}
.map-links {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.map-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #d3d9ca;
  border-radius: 6px;
  padding: 5px 10px;
  color: #3d5343;
  font-weight: 650;
  font-size: 13px;
  min-height: 34px;
}
.map-links a:hover {
  background: #e8eddf;
}
.map-links svg {
  width: 14px;
  height: 14px;
}
.extra {
  margin-top: 8px;
  font-size: 14px;
}
.extra summary {
  cursor: pointer;
  color: var(--rust);
  padding: 3px 0;
  font-weight: 600;
  width: fit-content;
}
.extra .note-text {
  padding: 5px 10px;
  border-left: 2px solid #d4c4a6;
}
.skipped-stop .stop-rail i {
  border-color: #9da493;
}
.skipped-stop .stop-time strong {
  color: var(--muted);
  font-size: 14px;
}
.day-aside {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.aside-img {
  height: auto;
  aspect-ratio: 1.85;
}
.aside-body {
  padding: 19px 20px 15px;
}
.aside-body h3 {
  font: 700 24px/1.6 var(--serif);
  margin-top: 4px;
}
.aside-route,
.aside-count {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.aside-route .icon,
.aside-count .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.sync-box,
.mobile-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sync-box {
  padding: 8px 18px;
  border-top: 1px dashed var(--line);
}
.sync-state {
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}
.sync-box .icon,
.mobile-sync .icon {
  width: 14px;
  height: 14px;
}
.mobile-sync {
  display: none;
}
.day-foot-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 24px 0;
}
.neighbor {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 7px 12px;
  max-width: 46%;
}
.neighbor > span {
  display: flex;
  flex-direction: column;
}
.neighbor small,
.today-link {
  font-size: 13px;
  color: var(--muted);
}
.neighbor strong {
  font-size: 14px;
}
.neighbor .icon {
  width: 15px;
  height: 15px;
}
.neighbor.next {
  margin-left: auto;
  text-align: right;
}
.neighbor:hover {
  background: var(--soft);
}
.today-link {
  margin-inline: auto;
}
.empty-inline,
.message-page {
  margin: 30px 0;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px 20px;
}
.empty-inline p,
.message-page p,
.muted {
  color: var(--muted);
}
.empty-inline button,
.message-page .solid-button {
  margin-top: 14px;
}
.message-icon {
  display: inline-flex;
  color: var(--rust);
  padding: 12px;
  border-radius: 50%;
  background: #f0e8d9;
}
.message-icon svg {
  width: 28px;
  height: 28px;
}
.solid-button {
  color: #fff;
  background: var(--ink);
  border: 0;
  padding: 9px 18px;
  gap: 9px;
}
.solid-button:hover {
  background: #39513e;
}
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(440px, calc(100% - 34px));
  max-height: 80dvh;
  padding: 24px;
  box-shadow: 0 15px 80px #1422173d;
}
dialog::backdrop {
  background: #17251fd1;
  opacity: 0.61;
}
.dialog-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dialog-heading-row h2 {
  font: 700 26px/1.4 var(--serif);
  letter-spacing: 0.04em;
}
.dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: #eeefe6;
}
.dialog-close svg {
  width: 17px;
}
.share-dialog label {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.share-dialog input {
  accent-color: var(--rust);
}
.url-field {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 14px/1.5 var(--mono);
  background: var(--paper);
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dialog-actions .icon {
  width: 16px;
  height: 16px;
}
.dialog-note,
.credit-list {
  font-size: 14px;
  color: var(--muted);
}
.credit-list {
  padding-left: 18px;
}
.credit-list li {
  margin-block: 7px;
}
.credit-list a {
  color: var(--rust);
  text-decoration: underline;
}
#toast {
  position: fixed;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.16s;
  background: var(--ink);
  color: white;
  border-radius: 20px;
  padding: 8px 18px;
  line-height: 1.5;
  font-size: 14px;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  text-align: center;
}
#toast.visible {
  opacity: 1;
}
@media (min-width: 1550px) {
  .page {
    margin-top: 32px;
  }
  .mast-inner {
    min-height: 84px;
  }
}
@media (max-width: 900px) {
  :root {
    --edge: 28px;
  }
  .route-gallery {
    gap: 15px;
    grid-auto-columns: calc((100% - 30px) / 3);
  }
  .card-body {
    padding: 12px;
  }
  .card-body h3 {
    font-size: 20px;
  }
  .card-bottom > span {
    font-size: 12px;
  }
  .mast-inner {
    gap: 24px;
  }
  .daily-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 24px;
  }
  .sync-box {
    align-items: flex-start;
    flex-direction: column;
  }
  .card-arrow {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --edge: 18px;
  }
  .mast-inner {
    min-height: 65px;
    gap: 16px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
  .brand-text strong {
    font-size: 19px;
  }
  .brand-text small {
    font-size: 7px;
    letter-spacing: 0.16em;
  }
  .primary {
    gap: 16px;
  }
  .primary a {
    font-size: 13px;
  }
  .primary a[aria-current="page"]::after {
    bottom: 10px;
    height: 2px;
    width: 17px;
  }
  .share-button {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
  }
  .share-button > span:last-child {
    display: none;
  }
  .page {
    margin-top: 17px;
  }
  .cover {
    min-height: 337px;
    border-radius: 13px;
  }
  .cover-content {
    padding: 28px;
    max-width: 100%;
  }
  .cover h1 {
    font-size: clamp(39px, 7.9vw, 53px);
  }
  .cover-top {
    margin-bottom: 15px;
    gap: 10px;
  }
  .cover-meta {
    gap: 10px;
    font-size: 13px;
    margin: 17px 0 19px;
  }
  .cover-meta svg {
    width: 15px;
    height: 15px;
  }
  .cover-link {
    min-height: 44px;
    font-size: 14px;
    gap: 18px;
  }
  .cover-english {
    font-size: 33px;
  }
  .photo-place {
    right: 12px;
    bottom: 12px;
    font-size: 10px;
  }
  .cover-shade {
    background:
      linear-gradient(90deg, #172d28ca, #243d3259 69%, #16292020),
      linear-gradient(0deg, #192c247d, transparent 53%);
  }
  .cover-image {
    object-position: 68% 57%;
  }
  .routes-section,
  .other-section {
    margin-top: 25px;
  }
  .section-head {
    margin-bottom: 11px;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .gallery-nav {
    gap: 5px;
  }
  .gallery-nav button {
    width: 40px;
    height: 40px;
  }
  .gallery-nav > span {
    font-size: 12px;
    margin-right: 3px;
  }
  .route-gallery {
    grid-auto-columns: calc((100% - 14px) / 2);
    gap: 14px;
  }
  .card-body {
    padding: 13px 15px 15px;
  }
  .card-arrow {
    display: grid;
  }
  .prep-link {
    margin-top: 11px;
  }
  .trip-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin: 5px 0 12px;
  }
  .trip-heading h1 {
    font-size: 34px;
  }
  .trip-meta {
    font-size: 13px;
  }
  .day-strip {
    margin-inline: calc(0px - var(--edge));
    padding: 5px 0 7px;
  }
  .day-scroller {
    padding-inline: var(--edge);
    gap: 6px;
  }
  .day-tab {
    flex: none;
    min-width: 86px;
    padding: 7px 11px;
  }
  .daily-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 17px 0;
  }
  .timeline-section,
  .day-aside {
    width: 100%;
  }
  .day-aside {
    display: none;
  }
  .mobile-sync {
    display: flex;
    margin-top: 7px;
  }
  .mobile-sync .text-button {
    min-height: 35px;
  }
  .stop {
    grid-template-columns: 45px 12px minmax(0, 1fr);
    column-gap: 8px;
  }
  .stop-time strong {
    font-size: 15px;
  }
  .stop-body h3 {
    font-size: 18px;
  }
  .map-links {
    gap: 8px;
  }
  .map-links a {
    min-height: 42px;
    padding-inline: 12px;
  }
  .day-foot-nav {
    flex-wrap: wrap;
  }
  .neighbor {
    padding: 6px;
    gap: 3px;
  }
  .today-link {
    order: 3;
  }
  .site-footer {
    margin-top: 33px;
  }
}
@media (max-width: 480px) {
  :root {
    --edge: 16px;
  }
  .mast-inner {
    gap: 12px;
  }
  .primary {
    gap: 12px;
  }
  .cover {
    min-height: 365px;
    align-items: flex-end;
  }
  .cover-content {
    padding: 23px 20px 42px;
  }
  .cover-english {
    font-size: 31px;
  }
  .cover-image {
    object-position: 67% 48%;
  }
  .cover-shade {
    background:
      linear-gradient(0deg, #132a26ee 0%, #1b342cc4 27%, #1f352a55 62%, #15251e0d 100%),
      linear-gradient(90deg, #17292754, transparent 88%);
  }
  .cover-top {
    margin-bottom: 10px;
  }
  .cover-meta {
    margin: 14px 0 16px;
  }
  .cover h1 {
    font-size: clamp(34px, 9.3vw, 44px);
  }
  .route-gallery {
    grid-auto-columns: 83%;
    gap: 12px;
  }
  .route-photo {
    aspect-ratio: 2.07;
  }
  .card-body h3 {
    font-size: 23px;
  }
  .card-arrow {
    width: 24px;
    height: 24px;
  }
  .gallery-nav button {
    width: 42px;
    height: 42px;
  }
  .day-badge {
    top: 11px;
    left: 11px;
  }
  .footer-brand span {
    display: none;
  }
  .photo-place {
    bottom: 10px;
    right: 10px;
  }
  .note-text {
    font-size: 16px;
  }
}
@media (max-width: 355px) {
  :root {
    --edge: 12px;
  }
  .mast-inner {
    gap: 8px;
  }
  .brand-text small {
    font-size: 6px;
  }
  .brand-text strong {
    font-size: 17px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .primary {
    gap: 8px;
  }
  .primary a {
    font-size: 12px;
  }
  .share-button {
    width: 38px;
    height: 38px;
  }
  .cover-content {
    padding-inline: 16px;
  }
  .cover-meta {
    gap: 8px;
    font-size: 12px;
  }
  .route-gallery {
    grid-auto-columns: 89%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .cover-shader {
    display: none;
  }
}
@media (pointer: coarse) {
  .share-button,
  .gallery-nav button,
  .dialog-close {
    min-height: 44px;
    min-width: 44px;
  }
  .map-links a,
  .neighbor,
  .day-foot-nav a,
  .extra summary,
  .back-link,
  .mobile-sync .text-button,
  .footer-inner .text-button {
    min-height: 44px;
  }
  .extra summary {
    align-content: center;
  }
}
