/* ==========================================================================
   锦宾的假期 / Vip Vacations — "Edición Barcelona"
   An editorial travel-journal system: warm paper, one ink, one accent.
   Rules do the structural work. Numbers are set in serif. No shadows.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --paper: #f7f3ea;
  --paper-2: #efe7d8;
  --paper-3: #e4dbc8;

  --ink: #1a1712;
  --ink-2: #453f34;
  --ink-3: #6b6455;

  --line: #d6cbb6;
  --line-2: #b7a98e;

  --accent: #b03a1c;
  --accent-2: #8c2c13;
  --accent-tint: #f3dcd0;
  /* The same accent, lifted so it stays legible on the dark back cover. */
  --accent-on-dark: #d9754d;

  --ground: #191510;
  --ground-2: #221d16;
  --ground-text: #f2eada;
  --ground-muted: #b9ae99;
  --ground-line: #3b3328;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC",
    "Source Han Serif SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", "Segoe UI",
    system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1200px;
  --measure: 34em;

  --step: clamp(1rem, 0.94rem + 0.32vw, 1.12rem);
  --h1: clamp(2.35rem, 1.4rem + 4.4vw, 4.6rem);
  --h2: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --h3: clamp(1.12rem, 1.02rem + 0.5vw, 1.4rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110c;
    --paper-2: #1c1811;
    --paper-3: #272117;

    --ink: #f2eada;
    --ink-2: #d3c9b6;
    --ink-3: #a79c88;

    --line: #332c22;
    --line-2: #4a4030;

    --accent: #e87748;
    --accent-2: #f08d63;
    --accent-tint: #3a2116;

    --ground: #1e1912;
    --ground-2: #262017;
    --ground-text: #f4ecdc;
    --ground-muted: #b8ac96;
    --ground-line: #3d3428;
  }
}

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A whisper of paper grain. Barely there, but it stops the page feeling flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  body::after {
    opacity: 0.035;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--h1);
}

h2 {
  font-size: var(--h2);
}

h3 {
  font-size: var(--h3);
}

p {
  color: var(--ink-2);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* --- Type details --------------------------------------------------------- */

.overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.overline::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.arrow {
  font-family: var(--serif);
  font-size: 1.05em;
  line-height: 1;
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

/* --- Layout --------------------------------------------------------------- */

.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 7.5vw, 118px) 0;
  border-top: 1px solid var(--line);
}

/* Title left, standfirst right. The empty half of the page earns its keep. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head h2 {
  grid-column: 1;
  max-width: 18em;
}

.section-head p {
  grid-column: 2;
  margin-top: 0;
  padding-bottom: 0.4em;
  max-width: 34em;
}

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
}

.skip:focus {
  top: 12px;
}

/* --- Header --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

@supports (background: color-mix(in srgb, red 50%, white)) {
  .header {
    background: color-mix(in srgb, var(--paper) 93%, transparent);
    backdrop-filter: saturate(140%) blur(8px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1;
  color: var(--accent);
  padding-right: 2px;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.brand-en {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.4s var(--ease);
}

.nav a:hover,
.nav a[aria-current] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current]::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.locale {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.locale:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
}

/* --- Buttons & links ------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.button.secondary:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--accent);
}

.header-actions .button {
  padding: 9px 16px;
  font-size: 12.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease);
}

.text-link:hover {
  border-color: var(--accent);
}

.text-link:hover .arrow {
  transform: translate(2px, -2px);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding: clamp(48px, 6vw, 96px) 0 0;
  border-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  padding-bottom: 8px;
}

.hero h1 {
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.hero h1 span {
  color: var(--accent);
}

.hero-description {
  margin-top: 26px;
  max-width: 30em;
  font-size: 1.02em;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-photo {
  position: relative;
  border: 1px solid var(--line-2);
  padding: 8px;
  background: var(--paper);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(28px, 4vw, 52px);
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero-foot .place strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.22em;
}

.hero-foot .place span {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.08em;
  text-transform: none;
  font-family: var(--sans);
  font-size: 11.5px;
}

.hero-foot > span {
  text-align: right;
  max-width: 22em;
  line-height: 1.8;
}

/* --- Destinations --------------------------------------------------------- */

.destination-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(22px, 2.8vw, 40px) clamp(24px, 3vw, 44px);
}

/* One lead story, two smaller ones. Same content, magazine hierarchy. */
.destination-grid .destination-card:first-child {
  grid-row: 1 / span 2;
}

.destination-card {
  display: flex;
  flex-direction: column;
}

.destination-card .image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  height: clamp(175px, 15vw, 230px);
}

.destination-card:first-child .image-wrap {
  flex: 1 1 auto;
  height: auto;
  min-height: clamp(380px, 40vw, 520px);
}

