:root {
  --paper: #f4f0e7;
  --paper-2: #fffcf7;
  --ink: #1c2430;
  --ink-soft: #3a4656;
  --muted: #4c5b6a;
  --line: #e3d8c8;
  --lake: #1a5670;
  --blush: #a33d58;
  --blush-deep: #7d3148;
  --gold: #6e522e;
  --ski: #4a3d72;
  --shadow: 0 18px 44px rgba(48, 62, 74, 0.08);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "Noto Serif CJK TC", serif;
  --sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
  --latin: "Cormorant Garamond", "Iowan Old Style", Palatino, "Times New Roman", serif;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(920px 440px at 6% -8%, rgba(243, 206, 216, 0.5), transparent 58%),
    radial-gradient(840px 500px at 100% -4%, rgba(186, 218, 230, 0.7), transparent 54%),
    var(--paper);
}

::selection {
  background: #f3c6d2;
  color: var(--ink);
}

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--blush-deep);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  z-index: 50;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-2);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus,
.skip:focus-visible { transform: none; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

h1, h2, h3 { text-wrap: balance; }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-snow,
.closing-snow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.flake {
  position: absolute;
  top: -12%;
  color: #6d90a2;
  line-height: 1;
  animation: fall linear infinite;
  will-change: transform;
}

.flake-dot {
  border-radius: 50%;
  background: currentColor;
  color: transparent;
}

.closing-snow .flake { color: rgba(255, 255, 255, 0.82); }

@keyframes fall {
  to { transform: translate3d(0, 115vh, 0) rotate(220deg); }
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  margin: auto auto 0;
  padding: clamp(2.4rem, 6vh, 4rem) 0 0.2rem;
  text-align: center;
}

.love {
  margin: 0;
  color: var(--blush);
  font-size: 2rem;
  line-height: 1;
}

.kicker {
  margin: 0.7rem 0 0;
  font-family: var(--latin);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--lake);
}

.hero h1 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.4vw, 5.5rem);
  line-height: 1.12;
  letter-spacing: 0.045em;
}

.rule {
  width: 3.4rem;
  height: 1px;
  margin: 0.95rem auto 0;
  background: var(--gold);
}

.sub {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
}

.count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 36rem;
  margin: 1.5rem auto 0;
  border-block: 1px solid rgba(28, 36, 48, 0.12);
}

.unit {
  position: relative;
  padding: 0.8rem 0.15rem 0.7rem;
}

.unit + .unit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(28, 36, 48, 0.12);
}

.n {
  display: block;
  font-family: var(--latin);
  font-weight: 600;
  font-size: clamp(2.15rem, 6vw, 4.35rem);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 0.9;
  color: var(--ink);
}

.n.tick { animation: tick 0.35s ease; }

@keyframes tick {
  from { opacity: 0.35; transform: translateY(-0.12em); }
}

