/* Cathaybound — travel editorial design system
   Palette: rice-paper ground, warm ink, vermilion accent, jade & brass support
   Type: Fraunces (display serif) + Inter (UI/body), CJK via system fonts
*/

/* ---------- tokens ---------- */
:root {
  --paper: #FBF9F5;
  --paper-2: #F4F0E8;
  --paper-3: #EDE7DB;
  --ink: #191512;
  --ink-2: #3D3630;
  --ink-3: #6B6259;
  --ink-4: #9A9086;
  --line: #DFD7C8;
  --line-2: #CFC4B1;

  --vermilion: #C2402B;
  --vermilion-d: #9E3122;
  --jade: #2F6B5E;
  --brass: #A8813A;

  --ff-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif JP", "Noto Serif SC", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
             "PingFang SC", "Hiragino Sans", "Yu Gothic", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --ff-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1240px;
  --measure: 68ch;
  --nav-h: 68px;
  --r: 4px;
  --shadow-s: 0 1px 2px rgba(25,21,18,.05), 0 2px 8px rgba(25,21,18,.04);
  --shadow-m: 0 2px 4px rgba(25,21,18,.04), 0 12px 28px rgba(25,21,18,.07);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ff-body); font-size: 17px; line-height: 1.68;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.14; letter-spacing: -.015em; margin: 0; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.measure { max-width: var(--measure); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 999; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(251,249,245,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: baseline; gap: 9px; flex: none; }
.brand-mark {
  font-family: var(--ff-display); font-size: 25px; font-weight: 600; letter-spacing: -.02em;
  color: var(--ink);
}
.brand-mark em { font-style: normal; color: var(--vermilion); }
.brand-sub { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 6px 0;
  border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover { color: var(--vermilion); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--vermilion); }
.lang-toggle { flex: none; position: relative; }
.lang-btn {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px;
  display: inline-flex; align-items: center; gap: 7px;
}
.lang-btn:hover { border-color: var(--ink-3); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; z-index: 70;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-m); padding: 7px; display: none;
  grid-template-columns: 1fr 1fr; gap: 2px;
}
.lang-menu[data-open="1"] { display: grid; }
.lang-menu a { padding: 8px 10px; border-radius: 3px; font-size: 14px; color: var(--ink-2); }
.lang-menu a:hover { background: var(--paper-2); color: var(--vermilion); }
.lang-menu a[aria-current="true"] { color: var(--vermilion); font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,8,.55) 0%, rgba(12,10,8,.15) 34%, rgba(12,10,8,.72) 82%, rgba(12,10,8,.93) 100%);
}
.hero-in { position: relative; z-index: 2; padding: 0 0 62px; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: #F3D9C6; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--vermilion); }
.hero h1 {
  color: #FFFDF9; font-size: clamp(2.35rem, 6.1vw, 4.6rem); max-width: 20ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.35); font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero-lede {
  color: #E8DFD2; font-size: clamp(1.02rem, 1.55vw, 1.22rem); max-width: 54ch;
  margin: 22px 0 0; line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 3px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; transition: transform .18s var(--ease), background .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--vermilion); color: #FFF; }
.btn-primary:hover { background: var(--vermilion-d); }
.btn-ghost { background: rgba(255,255,255,.1); color: #FFF; border: 1px solid rgba(255,255,255,.42); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.hero-credit {
  position: absolute; right: 28px; bottom: 14px; z-index: 2; font-size: 11px; color: rgba(255,255,255,.5);
}

/* ---------- section scaffolding ---------- */
.section { padding: 78px 0; }
.section-tight { padding: 52px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase;
  color: var(--vermilion); margin-bottom: 12px; display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); max-width: 28ch; }
.section-head p { color: var(--ink-3); margin: 10px 0 0; max-width: 52ch; font-size: 16px; }
.link-more { font-size: 14.5px; font-weight: 600; color: var(--vermilion); white-space: nowrap; border-bottom: 1px solid transparent; }
.link-more:hover { border-bottom-color: var(--vermilion); }

/* ---------- destination cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease); }
.card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-tag {
  position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(25,21,18,.74); color: #FFF;
  font-size: 10.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 19px 20px 22px; }
.card-body h3 { font-size: 1.24rem; margin-bottom: 8px; }
.card:hover .card-body h3 { color: var(--vermilion-d); }
.card-body p { color: var(--ink-3); font-size: 15px; margin: 0; line-height: 1.58; }
.card-meta {
  margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-4); display: flex; gap: 14px; flex-wrap: wrap;
}

/* ---------- guide list rows ---------- */
.rowlist { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 152px 1fr auto; gap: 26px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .2s var(--ease);
}
.row:hover { background: var(--paper-2); }
.row-num { font-family: var(--ff-display); font-size: 15px; color: var(--ink-4); letter-spacing: .08em; }
.row-main h3 { font-size: 1.2rem; margin-bottom: 5px; }
.row:hover .row-main h3 { color: var(--vermilion-d); }
.row-main p { margin: 0; color: var(--ink-3); font-size: 15px; }
.row-arrow { color: var(--ink-4); font-size: 20px; transition: transform .2s var(--ease), color .2s var(--ease); }
.row:hover .row-arrow { color: var(--vermilion); transform: translateX(4px); }