.destination-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.destination-card:hover .image-wrap img {
  transform: scale(1.035);
  filter: saturate(1);
}

.destination-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.destination-label h3 {
  letter-spacing: 0.01em;
}

.destination-card:hover .destination-label h3 {
  color: var(--accent);
}

.destination-card:hover .destination-label .arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

.english {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

.destination-card > p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.destination-more {
  margin-top: 34px;
}

/* --- Journeys / route ledger --------------------------------------------- */

.routes-section {
  background: var(--paper-2);
}

.routes-layout {
  display: block;
}

/* Heading and the route ledger sit side by side; both belong to .routes-intro. */
.routes-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 0 clamp(32px, 4.5vw, 64px);
  align-items: start;
}

.routes-intro h2 {
  grid-column: 1;
  max-width: 16em;
}

.routes-intro p {
  grid-column: 1;
  margin-top: 16px;
  max-width: 36em;
}

/* Panels live in the wrapper that follows .routes-intro. */
.routes-layout > div + div {
  margin-top: clamp(32px, 4vw, 52px);
}

.route-tabs {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-2);
  counter-reset: rt;
  align-self: start;
}

.route-tabs button {
  counter-increment: rt;
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-align: left;
  padding: 15px 0 15px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.route-tabs button::before {
  content: counter(rt, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--line-2);
}

.route-tabs button:hover {
  color: var(--ink);
  background: var(--paper-3);
}

.route-tabs button[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent);
  background: var(--paper);
}

.route-tabs button[aria-selected="true"]::before {
  color: var(--accent);
}

.route-panel {
  margin-top: 0;
}

.route-content {
  max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.2vw, 40px);
}

.route-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.route-topline span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.route-topline strong {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

.route-topline strong small {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-left: 6px;
}

.route-content h3 {
  margin-top: 22px;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: -0.01em;
}

.route-description {
  margin-top: 12px;
  max-width: 38em;
  font-size: 14px;
}

.route-stops {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.route-stop {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.route-stop .num {
  font-family: var(--mono);
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 3px;
}

.route-stop strong {
  display: block;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}

.route-stop p,
.route-stop span:not(.num) {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
}

.route-content .text-link {
  margin-top: 22px;
}

.route-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* --- About ---------------------------------------------------------------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.9);
}

.about-caption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.about-copy > p {
  margin-top: 16px;
  max-width: var(--measure);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
  border-top: 1px solid var(--line-2);
}

.principle {
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
}

.principle + .principle {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.principle .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.principle strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
}

.principle p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
}

.about-copy .text-link {
  margin-top: 28px;
}

/* --- Guides (set as an index, not as cards) ------------------------------- */

.guide-section {
  background: var(--paper-2);
}

.guide-grid {
  border-top: 1px solid var(--line-2);
}

.guide-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: start;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
}

.guide-item:hover {
  background: var(--paper);
  padding-left: 12px;
  padding-right: 12px;
}

.guide-index {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  padding-top: 4px;
  font-variant-numeric: lining-nums;
}

.guide-item h3 {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem);
  letter-spacing: -0.005em;
}

.guide-item p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  max-width: 46em;
}

.guide-item .arrow {
  justify-self: end;
  color: var(--ink-3);
  padding-top: 2px;
}

.guide-item:hover .arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.faq-intro h2 {
  max-width: 12em;
}

.faq-intro p {
  margin-top: 16px;
  max-width: 26em;
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 19px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "+";
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  flex: none;
  width: 14px;
}

.faq-list details[open] summary::before {
  content: "–";
}

.faq-list details p {
  padding: 0 0 22px 30px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 46em;
}

.faq-list summary:hover {
  color: var(--accent);
}

/* --- Contact (back cover) ------------------------------------------------- */

.contact-section {
  --accent: var(--accent-on-dark);
  background: var(--ground);
  color: var(--ground-text);
  border-top: 0;
  padding: clamp(64px, 8vw, 120px) 0;
}

.contact-section .overline {
  color: var(--ground-muted);
}

.contact-section .overline::before {
  background: var(--accent);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact-title h2 {
  color: var(--ground-text);
  max-width: 14em;
  letter-spacing: -0.025em;
}

.contact-title p {
  margin: 18px 0 26px;
  max-width: 26em;
  color: var(--ground-muted);
  font-size: 14px;
}

.contact-section .text-link {
  color: var(--accent);
  border-bottom-color: var(--ground-line);
}

.contact-methods {
  border-top: 1px solid var(--ground-line);
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ground-line);
}

.contact-method span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ground-muted);
  margin-bottom: 6px;
}

