:root {
  --bg: #090a0b;
  --surface: #121315;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f2ec;
  --muted: #aaa39a;
  --accent: #b91f3a;
  --accent-soft: rgba(185, 31, 58, 0.2);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 4%, rgba(185, 31, 58, 0.2), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(255, 255, 255, 0.055), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 10, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.site-header nav {
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 620;
}

.site-header nav a {
  transition: color 180ms ease;
}

.site-header nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: 132px 20px 72px;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 76% 26%, rgba(185, 31, 58, 0.22), transparent 34%),
    linear-gradient(90deg, rgba(9, 10, 11, 0.96) 0%, rgba(9, 10, 11, 0.76) 36%, rgba(9, 10, 11, 0.28) 72%),
    linear-gradient(180deg, rgba(9, 10, 11, 0.2), rgba(9, 10, 11, 0.82)),
    url("/assets/china-night-guide-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-inner,
.guide-section,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  padding-top: 36px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.guide-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  padding: clamp(72px, 10vw, 132px) 0;
}

.section-copy {
  position: sticky;
  top: 132px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.section-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.guide-grid {
  display: grid;
  gap: 14px;
}

.guide-grid article {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.guide-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 31, 58, 0.46);
}

.guide-grid h3 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.guide-grid p {
  max-width: 38ch;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 28px, var(--max));
    margin-top: 12px;
  }

  .site-header nav {
    gap: 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 92dvh;
    padding: 112px 16px 54px;
  }

  .hero-inner,
  .guide-section,
  footer {
    width: min(100% - 32px, var(--max));
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5.2rem);
  }

  .guide-section {
    grid-template-columns: 1fr;
    padding: 72px 0;
  }

  .section-copy {
    position: static;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    max-width: 112px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header nav {
    gap: 10px;
  }
}
