:root {
  --ink: #11140f;
  --ink-2: #252b22;
  --paper: #f1f0e8;
  --paper-2: #e5e4d8;
  --lime: #d8ff3e;
  --orange: #ff623b;
  --sand: #cbc5ad;
  --muted: #737768;
  --line: rgba(17, 20, 15, 0.18);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17,20,15,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,20,15,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .75rem 1rem;
  background: var(--lime); color: var(--ink); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  min-height: 76px; padding: 12px clamp(18px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(241,240,232,.88); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--ink); color: var(--lime); font: 900 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
}
.brand strong, .brand small { display: block; letter-spacing: .08em; }
.brand strong { font-size: .82rem; }
.brand small { margin-top: 2px; color: var(--muted); font-size: .62rem; }

main { overflow: hidden; }
section { max-width: 1440px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) clamp(18px, 4vw, 64px); }

.hero {
  min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(36px, 7vw, 100px);
}
.eyebrow { display: flex; gap: 16px; color: var(--muted); font: 700 .67rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.kicker { margin: 30px 0 14px; font-size: clamp(.92rem, 1.4vw, 1.08rem); font-weight: 800; letter-spacing: .24em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(4rem, 9vw, 8.8rem); line-height: .79; letter-spacing: -.08em; text-transform: uppercase; }
h1 em { display: inline-block; margin-left: clamp(24px, 6vw, 90px); color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-style: normal; }
.hero-summary { max-width: 660px; margin: 34px 0 0; color: #454a40; font-size: clamp(.95rem, 1.35vw, 1.1rem); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.primary-action, .ghost-action {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border-radius: 2px;
  text-decoration: none; font-size: .82rem; font-weight: 850; letter-spacing: .04em; cursor: pointer;
}
.primary-action { color: var(--ink); background: var(--lime); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.primary-action:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.ghost-action { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.ghost-action:hover { background: var(--ink); color: var(--paper); }

.hero-panel {
  --panel-pad: clamp(28px, 4vw, 50px);
  position: relative; min-height: 540px; overflow: hidden; padding: var(--panel-pad);
  display: flex; flex-direction: column;
  color: var(--paper); background: var(--ink); border-radius: var(--radius); box-shadow: 0 32px 80px rgba(17,20,15,.22);
}
.topo { position: absolute; inset: 0; opacity: .18; }
.topo svg { width: 100%; height: 100%; }
.topo path { fill: none; stroke: var(--lime); stroke-width: 1.5; }
.route-stamp { position: relative; width: 132px; height: 145px; padding: 18px; color: var(--ink); background: var(--lime); transform: rotate(-2deg); clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 0 100%); }
.route-stamp span, .route-stamp small { display: block; font: 800 .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.route-stamp strong { display: block; margin: 4px 0; font-size: 4.8rem; line-height: .9; letter-spacing: -.08em; }
.track-mini { position: relative; display: flex; align-items: center; margin: 68px 0 34px; }
.track-mini i { flex: 1; height: 1px; border-top: 1px dashed rgba(241,240,232,.45); }
.mini-node { width: 11px; height: 11px; border: 2px solid var(--paper); border-radius: 50%; background: var(--ink); }
.mini-node.current { width: 18px; height: 18px; border-color: var(--lime); box-shadow: 0 0 0 6px rgba(216,255,62,.12); }
.hero-metrics { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.hero-metrics div { min-width: 0; }
.hero-metrics small { display: block; margin-bottom: 8px; color: rgba(241,240,232,.52); font: 700 .6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.hero-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; letter-spacing: .03em; }
.status-live { color: var(--lime); }
.status-live i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(216,255,62,.12); }
.weather-warning {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px;
  margin: auto calc(var(--panel-pad) * -1) calc(var(--panel-pad) * -1);
  padding: 18px var(--panel-pad); background: var(--orange); color: var(--ink);
}
.warning-icon { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-weight: 900; }
.weather-warning strong { font: 900 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.weather-warning p { margin: 5px 0 0; font-size: .76rem; line-height: 1.55; }

.packing-section { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(70px, 9vw, 120px); }
.packing-alert {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  margin-bottom: 16px; padding: 18px 20px; color: var(--ink); background: var(--lime); border: 1px solid var(--ink);
}
.packing-alert strong { display: block; margin: 1px 0 6px; font-size: .88rem; }
.packing-alert p { margin: 0; color: #42483c; font-size: .78rem; line-height: 1.65; }
.packing-intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.prep-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); background: rgba(241,240,232,.8); }
.prep-card h3 { margin: 62px 0 12px; font-size: 1.18rem; letter-spacing: -.03em; }
.prep-card p { margin: 0; color: #515648; font-size: .8rem; line-height: 1.7; }
.prep-card.bee-card { border-top: 5px solid var(--orange); }
.packing-checklist { padding: clamp(24px, 4vw, 42px); }
.packing-checklist #checklist { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 72px); align-items: start; }
.packing-checklist .note-code { color: var(--lime); }
.check-group-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.check-group-title h4 { margin: 0; }
.check-group-title span { color: rgba(241,240,232,.25); font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.check-group-note { margin: 9px 0 6px; padding-left: 10px; color: var(--orange); border-left: 2px solid var(--orange); font-size: .68rem; line-height: 1.55; }

.route-section { max-width: none; color: var(--paper); background: var(--ink); }
.route-section > * { max-width: 1312px; margin-left: auto; margin-right: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-index, .note-code { color: var(--muted); font: 800 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.route-section .section-index { color: var(--lime); }
h2 { margin: 10px 0 0; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.06em; }
.section-heading > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.7; font-size: .9rem; }
.route-section .section-heading > p { color: rgba(241,240,232,.52); }

.day-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; margin-bottom: 26px; }
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab { flex: 0 0 auto; min-width: 102px; padding: 14px 16px; text-align: left; color: rgba(241,240,232,.55); background: transparent; border: 1px solid rgba(241,240,232,.18); border-radius: 3px; cursor: pointer; }
.day-tab small, .day-tab strong { display: block; }
.day-tab small { font: 700 .6rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.day-tab strong { margin-top: 7px; font-size: .8rem; }
.day-tab.active { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.route-workspace { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 620px; border: 1px solid rgba(241,240,232,.16); border-radius: var(--radius); overflow: hidden; }
.route-list { padding: 18px clamp(18px, 3vw, 38px); border-right: 1px solid rgba(241,240,232,.16); }
.route-day-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0 22px; border-bottom: 1px solid rgba(241,240,232,.1); }
.route-day-title strong { font-size: 1rem; }
.route-day-title span { color: rgba(241,240,232,.48); font: 700 .65rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: right; }
.route-node { position: relative; display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; width: 100%; padding: 23px 0; color: inherit; text-align: left; background: transparent; border: 0; border-bottom: 1px solid rgba(241,240,232,.1); cursor: pointer; }
.route-node:last-child { border-bottom: 0; }
.route-node::before { content: ""; position: absolute; left: 19px; top: 0; bottom: 0; width: 1px; background: rgba(241,240,232,.18); }
.route-node:first-of-type::before { top: 50%; }
.route-node:last-child::before { bottom: 50%; }
.node-marker { position: relative; z-index: 1; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(241,240,232,.4); border-radius: 50%; background: var(--ink); font: 700 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.route-node.active .node-marker { color: var(--ink); background: var(--lime); border-color: var(--lime); box-shadow: 0 0 0 7px rgba(216,255,62,.1); }
.node-copy { min-width: 0; }
.node-copy h3 { margin: 1px 0 7px; font-size: 1rem; }
.node-copy p { margin: 0; color: rgba(241,240,232,.48); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node-alt { align-self: center; color: rgba(241,240,232,.48); font: 700 .66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.route-node:hover .node-copy h3 { color: var(--lime); }

.stop-detail { position: relative; padding: clamp(30px, 4vw, 54px); background: #191e17; }
.detail-code { color: var(--lime); font: 800 .65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.stop-detail h3 { margin: 16px 0 10px; font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: 1; letter-spacing: -.06em; }
.detail-subtitle { margin: 0 0 30px; color: rgba(241,240,232,.5); font-size: .78rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-bottom: 28px; background: rgba(241,240,232,.12); border: 1px solid rgba(241,240,232,.12); }
.detail-grid div { padding: 14px; background: #191e17; }
.detail-grid small { display: block; margin-bottom: 7px; color: rgba(241,240,232,.42); font: 700 .58rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.detail-grid strong { font-size: .74rem; }
.detail-block { margin-top: 24px; }
.detail-block h4 { margin: 0 0 10px; color: var(--lime); font: 800 .63rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.detail-block p { margin: 0; color: rgba(241,240,232,.72); font-size: .84rem; line-height: 1.75; }
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding: 11px 14px; color: var(--ink); background: var(--paper); text-decoration: none; font-size: .74rem; font-weight: 800; }
.map-link:hover { background: var(--lime); }
.coordinate-note { margin-top: 18px; color: rgba(241,240,232,.35); font-size: .63rem; line-height: 1.55; }

.checklist-panel { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); background: rgba(255,255,255,.34); }
.checklist-panel { background: var(--ink); color: var(--paper); }
.panel-title-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.checklist-panel .panel-title-row { border-color: rgba(241,240,232,.15); }
.panel-title-row h3 { margin: 8px 0 0; font-size: 1.5rem; }
.reset-checklist { padding: 11px 14px; border: 1px solid var(--ink); background: transparent; font-size: .74rem; font-weight: 800; cursor: pointer; }
.progress-label { color: var(--lime); font: 800 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.progress-track { height: 4px; margin: 18px 0 22px; overflow: hidden; background: rgba(241,240,232,.12); }
.progress-track span { display: block; width: 0; height: 100%; background: var(--lime); transition: width .25s ease; }
.check-group { margin-top: 22px; }
.check-group h4 { margin: 0 0 10px; color: rgba(241,240,232,.46); font: 800 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; border-bottom: 1px solid rgba(241,240,232,.08); font-size: .82rem; line-height: 1.45; cursor: pointer; }
.check-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--lime); }
.check-row:has(input:checked) span { color: rgba(241,240,232,.38); text-decoration: line-through; }
.reset-checklist { margin-top: 20px; color: var(--paper); border-color: rgba(241,240,232,.35); }
.reset-checklist:hover { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.save-note { margin: 12px 0 0; color: rgba(241,240,232,.35); font-size: .65rem; }

footer { max-width: 1440px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(18px, 4vw, 64px) 36px; color: var(--muted); font: 700 .62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 120px); padding: 12px 16px; color: var(--ink); background: var(--lime); border: 1px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: .78rem; font-weight: 800; opacity: 0; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-panel { min-height: 500px; }
  .route-workspace { grid-template-columns: 1fr; }
  .route-list { border-right: 0; border-bottom: 1px solid rgba(241,240,232,.16); }
  .stop-detail { min-height: 540px; }
  .packing-intro-grid { grid-template-columns: 1fr; }
  .prep-card { min-height: 180px; }
  .prep-card h3 { margin-top: 42px; }
}

@media (max-width: 640px) {
  .topbar { min-height: 68px; padding: 10px 14px; }
  .brand small { display: none; }
  .brand strong { font-size: .7rem; }
  section { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: auto; padding-top: 54px; }
  .eyebrow { justify-content: space-between; gap: 8px; }
  h1 { font-size: clamp(3.5rem, 20vw, 5.8rem); }
  h1 em { margin-left: 14px; }
  .hero-summary { margin-top: 28px; }
  .hero-actions > * { flex: 1 1 auto; }
  .hero-panel { --panel-pad: 22px; min-height: 520px; padding: 28px var(--panel-pad) var(--panel-pad); border-radius: 14px; }
  .weather-warning { padding-left: 22px; padding-right: 22px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .packing-alert { padding: 16px; }
  .packing-intro-grid { gap: 8px; }
  .packing-checklist { padding: 24px 18px; }
  .packing-checklist #checklist { grid-template-columns: 1fr; }
  .day-tab { min-width: 92px; }
  .route-workspace { min-height: 0; border-radius: 14px; }
  .route-node { grid-template-columns: 38px 1fr; gap: 12px; }
  .node-marker { width: 35px; height: 35px; }
  .route-node::before { left: 17px; }
  .node-alt { display: none; }
  .stop-detail { min-height: 0; padding: 34px 22px 42px; }
  footer { align-items: flex-end; font-size: .54rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
