@font-face {
  font-family: "Shop Serif";
  src: url("assets/shop-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --forest: #081d18;
  --ivory: #f8f7e0;
  --mist: #a6b9aa;
  --gold: #dcdac1;
  --serif: "Shop Serif", "Songti SC", SimSun, serif;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--forest);
  color: var(--ivory);
}

* { box-sizing: border-box; }
[hidden], .routes[aria-busy="true"] [data-panel] { display: none !important; }
body { margin: 0; min-width: 260px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible {
  outline: 2px solid #ffe6a5;
  outline-offset: 4px;
}
button:active { transform: translateY(1px); }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.frame { width: 86%; max-width: 1320px; margin-inline: auto; }

.masthead { position: absolute; inset: 0 0 auto; z-index: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 500 29px/1 var(--serif); text-decoration: none; color: var(--ivory); }
.brand img { display: block; }
.status, .eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgb(247 242 216 / 32%);
  border-radius: 100px;
  background: rgb(69 79 62 / 46%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 8px rgb(251 239 206 / 8%);
}
.status { gap: 9px; padding: 8px 15px; font-size: 14px; background: rgb(96 106 93 / 42%); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #4bcd61; box-shadow: 0 0 7px #4bcd6180; animation: breathe 3.4s ease-in-out infinite; }
.status.unavailable i { background: #aab4a4; animation: none; box-shadow: none; }
@keyframes breathe { 50% { box-shadow: 0 0 0 3px #4bcd611b, 0 0 9px #4bcd6180; } }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(485px, min(72svh, 57vw, 790px));
  overflow: hidden;
}
.scenery, .hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scenery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 56%; }
.hero-shade {
  background:
    linear-gradient(to top, var(--forest) 0%, rgb(8 29 24 / 77%) 4%, transparent 19%),
    linear-gradient(90deg, rgb(4 20 16 / 80%) 0%, rgb(4 24 18 / 58%) 24%, rgb(6 25 19 / 9%) 61%, transparent 83%);
}
.hero-inner { padding-top: 100px; padding-bottom: 44px; }
.eyebrow { margin: 0; gap: 9px; padding: 6px 14px; font-size: 13px; line-height: 1.45; color: #f6e9c8; }
.eyebrow svg { width: 13px; height: 13px; color: #ffdda0; }
h1 { margin: 14px 0 15px; font: 700 78px/1.25 var(--serif); color: #fff2d9; text-shadow: 0 3px 20px rgb(4 17 12 / 20%); }
.subtitle { margin: 0; font-size: 17px; line-height: 1.6; color: #c0ceba; }
.subtitle span, footer span { margin-inline: .55em; }
.routes { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.route-message { align-self: center; margin: 0; color: #d0daca; font-size: 14px; }
.brand, .status, h1, .subtitle, .card-copy, .route, footer { overflow-wrap: anywhere; }
.status i, .brand img { flex-shrink: 0; }
.route {
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 16px;
  line-height: 1.4;
  max-width: 100%;
  text-decoration: none;
  transition: box-shadow .2s, background-color .2s, border-color .2s, transform .2s;
}
.route .icon { transition: transform .2s; }
.primary { background: linear-gradient(90deg, #fdf6e3, #fde1b2); color: #081d18; font-weight: 600; box-shadow: 0 4px 24px rgb(251 207 133 / 20%); }
.backup { color: var(--ivory); background: rgb(37 56 54 / 76%); border-color: rgb(238 236 218 / 25%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 6px rgb(251 245 222 / 7%); }

.guides { padding-top: 20px; }
.guides h2 { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; font-size: 16px; line-height: 1.5; font-weight: 400; color: #b5bfab; }
.guides h2::after { content: ""; height: 1px; flex: 1; background: rgb(220 218 193 / 15%); }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.guide-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 16px 22px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 8px;
  background: rgb(29 45 42 / 78%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 4px rgb(255 255 255 / 4%);
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s;
}
.number { font: 400 32px/1 Georgia, "Times New Roman", serif; color: #b9a77f; font-variant-numeric: lining-nums tabular-nums; }
.card-copy { display: grid; gap: 4px; }
.card-copy strong { font-weight: 500; font-size: 18px; line-height: 1.4; }
.card-copy small { color: #aab4a4; font-size: 13px; line-height: 1.45; }
footer { padding: 31px 12px max(27px, env(safe-area-inset-bottom)); text-align: center; line-height: 1.6; color: #95a294; font-size: 13px; }

dialog {
  position: fixed;
  width: min(420px, calc(100% - 36px));
  max-height: calc(100dvh - 48px);
  padding: 30px;
  border: 1px solid #6c7967;
  border-radius: 14px;
  background: #152b23;
  color: var(--ivory);
  box-shadow: 0 20px 90px #0006;
}
dialog::backdrop { background: rgb(3 12 10 / 65%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
.close-button { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #bac8b7; }
#dialog-kicker { margin: 0 40px 8px 0; font-size: 13px; color: #d3be93; }
#dialog-title { margin: 0 0 18px; font-size: 24px; font-weight: 600; }
#dialog-content { font-size: 15px; line-height: 1.75; color: #c0cdbf; }
#dialog-content > p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#dialog-content > p + p { margin-top: 12px; }
#dialog-title { overflow-wrap: anywhere; }
.dialog-steps { margin: 0; padding: 0 0 0 1.4em; }
.dialog-steps li { padding-left: 4px; }
.dialog-steps li + li { margin-top: 14px; }
.dialog-steps li::marker { color: #d3be93; }
.dialog-steps strong { color: var(--ivory); }
.dialog-steps p { margin: 2px 0 0; }
.dialog-link { color: #ffe0a9; }

@media (hover: hover) {
  .primary:hover { box-shadow: 0 4px 28px #edc78654; }
  .backup:hover, .guide-card:hover { background: #33483c; border-color: #dcdac1; }
  .route:hover .icon { transform: translateX(3px); }
  .close-button:hover { background: #ffffff10; }
}
@media (min-width: 701px) and (max-width: 1050px) {
  .frame { width: 89%; }
  h1 { font-size: 61px; }
  .route { padding-inline: 18px; font-size: 15px; }
  .guide-grid { gap: 10px; }
  .guide-card { padding: 14px 12px; gap: 10px; }
  .number { font-size: 26px; }
  .card-copy strong { font-size: 16px; }
  .card-copy small { font-size: 12px; }
}
@media (max-width: 700px) {
  .frame { width: 82.8%; }
  .header-inner { width: 90.4%; padding-top: 6.25vw; }
  .brand { gap: 8px; font-size: 21px; }
  .brand img { width: 28px; height: 28px; }
  .status { gap: 6px; padding: 5px 10px; font-size: 12px; }
  .status i { width: 7px; height: 7px; }
  .hero { display: block; height: auto; min-height: 0; overflow: visible; }
  .scenery { inset: 0 0 auto; width: 100%; height: 116vw; overflow: hidden; }
  .scenery img { width: 100%; height: auto; }
  .hero-shade {
    inset: 0 0 auto; height: 116vw;
    background: linear-gradient(to bottom, transparent 60%, rgb(8 29 24 / 14%) 69%, rgb(8 29 24 / 88%) 83%, var(--forest) 97%);
  }
  .hero-inner { padding: 76.25vw 0 0; }
  .eyebrow { padding: 4px 11px; font-size: 12px; gap: 5px; }
  .eyebrow svg { width: 12px; height: 12px; }
  h1 { margin: 5px 0 3px; text-align: center; font-size: 44px; line-height: 1.25; }
  .subtitle { text-align: center; color: #a4b89f; font-size: 13px; }
  .subtitle span { margin-inline: .39em; }
  .routes { margin-top: 14px; flex-direction: column; gap: 8px; }
  .route { min-height: 42px; padding: 9px 15px; gap: 5px; font-size: 16px; }
  .primary { font-weight: 500; }
  .route .icon { width: 17px; height: 17px; }
  .guides { padding-top: 18px; }
  .guides h2 { font-size: 13px; margin-bottom: 9px; }
  .guides h2::after { display: none; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .guide-card { min-height: 54px; padding: 8px 11px; gap: 8px; border-radius: 6px; }
  .number { font: 300 21px/1 "Segoe UI", Arial, sans-serif; }
  .card-copy { gap: 1px; }
  .card-copy strong { font-size: 16px; line-height: 1.3; }
  .card-copy small { font-size: 12px; line-height: 1.4; }
  footer { font-size: 12px; padding-top: 13px; }
}
@media (min-width: 460px) and (max-width: 700px) {
  h1 { font-size: 54px; }
  .subtitle { font-size: 15px; }
  .route { min-height: 48px; }
  .guide-card { min-height: 64px; }
}
@media (max-width: 365px) {
  h1 { font-size: 37px; }
  .frame:not(.header-inner) { width: 88%; }
  .guide-card { padding-inline: 8px; gap: 6px; }
}
@media (max-width: 310px) {
  h1 { font-size: 32px; }
  .subtitle, .card-copy small { font-size: 11px; }
  .card-copy strong { font-size: 14px; }
  .number { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
