:root {
  --night: #111a2b;
  --night-deep: #09111f;
  --paper: #f3eee6;
  --paper-light: #faf7f1;
  --ink: #182033;
  --muted: #6f7279;
  --rose: #a64250;
  --rose-soft: #d8aaa7;
  --gold: #c89b62;
  --line: rgba(24, 32, 51, 0.16);
  --serif: Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--rose-soft);
  color: var(--night);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: #fff;
  color: #111;
}

.skip-link:focus {
  transform: translateY(0);
}

.snow-canvas {
  position: fixed;
  z-index: 30;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rose);
}

.topbar {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 84px;
  padding: 0 clamp(24px, 5vw, 80px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  width: max-content;
  letter-spacing: .09em;
}

.brand span {
  color: var(--rose-soft);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
}

.brand strong {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
}

.nav {
  display: flex;
  gap: clamp(22px, 3vw, 52px);
}

.nav a {
  position: relative;
  padding: 31px 0 29px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  letter-spacing: .16em;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 1px;
  background: #fff;
  transition: right .25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}

.topbar-date {
  justify-self: end;
  color: rgba(255,255,255,.4);
  font-size: 9px;
  letter-spacing: .24em;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(45px, 7vw, 110px);
  align-items: center;
  min-height: 100svh;
  padding: 130px clamp(24px, 6vw, 100px) 90px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 10% 10%, rgba(119,147,181,.2), transparent 31%),
    linear-gradient(135deg, var(--night) 0%, #16243a 56%, var(--night-deep) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    radial-gradient(circle at 12% 27%, rgba(255,255,255,.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 61% 16%, rgba(255,255,255,.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 87% 38%, rgba(255,255,255,.65) 0 1px, transparent 1.5px);
  background-size: 290px 230px, 360px 280px, 220px 180px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  right: 12%;
  top: 22%;
  width: 35vw;
  height: 35vw;
  border-radius: 50%;
  background: rgba(166,66,80,.14);
  filter: blur(80px);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 26px;
  color: var(--rose-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .28em;
}

.kicker span {
  width: 35px;
  height: 1px;
  background: currentColor;
}

.dedication {
  width: max-content;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 8px 15px;
  border: 1px solid rgba(216,170,167,.35);
  border-radius: 999px;
  color: #e4bebb;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .1em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .98;
}

.hero h1 em,
.intro h2 em,
.letter-heading h2 em,
.again h2 em {
  color: var(--rose-soft);
  font-style: normal;
}

.hero-text {
  width: min(550px, 100%);
  margin: 35px 0 0;
  color: rgba(255,255,255,.62);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 44px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,.3);
  font-size: 11px;
  letter-spacing: .16em;
  transition: background .25s ease, color .25s ease, gap .25s ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  gap: 34px;
  background: #fff;
  color: var(--night);
}

.quiet-note {
  color: rgba(255,255,255,.38);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: .08em;
}

.hero-visual {
  width: min(680px, 100%);
  justify-self: end;
}

.year-stamp {
  position: absolute;
  z-index: -1;
  right: -5%;
  top: -17%;
  color: rgba(255,255,255,.035);
  font-family: var(--serif);
  font-size: clamp(120px, 17vw, 260px);
  line-height: 1;
}

.photo-card {
  margin: 0;
  padding: 10px;
  background: #f8f5ef;
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
  transform: rotate(1.3deg);
}

.photo-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 8px 4px;
  color: var(--ink);
}

.photo-card figcaption span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .22em;
}

.photo-card figcaption b {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
}

.sprite-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #28364a;
}

.sprite-frame img {
  position: absolute;
  width: 200%;
  height: 200%;
  max-width: none;
}

.crop-fuji img { left: 0; top: 0; }
.crop-wheel img { left: -100%; top: 0; }
.crop-game img { left: 0; top: -100%; }
.crop-kitchen img { left: -100%; top: -100%; }

.hand-note {
  width: max-content;
  max-width: 70%;
  margin: -12px 0 0 auto;
  padding: 17px 22px;
  transform: rotate(-2deg);
  background: #dfc2b5;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  color: #632e36;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.5;
}

.hand-note span {
  color: #7f4a50;
  font-size: 11px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 6vw, 100px);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.4);
  font-size: 8px;
  letter-spacing: .25em;
}