.contact-method a {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1rem + 1.3vw, 1.85rem);
  letter-spacing: 0.01em;
  color: var(--ground-text);
  font-variant-numeric: lining-nums tabular-nums;
  transition: color 0.25s var(--ease);
}

.contact-method a:hover {
  color: var(--accent);
}

.copy-button {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ground-muted);
  border-bottom: 1px solid var(--ground-line);
  padding-bottom: 2px;
  flex: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.copy-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.city-note {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ground-muted);
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  --accent: var(--accent-on-dark);
  background: var(--ground);
  color: var(--ground-muted);
  border-top: 1px solid var(--ground-line);
  padding: 44px 0 28px;
  font-size: 12.5px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  align-items: start;
}

.footer .brand-name {
  color: var(--ground-text);
}

.footer .brand-mark {
  border-color: var(--ground-line);
  color: var(--accent);
}

.footer .brand-en {
  color: var(--ground-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  grid-column: 2 / -1;
  justify-content: flex-end;
}

.footer-nav a {
  color: var(--ground-muted);
  font-size: 12.5px;
}

.footer-nav a:hover {
  color: var(--ground-text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--ground-line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ground-muted);
}

.footer-bottom nav {
  display: flex;
  gap: 22px;
}

.footer-bottom a:hover {
  color: var(--ground-text);
}

/* --- Mobile contact bar --------------------------------------------------- */

.mobile-contact {
  display: none;
}

/* --- Toast & dialog ------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 12.5px;
  max-width: calc(100% - 32px);
  width: max-content;
}

.toast:empty {
  display: none;
}

dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 30px 80px rgba(20, 14, 5, 0.18);
}

dialog::backdrop {
  background: rgba(18, 14, 8, 0.55);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-3);
}

.dialog-close:hover {
  color: var(--accent);
}

/* The dialog autofocuses this button; give it a quiet ring, not an input box. */
.dialog-close:focus-visible {
  outline: none;
  background: var(--paper-2);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--paper-2);
}

dialog h2 {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  padding-right: 30px;
}

.dialog-intro {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 32em;
}

.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  margin-top: 26px;
}

.planner-full {
  grid-column: 1 / -1;
}

.planner-grid label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.planner-grid select {
  width: 100%;
  padding: 10px 30px 10px 12px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.planner-grid select:focus {
  border-color: var(--ink);
  outline: none;
}

.planner-grid .button {
  width: 100%;
  justify-content: center;
}

.planner-result {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.planner-summary {
  white-space: pre-line;
  font-size: 13.5px;
  line-height: 1.9;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  padding: 16px 18px;
  color: var(--ink-2);
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.dialog-fine {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--ink-3);
}

/* --- Article pages -------------------------------------------------------- */

.article-shell {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 8vw, 100px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--line-2);
}

.article-header {
  max-width: 46em;
}

.article-header h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem);
  letter-spacing: -0.02em;
}

.article-header > p {
  margin-top: 18px;
  font-size: 1.02em;
  color: var(--ink-2);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.article-image {
  margin: clamp(28px, 4vw, 44px) 0 0;
  border: 1px solid var(--line);
  padding: 7px;
  background: var(--paper);
}

.article-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.93);
}

.article-body {
  max-width: 40em;
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 1.02em;
  line-height: 1.95;
  color: var(--ink-2);
}

.article-body h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.6rem);
  margin: 2.2em 0 0.7em;
  color: var(--ink);
  padding-top: 0.9em;
  border-top: 1px solid var(--line);
}

.article-body h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.article-body h3 {
  font-size: 1.06em;
  margin: 1.8em 0 0.5em;
  color: var(--ink);
}

.article-body p {
  margin: 0 0 1.15em;
  color: var(--ink-2);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}

.article-body li {
  margin: 0.45em 0;
  color: var(--ink-2);
}

.article-body li::marker {
  color: var(--accent);
}

.article-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--line-2);
}

.article-body strong {
  color: var(--ink);
  font-weight: 650;
}

.article-callout {
  margin: 1.8em 0;
  padding: 18px 20px;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-size: 0.95em;
  color: var(--ink-2);
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-sources {
  margin-top: 2.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}

.article-sources a {
  color: var(--accent);
  word-break: break-all;
}

.destination-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line-2);
}

.destination-highlights div {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--line);
}

.destination-highlights div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

/* An odd trailing item owns the full width instead of leaving a hole. */
.destination-highlights div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-left: 0;
  border-left: 0;
}

.destination-highlights h3 {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.destination-highlights p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

/* --- English page --------------------------------------------------------- */

.en-hero {
  padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.en-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 16em;
}

.en-hero p {
  margin-top: 20px;
  max-width: 34em;
}

.en-content {
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 96px);
  max-width: 40em;
}

.en-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  margin: 1.8em 0 0.6em;
}

