:root {
  --bg: #f6f0e5;
  --paper: #fffaf0;
  --ink: #17312d;
  --muted: #61746e;
  --forest: #0d4b43;
  --teal: #0f766e;
  --teal-soft: #dceee8;
  --mint: #edf7f2;
  --blue: #2f6f8f;
  --gold: #c89b38;
  --line: #d6ded3;
  --warn: #b45309;
  --warn-bg: #fff2d6;
  --shadow: 0 18px 44px rgba(13, 75, 67, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbf7ee 0%, var(--bg) 42%, #eef5ef 100%);
  line-height: 1.75;
}

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

a:hover {
  color: var(--forest);
  text-decoration: underline;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 58, 52, 0.94), rgba(15, 118, 110, 0.88)),
    linear-gradient(45deg, #0d4b43, #2f6f8f);
  padding: 56px 0 34px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: rgba(200, 155, 56, 0.22);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 24px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.kicker,
.day-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 9vw, 5rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  line-height: 1.25;
}

h3 {
  margin-bottom: 12px;
  color: var(--forest);
  font-size: 1.12rem;
}

h4 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.hero-card,
.card {
  border: 1px solid rgba(13, 75, 67, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--ink);
  padding: 20px;
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fact-list div {
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}

.fact-list dt {
  color: var(--forest);
  font-weight: 900;
}

.fact-list dd {
  margin: 0;
  color: #24423d;
}

.festival-note {
  margin: 18px 0 0;
  border-radius: 8px;
  background: var(--warn-bg);
  padding: 12px;
  color: #59320b;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(13, 75, 67, 0.16);
  background: rgba(246, 240, 229, 0.94);
  backdrop-filter: blur(14px);
}

.nav-scroll {
  display: flex;
  gap: 8px;
  width: min(1120px, calc(100% - 16px));
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.nav-scroll a {
  flex: 0 0 auto;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background: #fffaf0;
  padding: 8px 12px;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.nav-scroll a:hover {
  background: var(--forest);
  color: #fff;
  text-decoration: none;
}

main.wrap {
  padding: 28px 0 44px;
}

.card {
  margin-bottom: 20px;
  padding: 20px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  margin-bottom: 0;
}

.pill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pill-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 999px;
  background: var(--mint);
  padding: 10px 14px;
  color: var(--forest);
  text-align: center;
}

.pill-link:hover {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
}

.info-grid,
.sub-grid {
  display: grid;
  gap: 16px;
}

.tip-list p {
  border-left: 3px solid var(--teal);
  margin-bottom: 12px;
  padding-left: 12px;
}

.tip-list p:last-child,
.compact-list,
.final-notes ul,
.subcard ul {
  margin-bottom: 0;
}

.pass-card {
  background: linear-gradient(180deg, #fffaf0, #f4fbf8);
}

.warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: 999px;
  background: var(--warn-bg);
  padding: 6px 12px;
  color: var(--warn);
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--forest);
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

.day {
  position: relative;
  overflow: hidden;
}

.day::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--teal), var(--gold));
}

.day-head {
  padding-left: 4px;
}

.day-head h2 {
  margin-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px 12px 12px 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -6px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.timeline time {
  color: var(--teal);
  font-size: 0.83rem;
  font-weight: 900;
}

.subcard {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
  padding: 16px;
}

.subcard.alt {
  background: #fff6df;
  border-color: #ead7a6;
}

.subcard.transit {
  background: #eef7f9;
  border-color: #c8e2e8;
}

.subcard.route {
  background: #edf7f2;
  border-color: #c6dfd6;
}

.bonus-badge,
.rating {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.4;
}

.bonus-badge {
  margin-right: 6px;
  background: #dbeafe;
  padding: 2px 8px;
  color: var(--blue);
}

.restaurant-block {
  margin-top: 18px;
}

.spot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.spot {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(13, 75, 67, 0.14);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(13, 75, 67, 0.07);
}

.spot p {
  margin-bottom: 14px;
  color: #344f49;
}

.rating {
  margin-bottom: 10px;
  background: var(--teal-soft);
  padding: 3px 9px;
  color: var(--forest);
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--forest);
  padding: 8px 13px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
}

.map-btn + .map-btn {
  margin-top: 8px;
}

.map-btn.secondary {
  background: var(--teal);
}

.map-btn:hover {
  background: var(--gold);
  color: #1f2b17;
  text-decoration: none;
}

.final-notes {
  background: #f8fbf3;
}

.site-footer {
  border-top: 1px solid rgba(13, 75, 67, 0.14);
  background: var(--forest);
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

@media (min-width: 640px) {
  .pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline li {
    grid-template-columns: 7.5rem 1fr;
  }

  .spot-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .hero {
    padding: 78px 0 46px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: start;
  }

  .hero-card,
  .card {
    padding: 24px;
  }

  .pill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-grid,
  .sub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spot-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #day2 .restaurant-block:nth-of-type(3) .spot-row,
  #day4 .spot-row,
  #day7 .restaurant-block:nth-of-type(2) .spot-row,
  #day8 .spot-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 22px, 1120px);
  }

  .hero {
    padding-top: 42px;
  }

  .card,
  .hero-card {
    padding: 16px;
  }

  .nav-scroll a {
    padding-inline: 10px;
  }
}
