*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --paper: oklch(97% 0.012 80);
  --ink: oklch(26% 0.02 250);
  --cel-h: 55; --cel-s: 0.16; --cel-l: 0.86; --cel-glow: 0.55;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

main { position: relative; }

.scene--dawn {
  --sky-top: oklch(90% 0.05 75); --sky-bottom: oklch(80% 0.1 45);
}
.scene--spring {
  --sky-top: oklch(90% 0.05 145); --sky-bottom: oklch(83% 0.08 115);
  --hill-back: oklch(66% 0.09 150); --hill-front: oklch(48% 0.1 150);
  --tree-canopy: oklch(62% 0.12 145); --grass: oklch(55% 0.1 150);
  --trunk: oklch(34% 0.03 70);
}
.scene--summer {
  --sky-top: oklch(85% 0.09 90); --sky-bottom: oklch(78% 0.13 62);
  --hill-back: oklch(69% 0.11 110); --hill-front: oklch(53% 0.12 100);
  --tree-canopy: oklch(50% 0.11 140); --grass: oklch(63% 0.13 96);
  --trunk: oklch(32% 0.03 70);
}
.scene--autumn {
  --sky-top: oklch(82% 0.07 55); --sky-bottom: oklch(70% 0.13 35);
  --hill-back: oklch(56% 0.08 50); --hill-front: oklch(43% 0.09 42);
  --tree-canopy: oklch(58% 0.15 42); --trunk: oklch(30% 0.03 50);
}
.scene--winter {
  --sky-top: oklch(30% 0.05 262); --sky-bottom: oklch(16% 0.04 270);
  --hill-back: oklch(35% 0.03 262); --hill-front: oklch(21% 0.02 262);
  --trunk: oklch(20% 0.02 260);
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scene__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  filter: hue-rotate(calc(var(--sky-shift, 0) * 1deg));
}

.scene__art {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.layer--mountain { fill: oklch(58% 0.03 260 / 0.55); }
.layer--cloud { fill: oklch(99% 0.01 90 / 0.85); }
.layer--hill-back { fill: var(--hill-back); }
.layer--hill-front { fill: var(--hill-front); }

.tree__trunk { fill: var(--trunk, oklch(32% 0.03 60)); }
.tree__canopy circle { fill: var(--tree-canopy, oklch(50% 0.1 145)); }
.tree__branch path { stroke: var(--trunk, oklch(32% 0.03 60)); stroke-width: 4; fill: none; stroke-linecap: round; }
.layer--tree { transform-box: fill-box; transform-origin: bottom center; }

.grass__blade {
  fill: none;
  stroke: var(--grass, oklch(50% 0.1 150));
  stroke-width: 7;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: bottom center;
}

.scene__particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.particle { position: absolute; top: -6%; will-change: transform, opacity; }
.particle svg { width: 100%; height: 100%; display: block; }
.particle--dust { fill: oklch(99% 0.01 90 / 0.8); }
.particle--firefly { fill: oklch(88% 0.16 95); filter: drop-shadow(0 0 6px oklch(88% 0.2 95 / 0.9)); }
.particle--petal { fill: oklch(85% 0.09 350); }
.particle--leaf { fill: oklch(58% 0.15 40); }
.particle--snow { fill: oklch(96% 0.01 240); }
.particle--star { fill: oklch(96% 0.02 240); }

.scene__content {
  position: relative;
  z-index: 3;
  max-width: 44rem;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.scene__content--left { margin-right: auto; text-align: left; }
.scene__content--right { margin-left: auto; text-align: left; }
.scene__content--center { margin: 0 auto; text-align: center; }

.scene__eyebrow {
  font-family: var(--font-serif);
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 1rem;
}

.scene__title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  margin: 0 0 1.1rem;
}

.scene--dawn .scene__title { font-size: clamp(2.2rem, 5.6vw, 4.2rem); }

.scene__lede, .scene__body {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.9;
  max-width: 32rem;
  margin: 0 auto;
  opacity: 0.88;
}
.scene__content--left .scene__lede,
.scene__content--left .scene__body { margin-left: 0; }
.scene__content--right .scene__lede,
.scene__content--right .scene__body { margin-right: 0; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 3rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  opacity: 0.65;
}
.scroll-cue__line {
  width: 1px;
  height: 2.6rem;
  background: currentColor;
  opacity: 0.5;
}
.scroll-cue__text {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.trail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.trail__item { display: flex; flex-direction: column; gap: 0.3rem; padding-left: 1.2rem; border-left: 1px solid oklch(30% 0.02 60 / 0.3); }
.trail__item:nth-child(2) { margin-left: 1.4rem; }
.trail__item:nth-child(3) { margin-left: 0.4rem; }
.trail__year { font-family: var(--font-serif); font-size: 0.85rem; opacity: 0.6; letter-spacing: 0.08em; }
.trail__text { font-size: 1.02rem; line-height: 1.7; }

.journal {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 2;
  margin: 0 auto;
  max-width: 34rem;
  font-style: normal;
}

.contact-links { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.9rem; align-items: center; }
.contact-links a {
  color: inherit;
  text-decoration: none;
  font-size: 1.05rem;
  position: relative;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid oklch(96% 0.01 240 / 0.4);
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.contact-links a:hover { border-color: oklch(96% 0.01 240 / 0.9); }
.contact-links small { opacity: 0.55; font-size: 0.75rem; }

.scene--winter .scene__content,
.scene--winter .scroll-cue { color: oklch(94% 0.01 240); }
.scene--winter .scene__eyebrow,
.scene--winter .scene__title { color: oklch(96% 0.01 240); }

.celestial {
  position: fixed;
  left: 12%;
  top: 78%;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, -50%);
  --cel-color: oklch(var(--cel-l) var(--cel-s) var(--cel-h));
}
.celestial__core {
  width: clamp(2.6rem, 5vw, 4.2rem);
  height: clamp(2.6rem, 5vw, 4.2rem);
  border-radius: 50%;
  background: var(--cel-color);
}
.celestial__halo {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cel-color) 0%, transparent 70%);
  opacity: var(--cel-glow);
}

.site-footer {
  background: oklch(16% 0.03 265);
  color: oklch(78% 0.02 240);
  padding: clamp(2rem, 5vh, 3.2rem) 1.5rem;
  text-align: center;
  position: relative;
  z-index: 5;
}
.site-footer__inner { max-width: 40rem; margin: 0 auto; }
.site-footer__beian { font-size: 0.78rem; opacity: 0.8; margin: 0 0 0.5rem; }
.site-footer__meta { font-size: 0.75rem; opacity: 0.55; margin: 0; }

@media (max-width: 899px) {
  .scene { min-height: auto; padding: 4.5rem 0; }
  .scene__content { max-width: 30rem; }
  .contact-links { align-items: center; }
  .celestial { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .celestial { display: none; }
}
