:root {
  color-scheme: light;
  --ink: #231f20;
  --muted: #736a64;
  --paper: #fffaf3;
  --blush: #f3b6b6;
  --rose: #c84f5a;
  --sage: #7f9274;
  --sky: #a9c7d8;
  --line: rgba(35, 31, 32, 0.16);
  --shadow: 0 18px 48px rgba(81, 53, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(243, 182, 182, 0.38), transparent 30rem),
    linear-gradient(135deg, #fff7ec 0%, #f7fbf5 48%, #eef6fb 100%);
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 250, 243, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.eyebrow,
.story-header p,
.hero-copy p {
  margin: 0;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  line-height: 1.1;
}

.music-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 5.4rem;
  min-height: 2.55rem;
  padding: 0 0.95rem;
  color: white;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 10px 24px rgba(200, 79, 90, 0.24);
  cursor: pointer;
}

.music-toggle:focus-visible {
  outline: 3px solid rgba(169, 199, 216, 0.9);
  outline-offset: 3px;
}

.music-icon {
  font-size: 1.1rem;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  padding-top: 5.5rem;
  place-items: end center;
  background: #1f1b1b;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 12%, rgba(0, 0, 0, 0.56) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 3rem);
  color: white;
}

.hero-copy p {
  color: #ffd9d9;
}

.hero-copy h2 {
  max-width: 12em;
  margin: 0.65rem 0 0;
  font-size: clamp(2.35rem, 8vw, 5.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.story {
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1rem, 5vw, 3rem);
}

.story-header {
  width: min(100%, 980px);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.story-header h2 {
  max-width: 13em;
  margin: 0.45rem 0 0;
  font-size: clamp(1.85rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.timeline {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}

.moment {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(16rem, 1fr);
  gap: clamp(1rem, 4vw, 2.3rem);
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1.1rem);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.moment:nth-child(even) {
  grid-template-columns: minmax(16rem, 1fr) minmax(0, 0.88fr);
}

.moment:nth-child(even) .photo-frame {
  order: 2;
}

.photo-frame {
  aspect-ratio: 1086 / 1448;
  overflow: hidden;
  border-radius: 8px;
  background: #eaded3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moment-copy {
  padding: clamp(0.75rem, 2.5vw, 1.8rem);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 800;
  border-radius: 50%;
  background: var(--sage);
}

.moment h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.55rem, 4vw, 2.55rem);
  line-height: 1.12;
}

.moment p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.8;
}

footer {
  padding: 0 clamp(1rem, 5vw, 3rem) 3rem;
  text-align: center;
  color: var(--muted);
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 720px) {
  .topbar {
    padding: 0.8rem 0.9rem;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-copy h2 {
    max-width: 9em;
  }

  .moment,
  .moment:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .moment:nth-child(even) .photo-frame {
    order: 0;
  }

  .moment-copy {
    padding: 0.65rem 0.25rem 0.85rem;
  }
}