.scroll-cue i {
  display: block;
  width: 52px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: #fff;
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: translateX(-110%); }
  50% { transform: translateX(210%); }
}

.intro {
  padding: 140px clamp(24px, 7vw, 112px) 90px;
  background: var(--paper);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .25em;
}

.section-label span {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(166,66,80,.35);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 8vw;
  align-items: end;
  margin-top: 42px;
}

.intro h2,
.letter-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 78px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.intro-grid > p,
.letter-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
}

.memory-section {
  padding: 20px clamp(24px, 7vw, 112px) 140px;
  background: var(--paper);
}

.memory-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(45px, 8vw, 130px);
  align-items: center;
  max-width: 1260px;
  margin: 0 auto 150px;
}

.memory-row:last-child {
  margin-bottom: 0;
}

.memory-row--reverse .memory-photo {
  order: 2;
}

.memory-photo {
  position: relative;
  margin: 0;
  padding: 9px 9px 38px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(47,37,27,.16);
}

.memory-row:nth-child(odd) .memory-photo { transform: rotate(-.8deg); }
.memory-row:nth-child(even) .memory-photo { transform: rotate(.8deg); }

.memory-photo figcaption {
  position: absolute;
  left: 20px;
  bottom: 13px;
  color: #8c8984;
  font-size: 8px;
  letter-spacing: .24em;
}

.memory-copy {
  position: relative;
  padding-top: 48px;
}

.memory-index {
  position: absolute;
  top: -35px;
  right: 0;
  color: rgba(166,66,80,.09);
  font-family: var(--serif);
  font-size: 120px;
  font-style: italic;
  line-height: 1;
}

.memory-place {
  margin: 0 0 17px;
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
}

.memory-copy h3 {
  position: relative;
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(31px, 3.4vw, 51px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.memory-copy > p:not(.memory-place) {
  position: relative;
  margin: 0;
  color: #6b6b6d;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
}

.memory-line {
  display: block;
  width: 52px;
  height: 1px;
  margin-top: 28px;
  background: var(--rose);
}

.more-memories {
  padding: 30px 24px 150px;
  text-align: center;
  background: var(--paper);
}

.more-memories p {
  margin: 0 0 19px;
  color: var(--rose);
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
}

.more-memories span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
}

.dream {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 790px;
  padding: 110px 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 50% 42%, rgba(166,66,80,.23), transparent 24%),
    linear-gradient(135deg, #16233a, var(--night-deep));
}

.dream::before,
.dream::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(680px, 80vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}

.dream::after {
  width: min(510px, 62vw);
  border-color: rgba(216,170,167,.13);
}

.dream-inner {
  position: relative;
  z-index: 2;
  width: min(780px, 92vw);
  text-align: center;
}

.kicker--light {
  justify-content: center;
}

.dream blockquote {
  margin: 0 0 35px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 1.4;
  letter-spacing: -.04em;
}

.dream-inner > p:not(.kicker) {
  width: min(590px, 100%);
  margin: 0 auto 20px;
  color: rgba(255,255,255,.52);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
}

.dream-inner strong {
  color: #e3bbb7;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .08em;
}

.dream-year {
  position: absolute;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.025);
  font-family: var(--serif);
  font-size: min(30vw, 430px);
  line-height: 1;
}

.letter-section {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 145px);
  align-items: start;
  padding: 150px clamp(24px, 7vw, 112px);
  background: #e9e0d4;
}

.letter-heading {
  position: sticky;
  top: 50px;
}

.letter-heading .section-label {
  margin-bottom: 42px;
}

.letter-heading > p {
  margin-top: 32px;
}

.letter-card {
  border-top: 1px solid rgba(24,32,51,.22);
  border-bottom: 1px solid rgba(24,32,51,.22);
}

.letter-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 3px;
  cursor: pointer;
  list-style: none;
  color: var(--rose);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .08em;
}

.letter-card summary::-webkit-details-marker { display: none; }
.letter-card .open-text { display: none; }
.letter-card[open] .closed-text { display: none; }
.letter-card[open] .open-text { display: inline; }

.letter-card summary i {
  position: relative;
  width: 26px;
  height: 26px;
}

.letter-card summary i::before,
.letter-card summary i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 20px;
  height: 1px;
  background: var(--rose);
  transition: transform .25s ease;
}