/* ---------- article ---------- */
.article-head { padding: 56px 0 0; }
.crumbs { font-size: 13.5px; color: var(--ink-4); margin-bottom: 26px; }
.crumbs a:hover { color: var(--vermilion); }
.crumbs span { margin: 0 7px; color: var(--line-2); }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); max-width: 26ch; font-variation-settings: "SOFT" 40, "WONK" 1; }
.standfirst { font-size: 1.2rem; line-height: 1.58; color: var(--ink-2); max-width: 56ch; margin: 20px 0 0; }
.byline {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 0;
  padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
.byline b { color: var(--ink); font-weight: 600; }
.byline .dot { color: var(--line-2); }

.figure { margin: 40px 0; }
.figure-wide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.figure img { width: 100%; border-radius: var(--r); }
.figure figcaption { font-size: 13px; color: var(--ink-4); margin-top: 10px; line-height: 1.5; }

.prose { padding: 46px 0 0; }
.prose > * { max-width: var(--measure); }
.prose h2 { font-size: 1.85rem; margin: 2.3em 0 .7em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h3 { font-size: 1.32rem; margin: 1.9em 0 .55em; font-family: var(--ff-body); font-weight: 650; letter-spacing: -.005em; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--vermilion-d); border-bottom: 1px solid rgba(194,64,43,.32); }
.prose a:hover { border-bottom-color: var(--vermilion-d); }
.prose ul li { color: var(--ink-2); }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--vermilion);
  font-family: var(--ff-display); font-size: 1.22rem; line-height: 1.5; color: var(--ink);
}
.prose blockquote p:last-child { margin: 0; }
.prose .lead::first-letter {
  float: left; font-family: var(--ff-display); font-size: 3.5em; line-height: .82;
  padding: .06em .09em 0 0; color: var(--vermilion);
}

/* data table */
.table-wrap { overflow-x: auto; margin: 30px 0; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #FFF; }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--paper-2); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper-2); }
td.num { font-variant-numeric: tabular-nums; }

/* callouts */
.callout { border: 1px solid var(--line); border-left: 3px solid var(--brass); background: var(--paper-2); padding: 18px 20px; border-radius: 0 var(--r) var(--r) 0; margin: 28px 0; }
.callout-warn { border-left-color: var(--vermilion); background: #FDF3F0; }
.callout-tip { border-left-color: var(--jade); background: #F1F6F4; }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label { font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; display: block; }

/* faq */
.faq { margin: 34px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 0; }
.faq summary {
  cursor: pointer; padding: 16px 34px 16px 0; font-weight: 600; font-size: 16.5px; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 24px; width: 8px; height: 8px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-a { padding: 0 0 18px; color: var(--ink-2); }
.faq .faq-a p:last-child { margin: 0; }

/* key facts rail */
.facts { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 30px 0; }
.facts h2, .facts h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-family: var(--ff-body); margin-bottom: 14px; font-weight: 700; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.facts dt { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 14.5px; color: var(--ink-3); }

/* ---------- related / hub lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.chip {
  font-size: 14px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-2); background: var(--paper); transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--vermilion); color: var(--vermilion); background: #FFF; }

.related { background: var(--paper-2); border-top: 1px solid var(--line); padding: 62px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #D8CFC2; padding: 62px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { color: #FFF; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; font-family: var(--ff-body); font-weight: 700; margin-bottom: 15px; }
.footer a { color: #D8CFC2; font-size: 14.5px; }
.footer a:hover { color: #FFF; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer-brand .brand-mark { color: #FFF; font-size: 27px; }
.footer-brand p { font-size: 14.5px; color: #9A9086; margin-top: 13px; max-width: 42ch; line-height: 1.6; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #8C8377;
}
.footer-bottom a:hover { color: #D8CFC2; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-3, .grid-2, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 100px 1fr auto; gap: 16px; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .nav-in { gap: 14px; }
  .nav-links { display: none; }
  .hero { min-height: 66vh; }
  .hero-in { padding-bottom: 44px; }
  .grid-3, .grid-2, .grid-4, .related-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose .lead::first-letter { font-size: 3em; }
}

/* ---------- print & motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}
@media print {
  .nav, .footer, .related, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
}
