@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --primary: #9c3a2f;
  --primary-hover: #7f2e25;
  --ink: #1c1915;
  --muted: #6b655c;
  --bg: #f4f0e8;
  --paper: #fbf8f3;
  --card: #fffcf7;
  --border: #e4ddd2;
  --sand: #c9b89a;
  --footer: #161310;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 25, 21, 0.06);
  --shadow-hover: 0 18px 40px rgba(28, 25, 21, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Times New Roman", serif;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  background: rgba(251, 248, 243, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  position: relative;
  gap: 16px;
}
.logo {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--primary);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-cta:hover { background: var(--primary-hover) !important; text-decoration: none; }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger span::before,
.nav-burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--primary); outline-offset: 3px; }
.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Home hero */
body > .container-wide:first-of-type {
  max-width: none;
  padding: 0;
}
.hero { padding: 72px 24px 56px; text-align: center; }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  margin-bottom: 18px;
  font-weight: 600;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.hero .sub {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-bg {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 28px 96px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  z-index: 0;
  pointer-events: none;
  transform: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 19, 16, 0.42) 0%, rgba(22, 19, 16, 0.28) 45%, rgba(22, 19, 16, 0.55) 100%);
  z-index: 1;
}
.hero-bg > :not(.hero-photo) { position: relative; z-index: 2; }
.hero-bg h1,
.hero-bg .sub { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28); }
.hero-bg .sub { color: rgba(255, 248, 240, 0.9); }
.hero-bg .trust { color: rgba(255, 248, 240, 0.72); }
.hero-bg .btn-outline {
  border-color: rgba(255, 255, 255, 0.78);
  color: #fff;
  background: transparent;
}
.hero-bg .btn-outline:hover {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.trust {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Article */
article { padding: 28px 0 56px; }
article h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 22px; letter-spacing: 0.02em; }
.lede {
  font-size: 19px;
  color: #3a352f;
  background: var(--card);
  border-left: 3px solid var(--primary);
  padding: 22px 26px;
  border-radius: 0 16px 16px 0;
  margin: 8px 0 36px;
  box-shadow: var(--shadow);
}
article h2 { font-size: 26px; margin: 44px 0 16px; }
article h3 { font-size: 19px; margin: 28px 0 10px; font-family: "Figtree", sans-serif; font-weight: 600; letter-spacing: -0.01em; }
article p { margin-bottom: 16px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 8px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  background: var(--card);
  font-size: 15.5px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
th {
  background: #efe8dc;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a433c;
}
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #faf6ef; }

blockquote {
  border-left: 3px solid var(--primary);
  padding: 14px 20px;
  margin: 22px 0;
  background: var(--card);
  border-radius: 0 12px 12px 0;
  font-family: "Fraunces", serif;
  font-style: italic;
  color: #3a352f;
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: #4a433c; }

/* Cards & CTA */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin: 36px 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card h3 { margin: 0 22px 8px; font-size: 21px; }
.card p { color: #5c564e; font-size: 15.5px; margin: 0 22px 8px; }
.card p:last-child { margin-bottom: 0; }
.card:not(:has(.card-img)) { padding: 26px 24px; }
.card:not(:has(.card-img)) h3,
.card:not(:has(.card-img)) p { margin-left: 0; margin-right: 0; }

.cta-band {
  background: linear-gradient(160deg, #8f342a 0%, #6d241c 100%);
  color: #fff;
  border-radius: 20px;
  padding: 52px 36px;
  text-align: center;
  margin: 48px 0 16px;
  box-shadow: 0 20px 50px rgba(109, 36, 28, 0.22);
}
.cta-band h2 { color: #fff; margin-bottom: 12px; font-size: clamp(26px, 3vw, 34px); }
.cta-band p { color: #f3d6d0; margin-bottom: 24px; font-size: 18px; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #fff6f1; color: var(--primary-hover); }
.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.resource-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  margin: 36px 0 8px;
  box-shadow: var(--shadow);
}
.resource-box h3 { margin-bottom: 10px; }

/* Footer */
footer {
  background: var(--footer);
  color: #b7aea3;
  margin-top: 72px;
  padding: 48px 0 36px;
  font-size: 14px;
}
footer a { color: #e8e0d6; }
footer a:hover { color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.small { font-size: 14px; color: var(--muted); }

img { max-width: 100%; height: auto; border-radius: 10px; }

.post-hero {
  width: calc(100% + 44px);
  max-width: none;
  margin: 8px -22px 28px;
  border-radius: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  height: auto;
  max-height: 460px;
}
@media (min-width: 780px) {
  .post-hero {
    width: calc(100% + 160px);
    margin: 12px -80px 36px;
    border-radius: 18px;
    max-height: 480px;
    box-shadow: var(--shadow-hover);
  }
}

.card-img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  border-radius: 0;
  margin: 0 0 18px;
  display: block;
  transition: transform 0.45s ease;
}
.card:hover .card-img { transform: scale(1.04); }

img[src*="hangzhou.jpg"],
img[src*="longmen.jpg"],
img[src*="panda.jpg"],
img[src*="hotpot.jpg"] {
  object-position: center 28%;
}
img[src*="greatwall.jpg"] { object-position: center 48%; }
img[src*="zhangjiajie.jpg"] { object-position: center 42%; }
img[src*="esim.jpg"] { object-position: center 40%; }
img[src*="apps.jpg"] { object-position: center 58%; }
img[src*="payment.jpg"] { object-position: center 45%; }
img[src*="visa.jpg"] { object-position: center 40%; }
img[src*="harbin.jpg"] { object-position: center 62%; }

/* Homepage section titles sitting in container-wide */
.container-wide > h2 {
  text-align: center;
  margin: 12px 0 8px;
  font-size: 32px;
}
body > .container-wide:nth-of-type(2),
body > .container-wide:nth-of-type(3),
body > .container-wide:nth-of-type(4),
body > .container-wide:nth-of-type(5) {
  padding-top: 8px;
  padding-bottom: 8px;
}

iframe[data-tally-src],
iframe[title*="Itinerary"] {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  min-height: 520px;
}

@media (max-width: 860px) {
  .nav-inner { height: 60px; }
  .logo { font-size: 17px; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    z-index: 51;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a {
    font-size: 16px;
    padding: 14px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
    padding: 12px 18px;
  }
  .hero-bg {
    min-height: 0;
    padding: 64px 20px 48px;
  }
  .hero h1 { font-size: clamp(26px, 7vw, 42px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container-wide { padding-left: 16px; padding-right: 16px; }
  .nav-links { left: -16px; right: -16px; padding: 8px 16px 20px; }
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 28px; max-width: none; margin-bottom: 12px; }
  .hero .sub { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .hero-bg {
    min-height: 0;
    padding: 52px 16px 40px;
  }
  .hero-photo { object-position: center 58%; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
    padding: 14px 18px;
  }
  .trust { font-size: 11.5px; letter-spacing: 0.06em; margin-top: 16px; }
  .cards { grid-template-columns: 1fr !important; gap: 16px; margin: 24px 0; }
  .btn { min-height: 44px; }
  .card h3 { font-size: 19px; }
  .cta-band { padding: 32px 18px; border-radius: 16px; margin: 32px 0 8px; }
  .post-hero { max-height: 220px; width: calc(100% + 32px); margin-left: -16px; margin-right: -16px; }
  article { padding: 16px 0 40px; }
  article h2 { font-size: 22px; margin: 32px 0 12px; overflow-wrap: break-word; }
  article h1 { overflow-wrap: break-word; }
  .resource-box { padding: 18px; }
  .footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .lede { font-size: 16.5px; padding: 16px 16px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-inner { flex-direction: column; gap: 16px; }
  footer { margin-top: 40px; padding: 32px 0 28px; }
  .container-wide > h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-img, .btn { transition: none; }
}
