:root {
  --ink: #17211c;
  --muted: #617067;
  --paper: #f7f4ec;
  --soft: #ebe6d9;
  --moss: #37624b;
  --clay: #b65f34;
  --gold: #d7a441;
  --sky: #dbe9ee;
  --line: rgba(23, 33, 28, 0.14);
  --shadow: 0 18px 50px rgba(23, 33, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html.scroll-reveal-ready .reveal-on-scroll:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
}

.reveal-on-scroll {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.intro-grid .reveal-on-scroll:nth-child(1) {
  transition-delay: 0.04s;
}

.intro-grid .reveal-on-scroll:nth-child(2) {
  transition-delay: 0.1s;
}

.intro-grid .reveal-on-scroll:nth-child(3) {
  transition-delay: 0.16s;
}

.route-loop .reveal-on-scroll:nth-child(1) {
  transition-delay: 0.03s;
}

.route-loop .reveal-on-scroll:nth-child(2) {
  transition-delay: 0.08s;
}

.route-loop .reveal-on-scroll:nth-child(3) {
  transition-delay: 0.13s;
}

.route-loop .reveal-on-scroll:nth-child(4) {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .gallery-grid img {
    opacity: 1;
    transition: transform 0.35s ease;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(to bottom, rgba(10, 18, 14, 0.64), rgba(10, 18, 14, 0));
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  font-size: 14px;
}

nav a {
  opacity: 0.86;
}

nav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #142018;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 11, 0.76), rgba(8, 15, 11, 0.22) 52%, rgba(8, 15, 11, 0.08)),
    linear-gradient(to top, rgba(8, 15, 11, 0.72), rgba(8, 15, 11, 0.03) 52%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(52px, 10vh, 110px) clamp(18px, 7vw, 96px);
  color: #fff;
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions a,
.gallery-top button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-actions a:first-child,
.gallery-top button {
  background: #fff;
  color: var(--ink);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 76px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 2fr;
  gap: clamp(28px, 5vw, 70px);
  background: var(--paper);
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.18;
}

.section-kicker,
.tag {
  color: var(--clay);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.intro-grid article,
.route-loop article {
  min-height: 220px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.intro-grid span,
.route-loop span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-weight: 800;
}

.intro-grid p,
.route-loop p,
.city-copy p,
.gallery-note {
  color: var(--muted);
}

.route {
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.section-lead {
  width: min(420px, 100%);
  margin: 0;
  color: var(--muted);
}

.sights {
  background: linear-gradient(180deg, #f7f4ec, #eef0e7);
}

.sight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sight-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.sight-card.wide {
  grid-column: span 2;
}

.sight-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sight-card.wide img {
  aspect-ratio: 2 / 1;
}

.sight-card div {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.sight-card p,
.sight-card h3 {
  margin: 0;
}

.sight-card div > p:not(.tag) {
  color: var(--muted);
}

.sight-card a {
  justify-self: start;
  margin-top: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--moss);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 28px;
}

.day-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

.day-card.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.day-card.reverse .day-media {
  order: 2;
}

.day-media {
  min-height: 440px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.day-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.day-copy {
  padding: clamp(8px, 2vw, 24px);
}

.day-copy ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.day-copy li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.city {
  background: linear-gradient(180deg, #f7f4ec, #eef2e9);
}

.city-copy {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.route-loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.route-loop article {
  position: relative;
  min-height: 270px;
  background: rgba(255, 255, 255, 0.54);
}

.tip-strip {
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 5px solid var(--gold);
  background: rgba(255, 255, 255, 0.72);
}

.tip-strip p {
  margin: 0;
}

.moments {
  background: #1d2822;
  color: #fff;
}

.moments .section-kicker {
  color: #f0c76d;
}

.moment-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.feature-shot {
  grid-row: span 2;
}

.feature-shot img {
  height: 654px;
}

figcaption {
  padding: 16px 18px 18px;
  color: rgba(255, 255, 255, 0.78);
}

figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.gallery-section {
  background: var(--paper);
}

.gallery-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-top button {
  border: 1px solid var(--line);
  cursor: pointer;
  white-space: nowrap;
}

.gallery-top button:hover {
  background: var(--ink);
  color: #fff;
}

.gallery-note {
  margin: 14px 0 28px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.gallery-filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  font-weight: 800;
}

.gallery-filters button:hover,
.gallery-filters button.is-active {
  color: #fff;
  background: var(--moss);
}

.gallery-filters button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.gallery-filters span {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(23, 33, 28, 0.1);
  font-size: 12px;
}

.gallery-filters button:hover span,
.gallery-filters button.is-active span {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: #ddd;
  content-visibility: auto;
  contain-intrinsic-size: 260px 195px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    opacity 0.45s ease;
  opacity: 0;
}

.gallery-grid img.is-decoded {
  opacity: 1;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-card-meta {
  display: grid;
  gap: 4px;
  padding: 12px 13px 14px;
}

.gallery-card-meta p,
.gallery-card-meta h3,
.gallery-card-meta span,
.gallery-card-meta small {
  margin: 0;
}

.gallery-card-meta p {
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
}

.gallery-card-meta h3 {
  font-size: 16px;
}

.gallery-card-meta span,
.gallery-card-meta small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.gallery-card > a {
  margin: 0 13px 14px;
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.gallery-card > a:hover {
  color: #fff;
  background: var(--ink);
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  place-items: center;
  padding: 56px clamp(14px, 4vw, 58px);
  background: rgba(8, 12, 10, 0.92);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1180px, 100%);
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.lightbox button {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 40px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 70px;
  border-radius: 999px;
  font-size: 52px;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

#lightboxCaption {
  margin: 0;
}

.lightbox-meta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(90vw, 900px);
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  transform: translateX(-50%);
}

.lightbox-meta a {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

footer {
  padding: 28px 18px;
  color: var(--muted);
  text-align: center;
  background: #eee8da;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .intro,
  .city-copy,
  .day-card,
  .day-card.reverse {
    grid-template-columns: 1fr;
  }

  .day-card.reverse .day-media {
    order: 0;
  }

  .intro-grid,
  .route-loop,
  .sight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sight-card.wide {
    grid-column: span 2;
  }

  .moment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-shot {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-copy {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-bottom: 42px;
  }

  .intro-grid,
  .route-loop,
  .sight-grid,
  .moment-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sight-card.wide {
    grid-column: auto;
  }

  .sight-card.wide img {
    aspect-ratio: 4 / 3;
  }

  .day-media,
  .day-media img {
    min-height: 300px;
  }

  figure img,
  .feature-shot img {
    height: 300px;
  }

  .gallery-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-actions {
    justify-content: flex-start;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    top: auto;
    bottom: 72px;
    width: 48px;
    height: 48px;
    font-size: 40px;
  }
}
