/* ============================================================
   Private China Journeys — site design system
   Direction: European editorial luxury. Restraint over flash.
   Typography-first, warm neutrals, hairline rules, generous air.
   ============================================================ */

:root {
  --bg: #f6f2ea;
  --bg-raised: #fffcf6;
  --bg-deep: #232a26;
  --ink: #211f1b;
  --ink-2: #57534a;
  --ink-3: #8a847a;
  --line: rgba(33, 31, 27, 0.14);
  --line-soft: rgba(33, 31, 27, 0.08);
  --brass: #8f6224;
  --brass-deep: #744e1b;
  --sand: #e9dcc2;
  --paper: #fffdf8;
  --error: #8c2f21;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1080px;
  --radius: 10px;
  --shadow-soft: 0 1px 2px rgba(33, 31, 27, 0.05), 0 12px 32px -16px rgba(33, 31, 27, 0.18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
p { margin: 0 0 1em; }

.kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 640px;
}
.measure { max-width: 640px; }
.small { font-size: 14px; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--brass);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.25);
}
.nav-links { display: flex; flex-wrap: nowrap; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--paper) !important;
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
}
/* mid-width: keep the nav on one line by shrinking, then hiding optional links */
@media (max-width: 1180px) and (min-width: 861px) {
  .site-nav .container { gap: 18px; }
  .nav-links { gap: 16px; }
  .brand { font-size: 18px; }
  .nav-cta { padding: 8px 14px; }
}
@media (max-width: 1040px) and (min-width: 861px) {
  .nav-links .nav-hide-mid { display: none; }
}
.nav-cta:hover { background: var(--brass-deep); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { padding: 148px 0 0; }
.hero-art {
  margin-top: clamp(40px, 5vw, 64px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-2);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--brass-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--sand); }

/* ---------- cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.card-lines {
  height: 120px;
  border-radius: 6px;
  margin-bottom: 26px;
}
.card h3 { margin-bottom: 10px; }
.card .meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 12px;
}
.card p { color: var(--ink-2); font-size: 15px; }
.card .link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.card .link span { display: inline-block; transition: transform 0.15s ease; }
.card .link:hover span { transform: translateX(4px); }

/* ---------- bands ---------- */
.band-deep {
  background: var(--bg-deep);
  color: #ede7da;
}
.band-deep .kicker { color: var(--sand); }
.band-deep h2 { color: #faf6ec; }
.band-deep p, .band-deep .lede { color: rgba(237, 231, 218, 0.78); }
.band-deep .rule { border-color: rgba(237, 231, 218, 0.18); }

.band-raised { background: var(--bg-raised); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
@media (max-width: 860px) { .fact-row { grid-template-columns: 1fr; } }
.fact {
  border-top: 1px solid rgba(237, 231, 218, 0.22);
  padding-top: 20px;
}
.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 480;
  color: #faf6ec;
  margin-bottom: 8px;
}
.fact span { font-size: 14px; color: rgba(237, 231, 218, 0.68); line-height: 1.55; display: block; }

/* contrast variant for light backgrounds */
.section:not(.band-deep) .fact { border-top-color: var(--line); }
.section:not(.band-deep) .fact strong { color: var(--ink); }
.section:not(.band-deep) .fact span { color: var(--ink-2); }

/* ---------- steps ---------- */
.steps { counter-reset: step; margin: 48px 0 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brass);
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- two-column editorial ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .cols-2 { grid-template-columns: 1fr; } }
.h-list { list-style: none; padding: 0; margin: 24px 0 0; }
.h-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.h-list li strong { color: var(--ink); font-weight: 600; }
.h-list svg { stroke: var(--brass); flex: 0 0 auto; margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 480;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--brass);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 640px; }

