:root {
  --ink: #17201d;
  --muted: #69736e;
  --paper: #f3f0e8;
  --paper-deep: #e5e0d3;
  --forest: #163c33;
  --forest-dark: #102721;
  --gold: #d39b3b;
  --rust: #a95533;
  --line: rgba(23, 32, 29, .16);
  --white: #fffdf8;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--white); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.hero { min-height: 760px; height: 94vh; position: relative; color: #fff; background: var(--forest-dark) url("assets/altai-autumn-hero.webp") center/cover no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 17, .32), transparent 35%, rgba(7, 18, 15, .3)); pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9, 25, 21, .92) 0%, rgba(9, 25, 21, .62) 34%, rgba(9, 25, 21, .08) 68%); }
.topbar { position: relative; z-index: 4; width: min(calc(100% - 64px), var(--max)); height: 92px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.26); }
.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: .8rem; }
.wordmark span { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .12em; }
.wordmark small { opacity: .62; font-size: .7rem; letter-spacing: .18em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; font-size: .85rem; opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.hero-copy { position: relative; z-index: 3; width: min(calc(100% - 64px), var(--max)); height: calc(100% - 92px); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 3.5rem; }
.eyebrow, .kicker { margin: 0 0 1rem; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .23em; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(4.2rem, 9vw, 8.5rem); line-height: .98; letter-spacing: -.05em; font-weight: 700; }
.hero-lead { max-width: 520px; margin: 1.6rem 0; font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.8; color: rgba(255,255,255,.84); }
.hero-facts { display: flex; gap: 2.2rem; margin: .4rem 0 2rem; }
.hero-facts span { font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-facts strong { color: #fff; font-size: 1.08rem; }
.primary-btn { display: inline-flex; align-items: center; gap: 1.6rem; padding: .85rem 1.1rem .85rem 1.35rem; color: var(--ink); background: var(--gold); border-radius: 2px; text-decoration: none; font-size: .85rem; font-weight: 700; }
.primary-btn span { border-left: 1px solid rgba(0,0,0,.25); padding-left: 1rem; }
.hero-note { position: absolute; z-index: 3; right: max(32px, calc((100vw - var(--max))/2)); bottom: 2.5rem; margin: 0; writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .22em; color: rgba(255,255,255,.65); }
.reveal { animation: enter 1s cubic-bezier(.16,1,.3,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.decision-bar { width: min(calc(100% - 64px), var(--max)); margin: -34px auto 0; padding: 1.3rem 1.5rem; position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #fff; background: var(--forest); box-shadow: 0 15px 40px rgba(16,39,33,.2); }
.decision-bar > div { display: flex; align-items: center; gap: 1rem; }
.decision-bar p { margin: 0; font-size: .9rem; }
.decision-bar a { flex: 0 0 auto; color: #dfb668; font-size: .78rem; text-decoration: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #dcb361; box-shadow: 0 0 0 5px rgba(220,179,97,.13); }

.section { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 650px; margin-bottom: 3.2rem; }
.section-heading h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(2.25rem, 4.5vw, 4rem); line-height: 1.18; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); margin: 0; }
.split-heading { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.split-heading > div:first-child { max-width: 700px; }

.route-map { background: var(--white); border: 1px solid var(--line); }
.route-map svg { display: block; width: 100%; height: auto; min-height: 390px; background: radial-gradient(circle at 38% 12%, rgba(211,155,59,.08), transparent 26%), linear-gradient(rgba(22,60,51,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(22,60,51,.035) 1px, transparent 1px); background-size: auto, 48px 48px, 48px 48px; }
.map-road { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 9; }
.map-road-shadow { stroke: rgba(22,60,51,.08); stroke-width: 16; stroke-dasharray: none; }
.map-point circle { fill: var(--paper); stroke: var(--rust); stroke-width: 5; }
.map-point text { text-anchor: middle; font-size: 18px; font-family: var(--serif); font-weight: 700; fill: var(--ink); }
.map-point .map-day { fill: var(--muted); font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .08em; }
.route-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.route-metrics div { padding: 1.5rem 2rem; border-right: 1px solid var(--line); }
.route-metrics div:last-child { border-right: 0; }
.route-metrics span, .route-metrics small { display: block; color: var(--muted); font-size: .72rem; }
.route-metrics strong { display: block; margin: .25rem 0 .15rem; font-family: var(--serif); font-size: 1.45rem; }

.itinerary-section { padding-top: 50px; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.filter { padding: .55rem .85rem; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.filter:hover, .filter.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }
.days { border-top: 1px solid var(--line); }
.day-card { display: grid; grid-template-columns: 130px 1fr; border-bottom: 1px solid var(--line); padding: 2.2rem 0; transition: opacity .25s, transform .25s; }
.day-card.is-hidden { display: none; }
.day-card.featured { background: rgba(255,253,248,.55); box-shadow: 24px 0 0 rgba(255,253,248,.55), -24px 0 0 rgba(255,253,248,.55); }
.day-index { display: flex; flex-direction: column; padding-top: .2rem; }
.day-index span { color: var(--rust); font-size: .62rem; letter-spacing: .18em; font-weight: 800; }
.day-index strong { font-family: var(--serif); font-size: 3.25rem; line-height: 1; font-weight: 400; }
.day-index small { margin-top: .4rem; color: var(--muted); font-size: .72rem; }
.day-title { display: flex; justify-content: space-between; gap: 1rem; }
.day-title p { margin: 0 0 .2rem; color: var(--rust); font-size: .78rem; font-weight: 700; }
.day-title h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.35; }
.pace { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid; font-size: .7rem; }
.pace.easy { color: var(--forest); background: rgba(22,60,51,.06); }
.pace.medium { color: #8a6526; background: rgba(211,155,59,.08); }
.pace.long { color: var(--rust); background: rgba(169,85,51,.06); }
.day-summary { max-width: 840px; margin: .85rem 0 1.4rem; color: #4c5651; }
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.day-grid div { border-left: 2px solid var(--paper-deep); padding-left: 1rem; }
.day-grid span { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.day-grid p { margin: .25rem 0 0; font-size: .82rem; line-height: 1.6; }

.image-break { min-height: 570px; display: flex; align-items: flex-end; color: #fff; background-position: center; background-size: cover; position: relative; }
.image-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,22,18,.74), transparent 65%); }
.image-break > div { width: min(calc(100% - 64px), var(--max)); margin: 0 auto; padding: 4rem 0; position: relative; z-index: 1; }
.image-break p { margin: 0; color: #e6bd70; font-size: .75rem; letter-spacing: .15em; }
.image-break h2 { max-width: 720px; margin: .4rem 0 0; font-family: var(--serif); font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.15; }
.heritage-break { background-image: url("assets/turpan-heritage.webp"); }
.food-break { background-image: url("assets/xinjiang-table.webp"); }

.stay-table { border-top: 2px solid var(--ink); }
.stay-row { display: grid; grid-template-columns: 1.1fr 1.7fr 2fr 1fr; gap: 1rem; align-items: center; padding: 1.15rem .5rem; border-bottom: 1px solid var(--line); font-size: .83rem; }
.stay-row > span:last-child { text-align: right; font-family: var(--serif); font-weight: 700; }
.stay-row strong, .stay-row small { display: block; }
.stay-row small { color: var(--muted); }
.stay-head { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.stay-head > span:last-child { font-family: inherit; font-weight: inherit; }
.fine-print { margin: 1.2rem 0 0; color: var(--muted); font-size: .72rem; }

.drive-section { width: 100%; max-width: none; padding: 110px max(32px, calc((100vw - var(--max))/2)); background: var(--forest-dark); color: #fff; }
.light-heading .kicker { color: #dbac57; }
.light-heading h2 { color: #fff; }
.rule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.rule-grid article { min-height: 235px; padding: 1.7rem; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.rule-grid span { color: #d7aa57; font-family: var(--serif); font-size: .8rem; }
.rule-grid h3 { margin: 2rem 0 .65rem; font-family: var(--serif); font-size: 1.25rem; }
.rule-grid p { margin: 0; color: rgba(255,255,255,.64); font-size: .82rem; }
.drive-callout { margin-top: 1.3rem; display: flex; align-items: center; gap: 2rem; padding: 1.2rem 1.5rem; background: #d5a653; color: var(--ink); }
.drive-callout strong { flex: 0 0 auto; }
.drive-callout p { margin: 0; font-size: .82rem; }

.food-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.food-grid article { padding: 1.5rem; border: 1px solid var(--line); background: rgba(255,253,248,.45); }
.food-grid article > p { margin: 0; color: var(--rust); font-size: .72rem; font-weight: 800; }
.food-grid h3 { min-height: 3.1rem; margin: .4rem 0 1.2rem; font-family: var(--serif); font-size: 1.25rem; }
.food-grid ul { min-height: 8rem; margin: 0 0 1rem; padding: 0; list-style: none; color: #4c5651; font-size: .82rem; }
.food-grid li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.food-grid small { color: var(--muted); }

.budget-section { border-top: 1px solid var(--line); }
.budget-note { max-width: 320px; color: var(--muted); font-size: .78rem; }
.budget-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: center; }
.budget-total span, .budget-total small { display: block; color: var(--muted); }
.budget-total strong { display: block; margin: .5rem 0; font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4rem); line-height: 1; }
.budget-total em { padding: 0 .2rem; color: var(--rust); font-style: normal; }
.budget-bars > div { margin-bottom: 1rem; }
.budget-bars p { display: flex; justify-content: space-between; margin: 0 0 .45rem; font-size: .78rem; }
.budget-bars i { display: block; width: 100%; height: 5px; background: var(--paper-deep); position: relative; }
.budget-bars i::after { content: ""; position: absolute; left: 0; top: 0; width: var(--w); height: 100%; background: var(--forest); }

.pack-section { padding-top: 40px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; border-top: 2px solid var(--ink); }
.checklist label { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .85rem; }
.checklist input { appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid var(--ink); display: grid; place-items: center; }
.checklist input:checked { background: var(--forest); border-color: var(--forest); }
.checklist input:checked::after { content: "✓"; color: #fff; font-size: .72rem; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.progress-wrap { margin-top: 1.5rem; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .75rem; color: var(--muted); }
.progress { height: 8px; background: var(--paper-deep); overflow: hidden; }
.progress i { display: block; width: 0; height: 100%; background: var(--rust); transition: width .3s ease; }

.sources-section { padding-top: 45px; }
.source-list { border-top: 2px solid var(--ink); }
.source-list a { display: grid; grid-template-columns: 80px 1fr 30px; align-items: center; gap: 1rem; padding: 1rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-list a:hover { background: rgba(255,253,248,.65); }
.source-list span { color: var(--rust); font-size: .7rem; }
.source-list strong { font-size: .85rem; }
.source-list i { text-align: right; color: var(--muted); font-style: normal; }

footer { padding: 5rem max(32px, calc((100vw - var(--max))/2)); display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; color: #fff; background: var(--ink); }
footer p { max-width: 640px; margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.25; }
footer a { text-decoration: none; color: rgba(255,255,255,.65); font-size: .78rem; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  html { scroll-padding-top: 20px; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .hero { min-height: 660px; height: 88svh; background-position: 61% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(9,25,21,.85), rgba(9,25,21,.12)), linear-gradient(0deg, rgba(9,25,21,.5), transparent 65%); }
  .topbar, .hero-copy, .decision-bar, .section, .image-break > div { width: calc(100% - 36px); }
  .topbar { height: 72px; }
  .nav-links { display: none; }
  .hero-copy { height: calc(100% - 72px); padding-bottom: 1rem; justify-content: flex-end; }
  .hero h1 { font-size: clamp(3.3rem, 15vw, 5rem); white-space: nowrap; }
  .hero-lead { font-size: 1rem; margin: 1.1rem 0; }
  .hero-facts { gap: 1.2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
  .hero-note { display: none; }
  .decision-bar { margin-top: 0; flex-direction: column; align-items: flex-start; gap: .7rem; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 2.2rem; }
  .section-heading h2 { font-size: 2.35rem; }
  .split-heading { display: block; }
  .filters { justify-content: flex-start; margin-top: 1.3rem; }
  .route-map svg { min-height: 290px; }
  .route-metrics { grid-template-columns: 1fr; }
  .route-metrics div { border-right: 0; border-bottom: 1px solid var(--line); }
  .route-metrics div:last-child { border-bottom: 0; }
  .day-card { grid-template-columns: 72px 1fr; padding: 1.7rem 0; }
  .day-index strong { font-size: 2.35rem; }
  .day-grid { grid-template-columns: 1fr; }
  .day-grid div { padding: .4rem 0 .4rem .9rem; }
  .image-break { min-height: 440px; }
  .stay-row { grid-template-columns: 1fr 1.6fr; gap: .35rem 1rem; padding: 1.1rem .25rem; }
  .stay-row > span:nth-child(3) { grid-column: 2; color: var(--muted); }
  .stay-row > span:last-child { grid-column: 2; text-align: left; color: var(--rust); }
  .stay-head { display: none; }
  .drive-section { padding: 76px 18px; }
  .rule-grid { grid-template-columns: 1fr 1fr; }
  .rule-grid article { min-height: 220px; }
  .food-grid { grid-template-columns: 1fr 1fr; }
  .budget-layout { grid-template-columns: 1fr; gap: 3rem; }
  .checklist { grid-template-columns: 1fr; }
  footer { padding: 4rem 18px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(4, 1fr); left: 0; right: 0; bottom: 0; z-index: 50; padding-bottom: env(safe-area-inset-bottom); background: rgba(16,39,33,.96); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.14); }
  .mobile-nav a { padding: .8rem .2rem; color: rgba(255,255,255,.76); text-align: center; text-decoration: none; font-size: .72rem; }
}

@media (max-width: 540px) {
  .wordmark small { display: none; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-facts span:last-child { grid-column: 1 / -1; }
  .decision-bar p { font-size: .8rem; }
  .route-map { margin-left: -18px; margin-right: -18px; }
  .route-map svg { height: 280px; min-height: 0; }
  .map-point text { font-size: 24px; }
  .map-point .map-day { font-size: 15px; }
  .day-card { grid-template-columns: 58px 1fr; }
  .day-index span { font-size: .55rem; }
  .day-index strong { font-size: 1.9rem; }
  .day-index small { font-size: .62rem; }
  .day-title h3 { font-size: 1.25rem; }
  .pace { width: 39px; height: 39px; }
  .day-summary { font-size: .87rem; }
  .day-card.featured { box-shadow: 18px 0 0 rgba(255,253,248,.55), -18px 0 0 rgba(255,253,248,.55); }
  .image-break { min-height: 360px; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-grid article { min-height: auto; }
  .rule-grid h3 { margin-top: 1rem; }
  .drive-callout { display: block; }
  .drive-callout p { margin-top: .5rem; }
  .food-grid { grid-template-columns: 1fr; }
  .food-grid h3, .food-grid ul { min-height: auto; }
  .source-list a { grid-template-columns: 56px 1fr 20px; }
  footer { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  .topbar, .mobile-nav, .filters, .primary-btn, .hero-note { display: none !important; }
  body { background: #fff; padding: 0; }
  .hero { height: 360px; min-height: 0; }
  .hero-copy { height: 100%; }
  .section { padding: 45px 0; }
  .day-card, .stay-row, .rule-grid article { break-inside: avoid; }
  .drive-section { padding-left: 4%; padding-right: 4%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
