:root {
  color-scheme: dark;
  --bg: #09110c;
  --bg-2: #102018;
  --panel: rgba(229, 219, 190, 0.08);
  --panel-strong: rgba(229, 219, 190, 0.14);
  --text: #f4ead1;
  --muted: #b8aa86;
  --line: rgba(244, 234, 209, 0.18);
  --gold: #d9ad62;
  --green: #7daa74;
  --moss: #36553e;
  --ink: #07110c;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Serif SC", serif;
  background:
    radial-gradient(circle at 14% 16%, rgba(217, 173, 98, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 10%, rgba(92, 143, 98, 0.20), transparent 30rem),
    linear-gradient(145deg, #07110c 0%, #0f1b13 46%, #1d2b1e 100%);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 75%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7, 17, 12, .86), rgba(7, 17, 12, .55));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 173, 98, .65);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(217, 173, 98, .08);
  box-shadow: 0 0 40px rgba(217, 173, 98, .16) inset;
}
nav { display: flex; gap: clamp(14px, 3vw, 34px); color: var(--muted); font-size: 14px; }
nav a { transition: color .25s ease, transform .25s ease; }
nav a:hover { color: var(--gold); transform: translateY(-2px); }

.section-shell { width: min(1160px, calc(100vw - 40px)); margin: 0 auto; }
.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
  padding: 76px 0 88px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 12px;
  font-weight: 700;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.05em;
  margin-bottom: 28px;
  max-width: 820px;
}
h2 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
h3 { font-size: 24px; margin-bottom: 12px; }
.lead {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.9;
  color: #d5c9a8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn.primary { background: var(--gold); color: #1c1206; box-shadow: 0 18px 52px rgba(217,173,98,.25); }
.btn.ghost { background: rgba(244,234,209,.06); color: var(--text); }

.forest-card {
  position: relative;
  min-height: 560px;
  border: 1px solid rgba(244,234,209,.22);
  border-radius: 38px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244,234,209,.10), rgba(244,234,209,.03)),
    radial-gradient(circle at 54% 24%, rgba(217,173,98,.28), transparent 12rem),
    linear-gradient(145deg, rgba(16,32,24,.9), rgba(9,17,12,.95));
  box-shadow: var(--shadow);
}
.moon {
  position: absolute;
  width: 154px;
  height: 154px;
  right: 54px;
  top: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #fff8dd, #d9ad62 58%, #8d6332 100%);
  box-shadow: 0 0 80px rgba(217,173,98,.45);
}
.rings {
  position: absolute;
  left: 34px;
  top: 40px;
  display: grid;
  gap: 14px;
}
.rings span {
  width: max-content;
  padding: 10px 16px;
  border: 1px solid rgba(244,234,209,.20);
  border-radius: 999px;
  color: #efe1bd;
  background: rgba(7,17,12,.50);
  backdrop-filter: blur(10px);
  animation: floatIn 4.6s ease-in-out infinite alternate;
}
.rings span:nth-child(2) { margin-left: 70px; animation-delay: .35s; }
.rings span:nth-child(3) { margin-left: 24px; animation-delay: .7s; }
.rings span:nth-child(4) { margin-left: 118px; animation-delay: 1.05s; }
.rings span:nth-child(5) { margin-left: 50px; animation-delay: 1.4s; }
.forest-lines { position: absolute; inset: auto 0 0; height: 330px; display: flex; align-items: end; justify-content: space-around; }
.forest-lines i {
  display: block;
  width: 90px;
  height: var(--h, 260px);
  background: linear-gradient(180deg, transparent, rgba(125,170,116,.35));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 20px 20px rgba(0,0,0,.35));
}
.forest-lines i:nth-child(2) { --h: 310px; width: 122px; }
.forest-lines i:nth-child(3) { --h: 240px; width: 82px; }
.forest-lines i:nth-child(4) { --h: 340px; width: 144px; }
.forest-lines i:nth-child(5) { --h: 285px; width: 110px; }

.split-section, .tutorials, .journal, .cta {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; }
.cards-grid { display: grid; gap: 18px; }
.info-card, .timeline article, .post-item {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 16px 52px rgba(0,0,0,.18);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.info-card:hover, .timeline article:hover, .post-item:hover {
  transform: translateY(-5px);
  border-color: rgba(217,173,98,.6);
  background: var(--panel-strong);
}
.info-card { padding: 28px; }
.card-index { color: var(--green); font-weight: 900; letter-spacing: .12em; }
.info-card p, .timeline p, .section-title-row p, .cta p { color: var(--muted); line-height: 1.8; }
.section-title-row { display: grid; grid-template-columns: 1fr .7fr; gap: 46px; align-items: end; margin-bottom: 34px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline article { min-height: 230px; padding: 24px; }
.timeline span { color: var(--gold); font-size: 13px; letter-spacing: .18em; }
.post-list { display: grid; gap: 16px; margin-top: 34px; }
.post-item { display: flex; justify-content: space-between; gap: 24px; padding: 24px 28px; align-items: center; }
.post-item strong { font-size: 22px; }
.post-item span { color: var(--muted); }
.cta {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 120px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(7, 17, 12, .72);
}
.site-footer a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

@keyframes floatIn {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 900px) {
  .site-header { align-items: flex-start; gap: 16px; flex-direction: column; }
  nav { width: 100%; justify-content: space-between; }
  .hero, .split-section, .section-title-row, .cta { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 54px; }
  .forest-card { min-height: 430px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .post-item, .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
  nav { gap: 12px; overflow-x: auto; padding-bottom: 4px; }
  .moon { width: 108px; height: 108px; right: 28px; top: 34px; }
  .rings { left: 18px; }
  .rings span:nth-child(n) { margin-left: 0; }
}
