:root {
  --bg: #f7f4ef;
  --paper: #fffdf8;
  --ink: #2e302c;
  --muted: #74766f;
  --line: rgba(46, 48, 44, .12);
  --warm: #9b6f52;
  --soft: #ece5da;
  --shadow: 0 18px 50px rgba(62, 48, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
button { font: inherit; }
img, video { max-width: 100%; display: block; }
.is-hidden { display: none; }

.intro {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: end center;
  padding: 28px 22px calc(34px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #151510;
}
.intro-bg {
  position: absolute;
  inset: 0;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: center;
  opacity: .64;
  transform: scale(1.03);
}
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58));
}
.intro-content {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  color: #fff;
  text-align: left;
}
.intro-kicker, .hero-text p {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}
.intro h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 750;
}
.intro-copy {
  margin: 14px 0 28px;
  font-size: 15px;
  line-height: 1.8;
  opacity: .9;
}
.enter-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 18px;
  color: #241f1a;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.enter-btn:active { transform: scale(.985); }

.app {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
.section { padding: 20px 18px; }
.hero { position: relative; padding-top: 18px; }
.hero-image {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-text {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 48px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-text h1 { margin: 0; font-size: 34px; line-height: 1.12; }
.entry-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 2px;
}
.entry-button {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  padding: 18px 18px;
  text-align: left;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(62, 48, 38, .06);
}
.entry-button span { display: block; font-size: 19px; font-weight: 700; }
.entry-button small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 25px; line-height: 1.22; }

.timeline-list { position: relative; display: grid; gap: 18px; }
.memory-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(62, 48, 38, .08);
}
.memory-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.memory-body { padding: 16px; }
.memory-date { margin: 0 0 8px; color: var(--warm); font-size: 13px; font-weight: 700; }
.memory-body h3 { margin: 0 0 8px; font-size: 20px; }
.memory-body p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag { padding: 4px 8px; border-radius: 999px; background: var(--soft); color: #665447; font-size: 12px; }

.video-wrap {
  border-radius: 22px;
  overflow: hidden;
  background: #12120f;
  box-shadow: var(--shadow);
}
.video-wrap video { width: 100%; aspect-ratio: 9 / 16; background: #000; }
.media-missing {
  padding: 38px 18px;
  color: #fff;
  text-align: center;
  line-height: 1.8;
}
.photo-story { display: grid; gap: 14px; margin-top: 18px; }
.photo-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-caption { padding: 12px 14px 14px; }
.photo-caption h3 { margin: 0 0 6px; font-size: 17px; }
.photo-caption p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.letter-card {
  padding: 24px 18px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(62, 48, 38, .08);
}
.letter-card h3 { margin: 0 0 18px; font-size: 25px; line-height: 1.25; }
.letter-card p { margin: 0 0 16px; color: #41433d; font-size: 15px; line-height: 2; }
.signature { margin-top: 22px; text-align: right; color: var(--warm); font-weight: 700; }

@media (min-width: 700px) {
  body { background: #eee8df; }
  .app { background: var(--bg); min-height: 100vh; }
}
