:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6f6a63;
  --paper: #f7f4ef;
  --surface: #fffdfa;
  --line: #ddd6ca;
  --brick: #9f3d2e;
  --gold: #c79939;
  --jade: #476b5b;
  --night: #262b36;
  --shadow: 0 20px 70px rgba(47, 38, 27, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid rgba(221, 214, 202, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--ink);
  color: var(--surface);
}

main {
  min-height: 70vh;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  min-height: calc(100vh - 78px);
  padding: clamp(40px, 8vw, 96px) clamp(18px, 5vw, 64px) 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(15, 15, 15, 0.82) 0%, rgba(15, 15, 15, 0.58) 42%, rgba(15, 15, 15, 0.24) 100%),
    linear-gradient(0deg, rgba(15, 15, 15, 0.52) 0%, rgba(15, 15, 15, 0.08) 48%),
    url("/assets/hero-xian.png") center / cover no-repeat;
  color: var(--surface);
}

.hero-copy h1,
.page-head h1,
.article h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  color: rgba(255, 253, 250, 0.78);
  font-size: 18px;
}

.eyebrow,
.meta {
  margin: 0 0 10px;
  color: var(--brick);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.hero .eyebrow {
  color: var(--gold);
}

.hero .button {
  border-color: var(--surface);
}

.hero .button-ghost {
  color: var(--surface);
}

.hero-panel,
.place-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  background:
    linear-gradient(145deg, rgba(38, 43, 54, 0.86), rgba(23, 23, 23, 0.72));
  color: var(--surface);
  border-color: rgba(255, 253, 250, 0.22);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(20px);
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.place-card p,
.page-head p,
.split p,
.article-body {
  color: var(--muted);
}

.hero-panel .meta {
  color: var(--gold);
}

.hero-panel p {
  color: rgba(255, 253, 250, 0.76);
}

.hero-panel dl {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.hero-panel dl div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 253, 250, 0.18);
}

.hero-panel dt {
  color: rgba(255, 253, 250, 0.58);
  font-size: 13px;
}

.hero-panel dd {
  margin: 0;
  font-weight: 700;
}

.section,
.page-head,
.article {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 64px);
}

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

.section-heading h2 {
  max-width: 980px;
}

.section h2,
.page-head h1,
.article h1 {
  margin-top: 0;
}

.section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.article-body {
  max-width: 760px;
  font-size: 18px;
}

.today-section {
  background: var(--surface);
}

.today-section .section-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.daily-copy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
  margin-top: 26px;
  font-size: 18px;
}

.daily-copy p {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.daily-copy p:first-child {
  color: var(--ink);
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.text-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.place-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.place-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(199, 153, 57, 0.18), transparent 34%);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}

.place-card:hover::before {
  opacity: 1;
}

.place-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chips span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: stretch;
  background: var(--night);
  color: var(--surface);
}

.split .eyebrow {
  color: var(--gold);
}

.split p {
  max-width: 560px;
  color: rgba(255, 253, 250, 0.72);
}

.split .place-card {
  color: var(--ink);
}

.night-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 1fr);
  gap: 14px;
  min-height: 320px;
}

.night-panel-main,
.night-route,
.night-list a {
  border: 1px solid rgba(255, 253, 250, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.08);
  backdrop-filter: blur(14px);
}

.night-panel-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-row: span 2;
  padding: 28px;
}

.night-panel-main h3 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.96;
  letter-spacing: 0;
}

.night-panel-main p {
  max-width: none;
}

.night-route {
  padding: 20px;
}

.night-route span,
.night-list span,
.night-list small {
  display: block;
  color: rgba(255, 253, 250, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.night-route strong {
  display: block;
  margin-top: 8px;
  color: var(--surface);
  font-size: 20px;
  line-height: 1.25;
}

.night-list {
  display: grid;
  gap: 10px;
}

.night-list a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 14px;
  padding: 16px;
}

.night-list strong {
  color: var(--surface);
  font-size: 18px;
}

.night-list small {
  grid-column: 2;
  font-weight: 600;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.event-list li {
  padding: 20px;
  background: transparent;
  border-top: 1px solid var(--line);
}

.event-list a {
  display: block;
  font-size: 18px;
  font-weight: 800;
}

.event-list span {
  display: block;
  margin-top: 8px;
  color: var(--brick);
  font-size: 13px;
}

.event-list p {
  color: var(--muted);
}

.friend-links-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.friend-links a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.archive-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.archive-list a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  background: var(--surface);
}

.archive-list span {
  color: var(--muted);
}

.article {
  max-width: 980px;
}

.article-body a {
  color: var(--brick);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split,
  .place-grid,
  .event-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy h1,
  .page-head h1,
  .article h1 {
    font-size: clamp(50px, 18vw, 76px);
  }

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

  .daily-copy {
    grid-template-columns: 1fr;
  }

  .archive-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .night-panel {
    grid-template-columns: 1fr;
  }

  .night-panel-main {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .place-card {
    min-height: 230px;
  }

  .night-list a {
    grid-template-columns: 1fr;
  }

  .night-list small {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
