:root {
  --paper: #f4f0e5;
  --paper-light: #fbf8f0;
  --ink: #102c25;
  --muted: #56615d;
  --line: #d9d3c5;
  --red: #c73525;
  --gold: #dda900;
  --blue: #148cac;
  --green: #276750;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.skip-link { position: fixed; z-index: 99; top: 12px; left: 12px; padding: 10px 14px; background: white; color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(244,240,229,.96); backdrop-filter: blur(14px); }
.site-nav .topbar { height: 76px; }
.view-section[hidden] { display: none !important; }
.hero {
  min-height: 92vh;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(rgba(16,44,37,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 56px;
  border-bottom: 1px solid var(--line);
}
.topbar { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 700 13px/1 var(--font-geist-mono), monospace; letter-spacing: .12em; text-decoration: none; }
.wordmark span { color: var(--red); }
.navlinks { display: flex; gap: 28px; }
.navlinks a { font-size: 14px; text-decoration: none; color: var(--muted); }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--red); }
.navlinks a[aria-current="page"] { font-weight: 750; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; padding: 90px 0 100px; }
.eyebrow, .section-index { margin: 0 0 18px; color: var(--red); font: 700 13px/1.2 var(--font-geist-mono), monospace; letter-spacing: .1em; }
.hero h1 { margin: 0; font-size: clamp(68px, 8vw, 118px); line-height: .94; letter-spacing: -.07em; font-weight: 800; }
.lead { max-width: 610px; margin: 32px 0; color: #41514b; font-size: 20px; line-height: 1.8; }
.hero-actions, .place-links, .food-links { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-button, .link-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 700; transition: transform .2s ease, background .2s ease;
}
.primary-button, .link-button.dark { background: var(--ink); color: white; }
.link-button.light { background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.28); }
.primary-button:hover, .link-button:hover { transform: translateY(-2px); }

.route-poster { background: var(--ink); color: white; padding: 34px; border-radius: 4px; box-shadow: 24px 24px 0 rgba(16,44,37,.09); }
.poster-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.2); }
.poster-head span { color: #f7d04b; font: 700 12px var(--font-geist-mono), monospace; }
.poster-head strong { font-size: 20px; }
.poster-line { position: relative; display: grid; gap: 30px; padding: 38px 0 28px; }
.poster-line::before { content: ""; position: absolute; left: 22px; top: 42px; bottom: 38px; width: 5px; background: linear-gradient(var(--red) 0 33%, var(--gold) 33% 66%, var(--blue) 66%); }
.poster-stop { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; }
.poster-stop span { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 6px solid currentColor; border-radius: 50%; background: var(--ink); font: 800 11px var(--font-geist-mono), monospace; color: white; }
.poster-stop.red { color: var(--red); } .poster-stop.gold { color: var(--gold); } .poster-stop.blue { color: var(--blue); }
.poster-stop p { margin: 0; color: white; font-size: 16px; line-height: 1.4; }
.poster-note { margin: 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); color: #bbc7c2; font-size: 13px; }

.routes, .places, .tips, .local-food { padding-top: 110px; padding-bottom: 120px; }
.section-heading { margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.055em; }
.section-heading > p:last-child { color: var(--muted); }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.split-heading > p { max-width: 420px; margin: 0; }
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.quick-route { min-height: 300px; padding: 28px; border-right: 1px solid var(--line); background: var(--paper-light); }
.quick-route:last-child { border-right: 0; }
.route-number { font: 800 13px var(--font-geist-mono), monospace; }
.quick-route.red .route-number { color: var(--red); } .quick-route.gold .route-number { color: var(--gold); } .quick-route.blue .route-number { color: var(--blue); } .quick-route.green .route-number { color: var(--green); }
.quick-route h3 { margin: 62px 0 14px; font-size: 25px; }
.route-stops { min-height: 76px; margin: 0; font-weight: 700; line-height: 1.5; }
.route-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

.place-list { display: grid; gap: 22px; }
.place-card { display: grid; grid-template-columns: 88px 1fr; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 18px 35px rgba(16,44,37,.055); }
.timeline { position: relative; display: grid; place-items: start center; padding-top: 38px; color: var(--muted); font: 700 12px var(--font-geist-mono), monospace; }
.timeline::after { content: ""; position: absolute; top: 67px; bottom: -23px; width: 6px; background: currentColor; }
.place-card:last-child .timeline::after { bottom: 30px; }
.timeline span { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border: 7px solid currentColor; border-radius: 50%; background: var(--paper-light); color: var(--ink); }
.place-card.red .timeline { color: var(--red); } .place-card.gold .timeline { color: var(--gold); } .place-card.blue .timeline { color: var(--blue); } .place-card.green .timeline { color: var(--green); }
.place-content { padding: 38px 40px 36px 24px; }
.place-title-row { display: flex; justify-content: space-between; gap: 24px; }
.place-card h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 36px; line-height: 1.15; }
.english-name { margin: 6px 0 0; color: var(--muted); font: 600 13px var(--font-geist-mono), monospace; letter-spacing: .12em; }
.place-intro { max-width: 880px; margin: 24px 0 20px; color: #43514d; font-size: 17px; }
.fact-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--muted); font-size: 14px; }
.fact-row b { color: var(--ink); }
.status-tag { padding: 4px 10px; background: #eee8da; border-radius: 999px; color: var(--ink); font-weight: 650; }
.secondary-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; }
.secondary-link { display: inline-block; color: var(--green); font-size: 14px; font-weight: 700; }

