﻿:root {
  color-scheme: light;
  --bg: #fff6f1;
  --bg-deep: #ffe4d7;
  --ink: #3d2c28;
  --muted: #7a5d55;
  --accent: #e8a4a0;
  --accent-strong: #dd7e77;
  --gold: #f4c786;
  --card: #fffaf7;
  --shadow: 0 18px 50px rgba(92, 55, 45, 0.18);
  --radius: 22px;
  --font-body: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", serif;
  --font-display: "STKaiti", "KaiTi", "Kaiti SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #fff5f1 0%, #ffe8dc 45%, #fff6f1 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(232, 164, 160, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
  z-index: 0;
}

.shape-1 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(244, 199, 134, 0.45) 0%, rgba(244, 199, 134, 0) 70%);
  top: -40px;
  left: -60px;
}

.shape-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(232, 164, 160, 0.45) 0%, rgba(232, 164, 160, 0) 70%);
  top: 35vh;
  right: -140px;
}

.shape-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(221, 126, 119, 0.4) 0%, rgba(221, 126, 119, 0) 70%);
  bottom: -60px;
  left: 20vw;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  background: rgba(255, 250, 247, 0.82);
  border-radius: 32px;
  padding: 48px 28px 56px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 auto 24px;
  max-width: 520px;
}

.hero-meta {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-divider {
  opacity: 0.6;
}

.scroll-hint {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(221, 126, 119, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scroll-hint:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(221, 126, 119, 0.4);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 72px 20px;
  max-width: 1024px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0;
}

.letter-body,
.final-body {
  background: var(--card);
  padding: 28px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 1rem;
}

.letter-body p,
.final-body p {
  margin: 0 0 16px;
}

.letter-body p:last-child,
.final-body p:last-child {
  margin-bottom: 0;
}

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

.timeline-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.timeline-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-strong);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline-title {
  font-size: 1.2rem;
  margin: 0;
}

.timeline-text {
  color: var(--muted);
  line-height: 1.7;
}

.media-grid {
  display: grid;
  gap: 16px;
}

.media-grid figure {
  margin: 0;
}

.media-grid img,
.media-grid video {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(60, 38, 32, 0.18);
}

.media-grid figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.gallery-grid figure {
  margin: 0;
  background: var(--card);
  padding: 10px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.gallery-grid figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.final-sign {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: right;
  color: var(--accent-strong);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}

.back-top {
  color: var(--accent-strong);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 860px) {
  .timeline-item {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .timeline-item:nth-child(even) {
    grid-template-columns: 1fr 1.1fr;
  }

  .timeline-item:nth-child(even) .timeline-body {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint,
  .reveal,
  .reveal.is-visible {
    transition: none;
  }
}
