:root {
  --bg: #eef3f1;
  --paper: rgba(255, 255, 255, 0.88);
  --ink: #18191b;
  --muted: #66635c;
  --line: #d7cbb8;
  --line-strong: #25211c;
  --green: #174f45;
  --red: #8e2f24;
  --gold: #b6852f;
  --blue: #294c73;
  --shadow: 0 24px 70px rgba(35, 28, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(24, 25, 27, 0.025) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(24, 25, 27, 0.018) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(248, 251, 250, 0.68), rgba(234, 241, 240, 0.56));
  font-family: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 249, 248, 0.92), rgba(245, 249, 248, 0.48) 58%, rgba(245, 249, 248, 0.84)),
    linear-gradient(180deg, rgba(245, 249, 248, 0.78), rgba(245, 249, 248, 0.2) 46%, rgba(245, 249, 248, 0.82)),
    url("assets/photos/mountain-river.jpg") center / cover no-repeat;
  opacity: 0.4;
  z-index: -2;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(37, 33, 28, 0.12);
  background: rgba(248, 251, 250, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--red);
}

.lang-toggle,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lang-toggle {
  width: 2.7rem;
  padding: 0;
}

.button {
  padding: 0 1rem;
  min-width: 8.8rem;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button:hover,
.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 5px 5px 0 var(--gold);
}

main {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.42fr);
  gap: clamp(1rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 4.1rem);
  padding: clamp(3rem, 7vw, 5.8rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  position: relative;
  grid-column: 1 / 2;
  padding: clamp(1rem, 2vw, 1.45rem);
  margin-left: clamp(-1.45rem, -2vw, -1rem);
  border-left: 1px solid rgba(37, 33, 28, 0.14);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(8px);
}

.hero-portrait {
  grid-column: 2 / 3;
  justify-self: stretch;
  align-self: center;
  width: 100%;
  margin: 0;
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  object-position: 52% 48%;
  border: 1px solid rgba(37, 33, 28, 0.22);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  filter: saturate(0.92) contrast(1.02);
}

.hero-portrait figcaption {
  margin-top: 0.85rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--gold);
  color: #3f3b35;
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.86rem;
  line-height: 1.55;
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem) auto auto 42%;
  width: min(44rem, 55vw);
  height: min(30rem, 46vw);
  border: 1px solid rgba(37, 33, 28, 0.18);
  background:
    linear-gradient(rgba(248, 251, 250, 0.06), rgba(248, 251, 250, 0.58)),
    url("assets/photos/lake-hills.jpg") center / cover no-repeat;
  opacity: 0.32;
  filter: saturate(0.82);
  z-index: -1;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.25rem 0.5rem;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  color: var(--red);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 8.2rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.lead {
  max-width: 48rem;
  margin: 1.2rem 0 0;
  color: #393733;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.65rem;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 2.1rem 0 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.quick-facts div {
  padding: 0.85rem 0.9rem;
  border-right: 1px solid var(--line);
}

.quick-facts div:first-child {
  padding-left: 0;
}

.quick-facts div:last-child {
  border-right: 0;
}

.quick-facts dt,
.quick-facts dd {
  margin: 0;
}

.quick-facts dt {
  color: var(--muted);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.quick-facts dd {
  margin-top: 0.22rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 clamp(2.3rem, 5vw, 4rem);
  border-top: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.feature-strip article {
  padding: 1.25rem 1.25rem 1.4rem;
  border-right: 1px solid var(--line);
}

.feature-strip article:first-child {
  padding-left: 0;
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-strip span {
  color: var(--gold);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-strip h2 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.journal-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.2rem;
  margin: 0 0 clamp(2.3rem, 5vw, 4rem);
  padding: clamp(1.2rem, 3vw, 1.8rem) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.journal-kicker {
  color: var(--gold);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-link h2 {
  margin: 0.25rem 0 0.4rem;
  color: var(--green);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.12;
}

.journal-link p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
}

.travel-page main {
  min-height: calc(100vh - 4.1rem);
}

.travel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.42fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: end;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(2rem, 6vw, 4rem);
}

.travel-hero h1 {
  max-width: 48rem;
}

.travel-hero .lead {
  max-width: 42rem;
}

.travel-card {
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(37, 33, 28, 0.2);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 48px rgba(35, 28, 18, 0.1);
}

.travel-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(37, 33, 28, 0.18);
}

.travel-card p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.9rem;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  border: 1px solid var(--line-strong);
  background: var(--line-strong);
}

.note-grid article {
  min-height: 13rem;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
}

.note-grid span {
  color: var(--gold);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.note-grid h2 {
  margin: 0.4rem 0 0.55rem;
  font-size: 1.08rem;
}

.note-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.content-shell {
  margin-bottom: 3rem;
}

.markdown {
  display: grid;
  gap: 0;
}

.markdown section {
  display: grid;
  grid-template-columns: minmax(8rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.7rem) 0;
  border-top: 1px solid var(--line-strong);
}

.markdown section:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.markdown h2 {
  position: sticky;
  top: 5.2rem;
  align-self: start;
  margin: 0;
  color: var(--green);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.2;
}

.markdown .section-body > *:first-child {
  margin-top: 0;
}

.markdown p,
.markdown li {
  color: #292723;
}

.markdown p {
  margin: 0.6rem 0 0.95rem;
}

.markdown ul,
.markdown ol {
  margin: 0;
  padding-left: 1.2rem;
}

.markdown li {
  margin-bottom: 0.62rem;
  padding-left: 0.15rem;
}

.markdown strong {
  color: var(--ink);
  font-weight: 800;
}

.markdown em {
  color: var(--blue);
  font-style: italic;
}

.qr-center {
  width: min(320px, 100%);
  margin: 0.2rem auto 0;
  text-align: center;
}

.qr-center img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 0.7rem auto 0;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.footer {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 0.86rem;
}

.footer a {
  text-decoration-color: rgba(102, 99, 92, 0.45);
  text-underline-offset: 0.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: enter 520ms ease forwards;
  animation-delay: var(--d, 0s);
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html[data-lang="zh"] .t-en {
  display: none;
}

html[data-lang="en"] .t-zh {
  display: none;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-copy {
    margin-left: 0;
    padding: 0;
    border-left: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .hero::before {
    inset: 6rem 0 auto auto;
    width: min(24rem, 80vw);
    height: 18rem;
  }

  .hero-portrait {
    grid-column: 1;
    width: min(26rem, 100%);
    justify-self: center;
  }

  .feature-strip,
  .markdown section,
  .journal-link,
  .travel-hero,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip article,
  .feature-strip article:first-child {
    padding: 1.05rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip article:last-child {
    border-bottom: 0;
  }

  .markdown h2 {
    position: static;
  }
}

@media (max-width: 580px) {
  main,
  .footer {
    width: min(100% - 1rem, 1240px);
  }

  .site-header {
    padding-inline: 0.7rem;
  }

  .brand small {
    display: none;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .quick-facts div,
  .quick-facts div:first-child {
    padding: 0.75rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-facts div:last-child {
    border-bottom: 0;
  }

  .button {
    flex: 1 1 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button,
  .lang-toggle {
    transition: none;
  }
}