.food { padding: 110px 0 120px; background: var(--ink); color: white; }
.food-heading .section-index { color: #ff705d; }
.food-heading > p { color: #aebcb7; }
.food-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.food-card { position: relative; min-height: 360px; padding: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); background: #183b32; }
.food-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: var(--accent); }
.food-card.red { --accent: var(--red); } .food-card.gold { --accent: var(--gold); } .food-card.blue { --accent: var(--blue); } .food-card.green { --accent: #5ba284; }
.food-type { margin: 0 0 28px; color: #b9c8c3; font: 600 12px var(--font-geist-mono), monospace; letter-spacing: .08em; text-transform: uppercase; }
.food-card h3 { margin: 0 0 16px; font-family: Georgia, serif; font-size: 38px; }
.food-intro { max-width: 530px; min-height: 84px; margin: 0; color: #dbe3e0; }
.food-facts { margin: 24px 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.food-facts p { margin: 5px 0; color: #b9c8c3; font-size: 13px; }

.memory-note { display: grid; grid-template-columns: 270px 1fr; gap: 30px; margin-bottom: 28px; padding: 26px 30px; border-left: 7px solid var(--red); background: #eee7d6; }
.memory-note strong { font-size: 18px; }
.memory-note p { margin: 0; color: var(--muted); }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.local-card { position: relative; min-height: 380px; padding: 30px; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 0 12px 28px rgba(16,44,37,.045); }
.local-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--accent); }
.local-card.red { --accent: var(--red); } .local-card.gold { --accent: var(--gold); } .local-card.blue { --accent: var(--blue); } .local-card.green { --accent: var(--green); }
.local-card.likely { border-color: #c7aa58; box-shadow: 0 16px 34px rgba(111,83,13,.1); }
.likely-tag { display: inline-flex; margin-bottom: 18px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; }
.local-type { margin: 0 0 22px; color: var(--muted); font: 650 12px var(--font-geist-mono), monospace; letter-spacing: .06em; }
.local-card h3 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 31px; line-height: 1.15; }
.local-intro { min-height: 112px; margin: 0; color: #43514d; }
.local-facts { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.local-facts p { margin: 4px 0; color: var(--muted); font-size: 13px; }

.tip-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.tip-grid article { min-height: 290px; padding: 28px; border-right: 1px solid var(--line); background: var(--paper-light); }
.tip-grid article:last-child { border-right: 0; }
.tip-grid span { color: var(--red); font: 800 13px var(--font-geist-mono), monospace; }
.tip-grid h3 { margin: 52px 0 12px; font-size: 23px; }
.tip-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.getty-note { display: grid; grid-template-columns: 160px 1fr; gap: 30px; margin-top: 24px; padding: 26px 30px; border-left: 7px solid var(--gold); background: #eee7d6; }
.getty-note p { margin: 0; }
footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: end; padding: 50px max(24px, calc((100vw - 1180px) / 2)); background: #0a211b; color: white; }
footer span { color: #f7d04b; font: 700 13px var(--font-geist-mono), monospace; letter-spacing: .1em; }
footer p { margin: 8px 0 0; color: #aebcb7; font-size: 13px; }
footer a { font-weight: 700; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 55px; padding: 70px 0 80px; }
  .route-grid, .tip-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-route, .tip-grid article { border-bottom: 1px solid var(--line); }
  .quick-route:nth-child(2n), .tip-grid article:nth-child(2n) { border-right: 0; }
  .quick-route:nth-last-child(-n+2), .tip-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .food-grid { grid-template-columns: 1fr; }
  .local-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  .section-shell { width: min(100% - 28px, 1180px); }
  .site-nav .topbar { width: 100%; height: auto; padding: 12px 14px 10px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .navlinks { width: 100%; gap: 18px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
  .navlinks::-webkit-scrollbar { display: none; }
  .navlinks a { flex: 0 0 auto; font-size: 13px; }
  .navlinks a[aria-current="page"] { text-underline-offset: 6px; }
  .hero-grid { padding-top: 52px; }
  .hero h1 { font-size: 58px; }
  .lead { font-size: 17px; }
  .route-poster { padding: 24px; box-shadow: 12px 12px 0 rgba(16,44,37,.09); }
  .routes, .places, .tips, .food, .local-food { padding-top: 76px; padding-bottom: 82px; }
  .section-heading h2 { font-size: 44px; }
  .route-grid, .tip-grid { grid-template-columns: 1fr; }
  .quick-route { min-height: 250px; border-right: 0; }
  .quick-route:nth-last-child(-n+2), .tip-grid article:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quick-route:last-child, .tip-grid article:last-child { border-bottom: 0; }
  .quick-route h3 { margin-top: 36px; }
  .place-card { grid-template-columns: 58px 1fr; }
  .timeline { padding-top: 28px; }
  .timeline::after { top: 56px; }
  .timeline span { width: 38px; height: 38px; border-width: 5px; font-size: 10px; }
  .place-content { padding: 28px 18px 28px 6px; }
  .place-title-row { flex-direction: column; }
  .place-card h3 { font-size: 29px; }
  .place-intro { font-size: 15px; }
  .link-button { min-height: 42px; padding: 0 14px; }
  .food-card { min-height: auto; padding: 28px; }
  .food-intro { min-height: auto; }
  .memory-note { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .local-grid { grid-template-columns: 1fr; }
  .local-card { min-height: auto; padding: 26px; }
  .local-intro { min-height: auto; }
  .getty-note { grid-template-columns: 1fr; gap: 8px; }
  footer { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