.letter-card summary i::after { transform: rotate(90deg); }
.letter-card[open] summary i::after { transform: rotate(0); }

.letter-paper {
  margin: 8px 0 45px;
  padding: clamp(35px, 5vw, 72px);
  background:
    repeating-linear-gradient(to bottom, transparent 0 30px, rgba(76,63,50,.06) 30px 31px),
    var(--paper-light);
  box-shadow: 0 24px 55px rgba(50,38,27,.12);
}

.letter-paper p {
  margin: 0 0 25px;
  color: #49494b;
  font-family: var(--serif);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 2.15;
}

.letter-paper .salutation {
  margin-bottom: 38px;
  color: var(--ink);
  font-size: 20px;
}

.letter-paper .signature {
  margin: 46px 0 0;
  text-align: right;
  color: var(--rose);
  font-size: 20px;
}

.letter-paper .signature span {
  display: block;
  color: #8b847d;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .12em;
}

.again {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92svh;
  padding: 130px 24px 100px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 25%, rgba(105,137,170,.18), transparent 27%),
    var(--night-deep);
}

.again::before {
  content: "＊";
  margin-bottom: 22px;
  color: rgba(255,255,255,.55);
  font-size: 32px;
  animation: snow-turn 12s linear infinite;
}

@keyframes snow-turn { to { transform: rotate(360deg); } }

.again-inner {
  position: relative;
  z-index: 2;
}

.again h2 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.04em;
}

.again-inner > p:not(.kicker) {
  margin: 0;
  color: rgba(255,255,255,.5);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2;
}

.rewind-button {
  margin-top: 48px;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.4);
  background: transparent;
  cursor: pointer;
  color: #fff;
  font-size: 11px;
  letter-spacing: .18em;
  transition: color .25s ease, padding .25s ease;
}

.rewind-button:hover,
.rewind-button:focus-visible {
  padding-left: 13px;
  padding-right: 13px;
  color: var(--rose-soft);
}

.again footer {
  position: absolute;
  left: clamp(24px, 6vw, 100px);
  right: clamp(24px, 6vw, 100px);
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.32);
  font-size: 8px;
  letter-spacing: .22em;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1);
}

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-date { display: none; }

  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 150px;
  }

  .hero-copy {
    width: min(720px, 100%);
  }

  .hero-visual {
    width: min(720px, 94%);
    justify-self: center;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .memory-row {
    grid-template-columns: 1.15fr .85fr;
    gap: 45px;
  }

  .letter-section {
    grid-template-columns: 1fr;
  }

  .letter-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 64px; }

  .topbar {
    min-height: 66px;
    padding: 0 20px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    padding: 24px 0 22px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .nav a:nth-child(2) { display: none; }

  .hero {
    min-height: auto;
    padding: 118px 22px 95px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero-visual {
    width: 96%;
  }

  .hand-note {
    max-width: 85%;
  }

  .scroll-cue { display: none; }

  .intro {
    padding: 100px 22px 70px;
  }

  .intro h2,
  .letter-heading h2 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .memory-section {
    padding: 10px 22px 100px;
  }

  .memory-row,
  .memory-row--reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 100px;
  }

  .memory-row--reverse .memory-photo {
    order: 0;
  }

  .memory-copy {
    padding: 35px 4px 0;
  }

  .memory-index {
    top: -22px;
    font-size: 90px;
  }

  .more-memories {
    padding-bottom: 105px;
  }

  .more-memories span {
    display: block;
    line-height: 1.9;
  }

  .dream {
    min-height: 690px;
  }

  .dream::before { width: 92vw; }
  .dream::after { width: 72vw; }

  .dream blockquote {
    font-size: clamp(34px, 10.5vw, 52px);
  }

  .letter-section {
    padding: 105px 22px;
  }

  .letter-paper {
    margin-left: -7px;
    margin-right: -7px;
  }

  .again {
    min-height: 780px;
  }

  .again h2 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .again footer {
    left: 22px;
    right: 22px;
  }

  .again footer span:nth-child(2) { display: none; }
}

@media (max-width: 420px) {
  .brand strong { font-size: 12px; }
  .nav a:last-child { display: none; }
  .photo-card figcaption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .dedication { white-space: normal; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