/* ---------- itinerary ---------- */
.journey-hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 34px;
  margin: 26px 0 10px;
  font-size: 14px; color: var(--ink-2);
}
.journey-hero-meta strong { color: var(--ink); font-weight: 600; }
.day-list { margin: 20px 0 0; padding: 0; list-style: none; }
.day-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.day-list .day-no {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: 4px;
}
.day-list h3 { font-size: 19px; margin-bottom: 6px; }
.day-list p { font-size: 15px; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .day-list li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- tables ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: var(--bg-raised); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
th { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; background: rgba(33, 31, 27, 0.025); }
tr:last-child td { border-bottom: 0; }
td strong { font-weight: 600; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(143, 98, 36, 0.14);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(237, 231, 218, 0.72); padding: 64px 0 40px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 231, 218, 0.5);
  margin: 0 0 14px;
}
.site-footer a { color: #ede7da; text-decoration: none; display: block; padding: 4px 0; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #faf6ec; margin-bottom: 14px; }
.foot-note {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(237, 231, 218, 0.16);
  font-size: 13px;
  color: rgba(237, 231, 218, 0.45);
  display: flex; flex-wrap: wrap; gap: 8px 28px;
}

/* ---------- misc ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--bg-raised);
  border-radius: 8px;
  padding: 22px 26px;
  font-size: 15px;
  color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 40px 0; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

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

/* ---------- guides hub ---------- */
.guide-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .guide-card-row { grid-template-columns: 1fr; } }
.guide-card {
  display: block;
  text-decoration: none;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { border-color: var(--brass); box-shadow: var(--shadow-soft); }
.guide-card h3 { font-size: 21px; margin-bottom: 8px; }
.guide-card p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }
.guide-card .guide-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass); display: block; margin-bottom: 12px;
}
.guide-card .read-more { font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* ---------- article (guides) ---------- */
.article { max-width: 720px; }
.article h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.9em; }
.article h3 { margin-top: 1.5em; }
.article p, .article li { font-size: 16.5px; line-height: 1.75; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1.1em; }
.article li { margin-bottom: 8px; }
.article li strong, .article p strong { font-weight: 600; }
.article blockquote {
  margin: 1.4em 0; padding: 16px 22px;
  border-left: 3px solid var(--brass);
  background: var(--bg-raised);
  border-radius: 0 8px 8px 0;
  color: var(--ink-2); font-size: 15.5px;
}
.article .table-wrap { margin: 1.4em 0; }
.article table { font-size: 14px; }
.article hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.2em 0; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 22px 0 8px; font-size: 13.5px; color: var(--ink-3);
}
.article-meta .verified {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brass-deep); font-weight: 600;
}
.article-meta .verified::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass);
}
.article-cta {
  margin-top: 44px; padding: 28px 30px;
  background: var(--bg-deep); color: #ede7da;
  border-radius: var(--radius);
}
.article-cta h3 { color: #faf6ec; font-size: 22px; }
.article-cta p { color: rgba(237,231,218,0.78); font-size: 15px; margin-bottom: 18px; }
.article-cta .btn-light { background: var(--paper); color: var(--ink); }

/* key facts box (AI-quotable summary) */
.key-facts {
  margin: 1.6em 0 2em;
  padding: 24px 28px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: 8px;
}
.key-facts h2 {
  font-size: 13px; font-family: var(--font-body); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 14px;
}
.key-facts ul { margin: 0; padding: 0; list-style: none; }
.key-facts li {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px;
  padding: 8px 0; border-top: 1px solid var(--line-soft);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.key-facts li:first-child { border-top: 0; }
.key-facts li b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .key-facts li { grid-template-columns: 1fr; gap: 2px; } }

/* related guides */
.related-guides { margin-top: 40px; }
.related-guides h2 { font-size: 22px; }
.related-guides ul { list-style: none; padding: 0; margin: 10px 0 0; }
.related-guides li { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.related-guides a { text-decoration: none; font-weight: 600; font-size: 15.5px; }
.related-guides a:hover { color: var(--brass); }
.related-guides span { display: block; font-size: 14px; color: var(--ink-2); font-weight: 400; margin-top: 3px; }

.fact .mark { display: block; margin: 8px 0 10px; font-weight: 600; font-size: 14.5px; }
.band-deep .fact .mark { color: #faf6ec; }

/* scenario grid (what-happens-if) */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
@media (max-width: 860px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario {
  background: var(--bg-raised); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px 28px;
}
.scenario h3 { font-size: 19px; margin-bottom: 10px; }
.scenario p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.scenario .s-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brass); display: block; margin-bottom: 12px;
}



/* mobile nav menu (no-JS details pattern) */
.nav-menu { display: none; position: relative; margin-left: 12px; }
.nav-menu summary {
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { border-color: var(--ink); color: var(--ink); }
.nav-menu .nav-menu-items {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 10px; min-width: 220px;
}
.nav-menu .nav-menu-items a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14.5px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-menu .nav-menu-items a:hover { background: var(--bg); }
.nav-menu .nav-menu-items a.nav-cta { background: none; color: var(--brass-deep) !important; padding-left: 14px; }
@media (max-width: 860px) {
  .nav-menu { display: block; }
}

/* mobile table density */
@media (max-width: 640px) {
  .table-wrap table { font-size: 13px; min-width: 560px; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }
}