.en-content h2:first-child {
  margin-top: 0;
}

.en-content p {
  margin-bottom: 1.1em;
}

.en-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--line-2);
}

.en-content ul {
  padding-left: 1.2em;
}

.en-content li {
  margin: 0.4em 0;
  color: var(--ink-2);
}

/* --- QR block ------------------------------------------------------------- */

.qr-block {
  margin-top: clamp(26px, 3vw, 38px);
  padding-top: 20px;
  border-top: 1px solid var(--ground-line);
  max-width: 472px;
}

/* Beats the `.contact-title p` lead-paragraph rule. */
.contact-title .qr-label {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ground-muted);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Codes need a true white field: they never sit on the dark ground directly. */
.qr-card {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 8px 0;
}

.qr-card img {
  display: block;
  width: 100%;
  height: auto;
}

.qr-card figcaption {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e6558;
  text-align: center;
  padding: 8px 0 9px;
  margin-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 24px;
}

/* --- 404 ------------------------------------------------------------------ */

.error-page {
  min-height: 60vh;
  display: grid;
  align-content: center;
  padding: clamp(64px, 10vw, 120px) 0;
  text-align: left;
}

.error-page h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.error-page p {
  margin-top: 20px;
  max-width: 30em;
}

.error-page .button {
  justify-self: start;
  margin-top: 26px;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .section-head p {
    grid-column: 1;
  }

  .section-head p {
    margin-top: 14px;
    padding-bottom: 0;
  }

  .hero-photo img {
    aspect-ratio: 16 / 10;
  }

  .routes-layout {
    display: block;
  }

  .routes-intro {
    grid-template-columns: 1fr;
  }

  .route-tabs {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 0;
    gap: 0;
    margin-top: 26px;
  }

  .route-tabs button {
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-top: 1px solid var(--line);
    padding: 12px 16px 12px 0;
  }

  .route-tabs button[aria-selected="true"] {
    border-bottom-color: var(--accent);
    background: transparent;
  }

  .route-panel {
    grid-row: auto;
    margin-top: 0;
  }

  .faq-layout,
  .contact-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .destination-card:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .destination-card:first-child .image-wrap {
    flex: none;
    min-height: 0;
    height: clamp(300px, 46vw, 420px);
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    padding: 16px 0;
    border-left: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-nav {
    grid-column: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .nav {
    gap: 22px;
    font-size: 13px;
  }

  .header-actions .button {
    display: none;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .header-inner {
    height: 64px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .brand-name {
    font-size: 13.5px;
    letter-spacing: 0.1em;
  }

  .brand-en {
    font-size: 7.5px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    padding: 8px var(--gutter) 16px;
    font-size: 15px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    letter-spacing: -0.025em;
  }

  .hero-description {
    font-size: 14.5px;
    margin-top: 20px;
  }

  .hero-buttons {
    margin-top: 26px;
  }

  .hero-buttons .button {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 12px 14px;
    font-size: 13px;
    gap: 8px;
  }

  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 9px;
  }

  .hero-foot > span {
    text-align: left;
    max-width: none;
  }

  .destination-grid {
    grid-template-columns: 1fr;
  }

  .destination-card .image-wrap,
  .destination-card:first-child .image-wrap {
    flex: none;
    min-height: 0;
    height: 230px;
  }

  .route-content {
    padding: 22px 18px;
  }

  .route-topline {
    align-items: flex-end;
  }

  .route-stop {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .guide-item {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
    gap: 12px;
    padding: 18px 0;
  }

  .guide-item:hover {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }

  .guide-index {
    font-size: 13px;
  }

  .faq-list summary {
    font-size: 14.5px;
    gap: 12px;
  }

  .faq-list details p {
    padding-left: 26px;
  }

  .contact-method {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .article-image {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    border-left: 0;
    border-right: 0;
    padding: 0;
  }

  .destination-highlights {
    grid-template-columns: 1fr;
  }

  .qr-block {
    max-width: none;
  }

  .destination-highlights div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .planner-grid {
    grid-template-columns: 1fr;
  }

  /* Sticky enquiry bar */
  .mobile-contact {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line-2);
  }

  .mobile-contact a,
  .mobile-contact button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    display: grid;
    place-items: center;
    font-size: 13px;
    border-radius: var(--radius);
    white-space: nowrap;
  }

  .mobile-contact a {
    border: 1px solid var(--line-2);
    color: var(--ink);
  }

  .mobile-contact button {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
  }

  .footer {
    padding-bottom: 86px;
  }

  .toast {
    bottom: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --- 关键词落地页 ------------------------------------------------------- */

.section-head h1 {
  grid-column: 1;
  max-width: 13em;
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem);
  letter-spacing: -0.022em;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 6px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