.l {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.whisper {
  max-width: 22rem;
  margin: 1.15rem auto 0;
  color: var(--ink-soft);
}

.noscript {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.35rem;
  color: var(--lake);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.scrollcue:hover { color: var(--blush-deep); }

.scrollcue svg {
  width: 1rem;
  height: 1rem;
}

.ridge {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: clamp(168px, 26vh, 280px);
  margin-top: 0.6rem;
}

/* Sections */

.band { padding: 3.6rem 0 0.5rem; }

.section-head {
  max-width: 40rem;
  margin: 0 auto 1.6rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.section-head h2,
.legend-card h3,
.day h3,
.closing h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.3;
}
.lede {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

/* Map */

.map-layout {
  display: grid;
  gap: 1rem;
}

.map-card,
.legend-card,
.day,
.closing {
  box-shadow: var(--shadow);
}

.map-card {
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #e5f2f6;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.map-scroll { overflow-x: auto; }

.map-scroll:focus-visible { outline-offset: -4px; }

.hmap {
  display: block;
  width: 100%;
  height: auto;
}

.map-hint {
  margin: 0;
  padding: 0.55rem 0.9rem 0.7rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.isle { fill: url(#landgrad); stroke: #6d93a4; stroke-width: 2; }

.isle-shadow { fill: #b9d3de; opacity: 0.55; }

.lake { fill: #7eb4c8; stroke: #f7fbfe; stroke-width: 1.5; }

.route {
  fill: none;
  stroke: #c45370;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2.2 1.8;
}

.js .route { stroke-dashoffset: 120; }

.js .route.is-drawn {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.8s ease;
}

.pin-hit { fill: transparent; }

.pin-dot { stroke: #fff; stroke-width: 2.5; }

.pin.sight .pin-dot { fill: var(--lake); }

.pin.ski .pin-dot { fill: var(--ski); }

.pin text {
  fill: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.pin.is-hot .pin-dot,
.pin:hover .pin-dot,
.pin:focus-visible .pin-dot {
  stroke: #fffaf6;
  stroke-width: 3.5;
}

.map-label {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  fill: var(--ink);
  pointer-events: none;
  paint-order: stroke;
  stroke: #f4f8fb;
  stroke-width: 5px;
  stroke-linejoin: round;
}

.map-label.is-hot { fill: var(--blush-deep); }

.compass-ring { fill: var(--paper-2); stroke: #8eacb8; }

.compass-n { fill: var(--blush); }

.compass-s { fill: #8eacb8; }

.compass text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink-soft);
  text-anchor: middle;
}

.legend-card {
  min-width: 0;
  padding: 1.05rem 1rem 1rem;
  border-radius: 28px;
  background: var(--paper-2);
  border: 1px solid rgba(28, 36, 48, 0.05);
}

.legend-card h3 {
  margin: 0.85rem 0 0;
  font-size: 1.35rem;
}

.locator {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

.locator svg { width: 100%; height: auto; display: block; }

.locator figcaption {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.mini-land { fill: #f7f3ea; stroke: #7f9eae; stroke-width: 1.2; }
.mini-window { fill: rgba(196, 83, 112, 0.16); stroke: #c45370; stroke-width: 1.4; }

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.key li { display: inline-flex; align-items: center; }

.swatch {
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  display: inline-block;
}

.swatch.sight { background: var(--lake); }

.swatch.ski { background: var(--ski); }

.swatch.route {
  width: 1.15rem;
  height: 0;
  border-radius: 0;
  border-top: 2px dashed #c45370;
  background: transparent;
}

.places {
  display: grid;
  gap: 0.3rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.place {
  --accent: var(--lake);
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.35rem 0.45rem;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.place.ski { --accent: var(--ski); }

.place:hover,
.place.is-hot {
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--accent);
}

.pn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.pname { display: block; font-weight: 700; line-height: 1.3; }

.pmeta { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

.map-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Itinerary */

.itinerary { padding-bottom: 2.5rem; }

.itinerary-layout { display: grid; gap: 0.35rem; }

.daynav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0 0.7rem;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.daynav::-webkit-scrollbar { display: none; }

.daynav a {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.7rem;
  min-height: 3.5rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(28, 36, 48, 0.06);
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.76);
  color: var(--ink);
  text-decoration: none;
}

.daynav a:hover { background: #fff; }

.dn {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.ds {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.daynav a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-2);
}

.daynav a[aria-current="true"] .ds { color: inherit; opacity: 0.78; }
.days { display: grid; gap: 1rem; }

.day {
  --accent: var(--lake);
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.15rem 0.4rem 1.25rem;
  border: 1px solid rgba(28, 36, 48, 0.05);
  border-radius: 22px;
  background: var(--paper-2);
  scroll-margin-top: 5.4rem;
}

.day::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.day.is-hot,
.day:target {
  box-shadow: 0 18px 40px rgba(48, 62, 74, 0.1), 0 0 0 2px var(--accent);
}

.day-watermark {
  position: absolute;
  top: -0.15rem;
  right: 0.45rem;
  margin: 0;
  color: transparent;
  font-family: var(--sans);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 42%, transparent);
}

.day-head { position: relative; z-index: 1; padding-right: 3.4rem; }

.day-kicker {
  display: flex;
  gap: 0.45rem;
  align-items: baseline;
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dow {
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.day-date {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.12rem;
}

.day h3 {
  margin: 0.1rem 0 0.65rem;
  max-width: 16em;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.35;
}

.stops {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0.35rem;
  padding: 0.15rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.72rem 0;
}

.stop:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.55rem;
  bottom: -0.15rem;
  left: 1.14rem;
  width: 1px;
  background: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.stop p { margin: 0; padding-top: 0.28rem; }

.stop-flight {
  margin-inline: -0.25rem;
  padding: 0.72rem 0.45rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 8%, white);
}

.mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  color: var(--accent);
  background: #e7eef1;
  background: color-mix(in srgb, var(--accent) 13%, white);
}

.icon { display: block; width: 1.15rem; height: 1.15rem; }

.t {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flight { font-weight: 700; letter-spacing: 0.03em; }

/* Closing */

.closing {
  position: relative;
  margin: 0.4rem 0 1.5rem;
  padding: 3.8rem 1.3rem 5.6rem;
  overflow: hidden;
  border-radius: 30px;
  color: #f6f1e7;
  text-align: center;
  background:
    radial-gradient(440px 200px at 50% 0%, rgba(212, 150, 168, 0.28), transparent 70%),
    linear-gradient(180deg, #1c3348 0%, #142636 68%, #101c28 100%);
}

.closing .love { color: #f0b7c6; font-size: 1.7rem; }

.closing h2 {
  position: relative;
  z-index: 2;
  margin: 0.35rem 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.3;
}

.closing-copy {
  position: relative;
  z-index: 2;
  max-width: 28rem;
  margin: 0 auto;
  color: #efe6da;
}

.closing-flight {
  position: relative;
  z-index: 2;
  margin: 1.2rem 0 0;
  color: #f3e6d4;
  letter-spacing: 0.06em;
}

.closing-ridge {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 92px;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.colophon p { margin: 0; }

.colophon a {
  color: var(--lake);
  font-weight: 700;
  text-decoration: none;
}

.colophon a:hover { text-decoration: underline; }

@media (min-width: 520px) and (max-width: 979px) {
  .places { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .kicker { font-size: 1.22rem; letter-spacing: 0.32em; }
  .day-watermark { font-size: 6.4rem; right: 0.7rem; }
  .day-head { padding-right: 5.4rem; }
}

@media (max-width: 700px) {
  .hmap { width: 680px; }
}

@media (min-width: 760px) {
  .map-hint { display: none; }
}

@media (min-width: 900px) {
  .itinerary-layout {
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 1.2rem;
    align-items: start;
  }

  .daynav {
    position: sticky;
    top: 1rem;
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .daynav a { width: 100%; }

  .day { scroll-margin-top: 1.2rem; }
}

@media (min-width: 980px) {
  .map-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.78fr);
    align-items: start;
  }
}

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

  .flake { display: none !important; }

  .js .route,
  .route {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .n.tick { animation: none !important; }

  .day,
  .map-card,
  .legend-card,
  .closing { animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .day,
    .map-card,
    .legend-card,
    .closing {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}

@keyframes rise {
  from { opacity: 0.35; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .day,
  .map-card,
  .legend-card,
  .closing { border: 1px solid CanvasText; }

  .day-watermark { display: none; }
}

@media print {
  .hero-snow,
  .closing-snow,
  .scrollcue,
  .daynav,
  .map-hint { display: none !important; }

  body { background: #fff; }

  .day,
  .map-card,
  .legend-card,
  .closing {
    box-shadow: none;
    break-inside: avoid;
  }

  .closing {
    color: #000;
    background: #fff;
  }

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