:root {
  --paper: #f6efe9;
  --paper-soft: #fffaf5;
  --paper-deep: #ecdfd7;
  --ink: #2d1c22;
  --ink-soft: #725f65;
  --wine: #78283a;
  --wine-dark: #391c26;
  --wine-deep: #25171e;
  --rose: #d88b96;
  --rose-soft: #efd1d2;
  --gold: #bd9657;
  --gold-soft: #dfc99f;
  --line: rgba(67, 37, 46, 0.16);
  --glass: rgba(255, 250, 245, 0.82);
  --shadow: 0 28px 80px rgba(75, 34, 45, 0.14);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: min(1120px, calc(100vw - 48px));
}

:root[data-theme="night"] {
  --paper: #21181d;
  --paper-soft: #2b1e24;
  --paper-deep: #181116;
  --ink: #f7eee8;
  --ink-soft: #c4b3b7;
  --wine: #d88493;
  --wine-dark: #efc5ca;
  --rose: #ed9fac;
  --rose-soft: #5a303a;
  --gold: #d9b778;
  --gold-soft: #745f3e;
  --line: rgba(255, 239, 229, 0.13);
  --glass: rgba(37, 23, 30, 0.84);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 500ms ease, color 500ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(circle at 17% 29%, #2d1c22 0 0.55px, transparent 0.7px 4px),
    repeating-radial-gradient(circle at 74% 68%, #2d1c22 0 0.45px, transparent 0.6px 5px);
  background-size: 11px 13px, 17px 19px;
  mix-blend-mode: multiply;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img {
  max-width: 100%;
}

::selection {
  background: var(--rose-soft);
  color: var(--wine-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  box-shadow: 0 0 14px rgba(222, 178, 112, 0.7);
}

.cursor-glow {
  position: fixed;
  z-index: 25;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(216, 139, 150, 0.09), transparent 66%);
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
}

@media (pointer: fine) {
  body:hover .cursor-glow {
    opacity: 1;
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 84px;
  color: #fff7f0;
  transition: background-color 350ms ease, color 350ms ease, box-shadow 350ms ease, height 350ms ease;
}

.site-header.is-scrolled {
  height: 70px;
  color: var(--ink);
  background: var(--glass);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  width: 27px;
  height: 27px;
  display: inline-block;
  transform: rotate(-6deg);
}

.brand-mark i {
  position: absolute;
  top: 5px;
  width: 14px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 45% 45%;
}

.brand-mark i:first-child {
  left: 2px;
  transform: rotate(24deg);
}

.brand-mark i:last-child {
  right: 2px;
  transform: rotate(-24deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 38px);
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 12px 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.76;
  transition: opacity 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 50%;
  bottom: 6px;
  left: 50%;
  height: 1px;
  content: "";
  background: currentColor;
  transition: right 220ms var(--ease), left 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="location"] {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a[aria-current="location"]::after {
  right: 0;
  left: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.fortune-shortcut {
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled .icon-button,
.site-header.is-scrolled .fortune-shortcut {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.icon-button:hover,
.fortune-shortcut:hover {
  border-color: currentColor;
  transform: translateY(-2px);
}

.icon-button {
  position: relative;
  border-radius: 50%;
}

.mood-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: opacity 220ms ease, transform 350ms var(--ease);
}

.mood-icon--sun {
  opacity: 0;
  transform: rotate(-60deg) scale(0.5);
}

:root[data-theme="night"] .mood-icon--moon {
  opacity: 0;
  transform: rotate(60deg) scale(0.5);
}

:root[data-theme="night"] .mood-icon--sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.fortune-shortcut {
  padding: 0 17px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.fortune-shortcut span {
  margin-right: 5px;
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 75% 36%, rgba(185, 89, 104, 0.22), transparent 29%),
    radial-gradient(circle at 33% 92%, rgba(193, 147, 87, 0.09), transparent 35%),
    linear-gradient(132deg, #1c1218 0%, #311923 55%, #24151b 100%);
  color: #fff8f1;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  content: "";
  background: linear-gradient(transparent, rgba(16, 8, 12, 0.28));
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background:
    repeating-linear-gradient(113deg, transparent 0 3px, rgba(255, 255, 255, 0.017) 3px 4px),
    repeating-linear-gradient(21deg, transparent 0 5px, rgba(255, 255, 255, 0.012) 5px 6px);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(222, 190, 141, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold);
}

.hero-orbit--one {
  top: 14%;
  right: -16%;
  width: min(70vw, 980px);
  height: min(47vw, 660px);
  transform: rotate(-14deg);
}

.hero-orbit--one::before {
  top: 62%;
  left: 3%;
}

.hero-orbit--two {
  bottom: -28%;
  left: -17%;
  width: min(62vw, 860px);
  height: min(38vw, 520px);
  transform: rotate(12deg);
}

.hero-orbit--two::before {
  top: 12%;
  right: 15%;
}

.hero-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-light--rose {
  top: 20%;
  right: 12%;
  width: 290px;
  height: 290px;
  background: rgba(207, 99, 117, 0.14);
}

.hero-light--gold {
  bottom: 10%;
  left: 38%;
  width: 180px;
  height: 180px;
  background: rgba(203, 158, 88, 0.09);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 132px 0 106px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(70px, 10vw, 150px);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.section-kicker,
.footer-eyebrow {
  margin: 0 0 27px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 248, 241, 0.7);
}

.eyebrow span {
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(66px, 8.3vw, 120px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin: 14px 0 0 clamp(20px, 4vw, 70px);
  color: #efc3c6;
  font-style: normal;
}

.hero-intro {
  max-width: 570px;
  margin: 38px 0 0;
  color: rgba(255, 248, 241, 0.7);
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 2;
  letter-spacing: 0.04em;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 230ms var(--ease), box-shadow 230ms ease, background-color 230ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--paper {
  background: #fff8f1;
  color: #301922;
  box-shadow: 0 15px 40px rgba(5, 0, 2, 0.17);
}

.button--paper:hover {
  box-shadow: 0 20px 46px rgba(5, 0, 2, 0.25);
}

.button--wine {
  margin-top: 28px;
  background: var(--wine);
  color: #fff8f1;
  box-shadow: 0 15px 35px rgba(120, 40, 58, 0.19);
}

.text-button,
.quiet-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.text-button {
  padding: 0 4px;
  color: rgba(255, 248, 241, 0.76);
  font-size: 13px;
  letter-spacing: 0.07em;
}

.text-button span {
  display: inline-block;
  margin-left: 8px;
  transition: transform 180ms ease;
}

.text-button:hover span {
  transform: translate(3px, -3px);
}

.hero-keepsake {
  position: relative;
  width: min(100%, 410px);
  justify-self: end;
  perspective: 1000px;
}

.keepsake-halo {
  position: absolute;
  inset: -13%;
  border: 1px solid rgba(232, 185, 194, 0.17);
  border-radius: 52% 48% 48% 52%;
  transform: rotate(10deg);
}

.keepsake-halo::after {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(222, 190, 141, 0.19);
  border-radius: 50%;
  content: "";
  transform: rotate(-21deg);
}

.keepsake-card {
  position: relative;
  min-height: 514px;
  overflow: hidden;
  padding: 29px 31px 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(255, 251, 245, 0.96), rgba(241, 223, 214, 0.92)),
    #f8efe8;
  color: #40242d;
  box-shadow: 0 38px 100px rgba(5, 0, 2, 0.33);
  transform: rotate(2.4deg);
  transition: transform 600ms var(--ease);
}

.keepsake-card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.12;
  background: repeating-linear-gradient(15deg, transparent 0 3px, #7d4f5a 3px 3.5px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-keepsake:hover .keepsake-card {
  transform: rotate(0) translateY(-8px);
}

.keepsake-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(64, 36, 45, 0.23);
  font-size: 9px;
  letter-spacing: 0.27em;
}

.keepsake-monogram {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 82px);
}

.keepsake-monogram i {
  color: var(--gold);
  font-size: 27px;
  font-weight: 400;
}

.keepsake-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}

.keepsake-divider::before,
.keepsake-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: rgba(64, 36, 45, 0.18);
}

.keepsake-card > p {
  margin: 20px 0 24px;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.9;
}

.keepsake-number {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(64, 36, 45, 0.18);
}

.keepsake-number strong {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.keepsake-number span {
  font-size: 8px;
  letter-spacing: 0.23em;
}

.floating-note {
  position: absolute;
  z-index: 3;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: rgba(36, 19, 25, 0.72);
  color: rgba(255, 248, 241, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
}

.floating-note--one {
  top: 17%;
  left: -24%;
  transform: rotate(-7deg);
}

.floating-note--two {
  right: -16%;
  bottom: 18%;
  transform: rotate(6deg);
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  right: 38px;
  bottom: 31px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 248, 241, 0.48);
  font-size: 8px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 48px;
  background: linear-gradient(rgba(255, 248, 241, 0.5), transparent);
}

.section {
  position: relative;
  padding: clamp(104px, 11vw, 158px) 0;
}

.section-shell,
.footer-shell {
  position: relative;
  width: var(--shell);
  margin: 0 auto;
}

.section-heading {
  max-width: 670px;
  margin-bottom: 70px;
}

.section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  align-items: end;
  gap: 80px;
}

.section-heading--split > p {
  max-width: 460px;
  margin: 0 0 7px auto;
}

.section-kicker {
  color: var(--wine);
}

.section-kicker--light {
  color: #d6ad69;
}

.section-heading h2,
.letter-intro h2,
.site-footer h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(47px, 5.6vw, 78px);
  font-weight: 400;
  line-height: 1.17;
  letter-spacing: -0.035em;
}

.section-heading h2 em {
  color: var(--wine);
  font-style: normal;
}

.section-heading > p:last-child,
.section-heading--split > p,
.letter-intro > p {
  color: var(--ink-soft);
  line-height: 2;
}

.section-heading--center > p:last-child {
  max-width: 580px;
  margin: 28px auto 0;
}

.time-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 70%, rgba(215, 138, 149, 0.1), transparent 25%),
    var(--paper);
}

.time-section::before {
  position: absolute;
  top: 7%;
  right: -7%;
  width: 280px;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.time-ledger {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.time-stat {
  min-height: 270px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-content: center;
  justify-content: center;
  padding: 35px 26px;
  text-align: center;
}

.time-label {
  grid-column: 1 / -1;
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
}

.time-stat strong {
  justify-self: end;
  font-family: var(--serif);
  font-size: clamp(53px, 6vw, 82px);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-unit {
  align-self: end;
  margin: 0 0 9px 8px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 18px;
}

.time-stat small {
  grid-column: 1 / -1;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.time-divider {
  display: flex;
  align-items: center;
  color: var(--gold);
}

.time-divider::before,
.time-divider::after {
  width: 1px;
  height: calc(50% - 25px);
  margin: auto;
  content: "";
  background: var(--line);
}

.time-divider span {
  margin: 12px 0;
  font-size: 11px;
}

.story-section {
  background: var(--paper-soft);
}

.story-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: clamp(70px, 10vw, 150px);
}

.story-shell > .section-heading {
  position: sticky;
  top: 130px;
  margin: 0;
}

.story-shell > .section-heading > p:last-child {
  margin-top: 30px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 116px 24px minmax(0, 1fr);
  gap: 22px;
  min-height: 230px;
}

.timeline-date {
  padding-top: 8px;
  text-align: right;
}

.timeline-date span {
  display: block;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.timeline-date small {
  display: inline-block;
  margin-top: 11px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.timeline-axis {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-axis::before {
  position: absolute;
  top: 22px;
  bottom: 0;
  width: 1px;
  content: "";
  background: var(--line);
}

.timeline-axis i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 13px;
  border: 3px solid var(--paper-soft);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 1px var(--wine);
}

.timeline-card {
  position: relative;
  margin-bottom: 55px;
  padding: 3px 0 0 30px;
  border-left: 1px solid transparent;
}

.timeline-card h3 {
  margin: 0 0 17px;
  font-family: var(--serif);
  font-size: clamp(23px, 2.4vw, 31px);
  font-weight: 400;
  line-height: 1.45;
}

.timeline-card p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

.timeline-number {
  position: absolute;
  top: -28px;
  right: 0;
  color: var(--line);
  font-family: var(--serif);
  font-size: 62px;
  line-height: 1;
}

.timeline-item--future .timeline-axis::before {
  background: repeating-linear-gradient(to bottom, var(--line) 0 5px, transparent 5px 10px);
}

.timeline-item--future .timeline-axis i {
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 20px rgba(189, 150, 87, 0.35);
}

.timeline-item--future .timeline-card {
  opacity: 0.8;
}

.memories-section {
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(114, 54, 69, 0.04), transparent 35%),
    var(--paper);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 25px;
  align-items: start;
}

.memory-card {
  position: relative;
  grid-column: span 4;
  display: block;
  padding: 12px 12px 19px;
  border: 1px solid rgba(88, 48, 59, 0.09);
  background: var(--paper-soft);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 45px rgba(71, 36, 45, 0.1);
  cursor: pointer;
  transform: rotate(var(--card-rotate, 0deg));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease), box-shadow 300ms ease;
}

.memory-card--1,
.memory-card--5 {
  --card-rotate: -1.6deg;
}

.memory-card--2,
.memory-card--6 {
  --card-rotate: 1.3deg;
}

.memory-card--3 {
  --card-rotate: -0.7deg;
  margin-top: 34px;
}

.memory-card--4 {
  --card-rotate: 1.1deg;
  margin-top: -10px;
}

.memory-card:hover {
  z-index: 2;
  box-shadow: 0 30px 70px rgba(71, 36, 45, 0.19);
  transform: rotate(0) translateY(-9px);
}

.memory-art,
.dialog-art {
  position: relative;
  overflow: hidden;
  display: block;
  isolation: isolate;
}

.memory-art {
  aspect-ratio: 4 / 3;
}

.memory-art > img,
.dialog-art > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-art > img[hidden],
.dialog-art > img[hidden] {
  display: none;
}

.memory-art.memory-art--photo::after,
.dialog-art.dialog-art[data-has-image="true"]::after {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, transparent 56%, rgba(24, 12, 17, 0.32));
  box-shadow: none;
  transform: none;
}

.memory-art::before,
.memory-art::after,
.dialog-art::before,
.dialog-art::after {
  position: absolute;
  content: "";
}

.memory-art--sunset,
.dialog-art[data-visual="sunset"] {
  background:
    radial-gradient(circle at 73% 47%, #f6c477 0 7%, rgba(246, 196, 119, 0.28) 8% 17%, transparent 18%),
    linear-gradient(165deg, #3b1b2b 5%, #9d4857 52%, #e9a077 100%);
}

.memory-art--sunset::before,
.dialog-art[data-visual="sunset"]::before {
  inset: 66% -10% -20%;
  border-radius: 50% 50% 0 0;
  background: #2a1b26;
  transform: rotate(-3deg);
}

.memory-art--sunset::after,
.dialog-art[data-visual="sunset"]::after {
  left: 15%;
  bottom: 8%;
  width: 54%;
  height: 1px;
  background: rgba(248, 212, 162, 0.48);
  box-shadow: 0 -8px 0 rgba(248, 212, 162, 0.13), 0 -17px 0 rgba(248, 212, 162, 0.08);
}

.memory-art--sea,
.dialog-art[data-visual="sea"] {
  background:
    radial-gradient(circle at 34% 44%, rgba(255, 245, 220, 0.8) 0 1.8%, transparent 2.3%),
    radial-gradient(circle at 40% 49%, rgba(255, 245, 220, 0.52) 0 1.5%, transparent 2%),
    linear-gradient(175deg, #8aa0aa, #4d6876 55%, #253c49 56%, #1d313c);
}

.memory-art--sea::before,
.dialog-art[data-visual="sea"]::before {
  inset: 58% -20% auto;
  height: 17%;
  border-top: 1px solid rgba(237, 228, 206, 0.55);
  border-radius: 50%;
  box-shadow: 0 12px 0 rgba(237, 228, 206, 0.11), 0 26px 0 rgba(237, 228, 206, 0.08);
}

.memory-art--rain,
.dialog-art[data-visual="rain"] {
  background:
    radial-gradient(circle at 73% 63%, rgba(239, 179, 105, 0.86) 0 3%, rgba(239, 179, 105, 0.18) 7%, transparent 16%),
    linear-gradient(145deg, #1c2832, #384553 54%, #613d46);
}

.memory-art--rain::before,
.dialog-art[data-visual="rain"]::before {
  inset: -30%;
  background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(231, 237, 239, 0.22) 14px 15px, transparent 15px 27px);
  transform: rotate(-8deg);
}

.memory-art--rain::after,
.dialog-art[data-visual="rain"]::after {
  right: 19%;
  bottom: 0;
  width: 2px;
  height: 42%;
  background: rgba(20, 22, 28, 0.7);
  box-shadow: 24px 12px 0 rgba(20, 22, 28, 0.58);
}

.memory-art--train,
.dialog-art[data-visual="train"] {
  background:
    linear-gradient(90deg, transparent 0 67%, rgba(255, 229, 180, 0.55) 67% 68%, transparent 68%),
    linear-gradient(#4c2837 0 52%, #d68372 53% 61%, #392633 63% 100%);
}

.memory-art--train::before,
.dialog-art[data-visual="train"]::before {
  inset: 22% -15% auto 8%;
  height: 2px;
  background: rgba(255, 222, 182, 0.61);
  box-shadow: 0 20px 0 rgba(255, 222, 182, 0.18), 0 80px 0 rgba(255, 222, 182, 0.12);
  transform: perspective(200px) rotateY(30deg);
}

.memory-art--train::after,
.dialog-art[data-visual="train"]::after {
  inset: 0 auto 0 29%;
  width: 5px;
  background: rgba(37, 20, 28, 0.52);
  box-shadow: 140px 0 0 rgba(37, 20, 28, 0.35);
}

.memory-art--kitchen,
.dialog-art[data-visual="kitchen"] {
  background:
    radial-gradient(ellipse at 50% 92%, rgba(255, 232, 188, 0.72), transparent 38%),
    radial-gradient(circle at 28% 30%, rgba(255, 202, 130, 0.75) 0 4%, rgba(255, 202, 130, 0.16) 9%, transparent 18%),
    radial-gradient(circle at 70% 23%, rgba(255, 190, 110, 0.52) 0 3%, transparent 14%),
    linear-gradient(155deg, #5d3237, #aa6559 53%, #d99a75);
}

.memory-art--kitchen::before,
.dialog-art[data-visual="kitchen"]::before {
  bottom: -13%;
  left: 17%;
  width: 66%;
  height: 43%;
  border: 2px solid rgba(71, 38, 41, 0.48);
  border-radius: 50%;
}

.memory-art--kitchen::after,
.dialog-art[data-visual="kitchen"]::after {
  bottom: 10%;
  left: 42%;
  width: 16%;
  height: 25%;
  border-radius: 50% 50% 30% 30%;
  background: rgba(255, 231, 190, 0.35);
}

.memory-art--stars,
.dialog-art[data-visual="stars"] {
  background:
    radial-gradient(circle at 16% 19%, #f8db9d 0 1px, transparent 2px),
    radial-gradient(circle at 37% 32%, #fff5dc 0 1px, transparent 1.7px),
    radial-gradient(circle at 73% 17%, #f8db9d 0 1.3px, transparent 2px),
    radial-gradient(circle at 87% 43%, #fff5dc 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 57% 61%, rgba(239, 167, 184, 0.8) 0 2%, rgba(239, 167, 184, 0.17) 5%, transparent 15%),
    radial-gradient(circle at 44% 64%, rgba(247, 215, 158, 0.8) 0 1.7%, rgba(247, 215, 158, 0.13) 5%, transparent 15%),
    linear-gradient(155deg, #101822, #222036 52%, #482837);
}

.memory-art--stars::before,
.dialog-art[data-visual="stars"]::before {
  right: 22%;
  bottom: 15%;
  width: 1px;
  height: 34%;
  background: linear-gradient(transparent, rgba(255, 231, 196, 0.36));
  transform: rotate(41deg);
}

.art-shape,
.art-index {
  position: absolute;
  z-index: 2;
}

.art-index {
  right: 12px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.art-shape--one {
  top: 14%;
  left: 12%;
  width: 37px;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.art-shape--two {
  top: 11%;
  left: calc(12% + 12px);
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.3);
}

.art-shape--three {
  right: 12%;
  bottom: 14%;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.memory-caption {
  display: block;
  padding: 18px 7px 0;
}

.memory-meta {
  display: block;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.memory-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.memory-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.reasons-section {
  overflow: hidden;
  background: var(--paper-soft);
}

.reasons-section::before {
  position: absolute;
  top: -23%;
  right: -8%;
  width: 560px;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.reasons-shell {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.reasons-shell > .section-heading {
  margin: 0;
}

.reasons-shell > .section-heading > p:not(.section-kicker) {
  margin-top: 27px;
}

.reason-deck {
  min-height: 630px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-content: center;
  perspective: 1000px;
}

.reason-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 24px 25px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(72, 35, 45, 0.07);
  transition: transform 400ms var(--ease), border-color 250ms ease;
}

.reason-card:nth-child(odd) {
  transform: rotate(-1.3deg);
}

.reason-card:nth-child(even) {
  transform: rotate(1.3deg) translateY(16px);
}

.reason-card:hover,
.reason-card:focus-visible {
  z-index: 2;
  border-color: var(--rose);
  transform: rotate(0) translateY(-6px);
}

.reason-card > span {
  color: var(--wine);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.reason-card p {
  position: relative;
  z-index: 1;
  margin: 31px 26px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.reason-card > i {
  position: absolute;
  right: 18px;
  bottom: 4px;
  color: var(--rose-soft);
  font-family: var(--serif);
  font-size: 62px;
  font-style: normal;
  line-height: 1;
}

.letter-section {
  min-height: 920px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 78% 25%, rgba(173, 78, 96, 0.16), transparent 24%),
    linear-gradient(140deg, #21141a, #3e202b 63%, #27151c);
  color: #fff8f1;
}

.letter-backdrop span {
  position: absolute;
  border: 1px solid rgba(225, 184, 126, 0.15);
  border-radius: 50%;
}

.letter-backdrop span:nth-child(1) {
  top: -18%;
  right: -12%;
  width: 620px;
  height: 620px;
}

.letter-backdrop span:nth-child(2) {
  top: -8%;
  right: -2%;
  width: 430px;
  height: 430px;
}

.letter-backdrop span:nth-child(3) {
  bottom: -34%;
  left: -12%;
  width: 580px;
  height: 580px;
}

.letter-shell {
  display: grid;
  grid-template-columns: minmax(290px, 0.68fr) minmax(480px, 1.32fr);
  align-items: center;
  gap: clamp(70px, 10vw, 150px);
}

.letter-intro h2 {
  max-width: 500px;
  font-size: clamp(47px, 5vw, 70px);
}

.letter-intro > p:not(.section-kicker) {
  max-width: 430px;
  margin-top: 28px;
  color: rgba(255, 248, 241, 0.62);
}

.seal-button {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 37px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff8f1;
  cursor: pointer;
}

.seal {
  width: 59px;
  height: 59px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 231, 219, 0.22);
  border-radius: 44% 49% 43% 51%;
  background: linear-gradient(145deg, #a33d52, #6d1e31);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.045), 0 13px 28px rgba(0, 0, 0, 0.3);
  font-family: var(--serif);
  font-size: 19px;
  transform: rotate(-7deg);
  transition: transform 350ms var(--ease), box-shadow 350ms ease;
}

.seal-button:hover .seal {
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.065), 0 18px 35px rgba(0, 0, 0, 0.36);
  transform: rotate(0) scale(1.06);
}

.seal-label {
  border-bottom: 1px solid rgba(255, 248, 241, 0.34);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.letter-paper {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  margin: 0;
  background:
    linear-gradient(95deg, rgba(142, 85, 82, 0.035) 0 1px, transparent 1px 100%),
    #f8eee4;
  background-size: 24px 100%, auto;
  color: #462830;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.34);
  transform: rotate(1deg);
  transition: transform 650ms var(--ease), min-height 650ms var(--ease);
}

.letter-paper::before {
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(95, 56, 65, 0.18);
  content: "";
  pointer-events: none;
}

.letter-paper[data-open="true"] {
  min-height: 685px;
  transform: rotate(0);
}

.paper-fold {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 72px;
  height: 72px;
  background: linear-gradient(225deg, #321b23 0 49%, #eadccf 50% 100%);
  box-shadow: -5px 5px 16px rgba(58, 30, 38, 0.13);
}

.letter-paper-inner {
  position: relative;
  z-index: 1;
  padding: 48px 56px 51px;
  filter: none;
  opacity: 1;
  transform: translateY(0);
  transition: filter 550ms ease, opacity 550ms ease, transform 650ms var(--ease);
}

.js .letter-paper[data-open="false"] .letter-paper-inner {
  filter: blur(5px);
  opacity: 0.12;
  transform: translateY(20px);
}

.letter-paper[data-open="true"] .letter-paper-inner {
  filter: none;
  opacity: 1;
  transform: translateY(0);
}

.letter-closed-message {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  place-content: center;
  text-align: center;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.js .letter-paper[data-open="false"] .letter-closed-message {
  display: grid;
}

.letter-closed-message span {
  font-family: var(--serif);
  font-size: 25px;
}

.letter-closed-message small {
  margin-top: 10px;
  color: #876e73;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.letter-paper[data-open="true"] .letter-closed-message {
  visibility: hidden;
  opacity: 0;
}

.letter-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(70, 40, 48, 0.19);
  color: #896f73;
  font-size: 8px;
  letter-spacing: 0.18em;
}

.letter-paper h3 {
  margin: 42px 0 30px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.letter-body p {
  margin: 0 0 19px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.05;
  text-indent: 2em;
}

.letter-signature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: end;
  margin-top: 31px;
  padding-right: 20px;
  font-family: var(--serif);
}

.letter-signature span {
  color: #876e73;
  font-size: 12px;
}

.letter-signature strong {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 400;
}

.letter-signature i {
  width: 82px;
  height: 1px;
  margin-top: 10px;
  background: var(--gold);
}

.future-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 97% 0%, rgba(216, 139, 150, 0.12), transparent 30%),
    var(--paper);
}

.future-progress-card {
  width: 260px;
  justify-self: end;
  padding: 22px 24px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: 0 12px 35px rgba(68, 31, 42, 0.06);
}

.future-progress-card > span {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.future-progress-card strong {
  display: block;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.future-progress-card b {
  color: var(--wine);
  font-size: 38px;
  font-weight: 400;
}

.future-progress-track {
  height: 3px;
  overflow: hidden;
  margin-top: 14px;
  background: var(--paper-deep);
}

.future-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--rose));
  transition: width 500ms var(--ease);
}

.wish-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.wish-item {
  position: relative;
  min-height: 138px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 19px;
  padding: 25px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 250ms ease;
}

.wish-item:hover {
  background: var(--paper-soft);
}

.wish-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.wish-item input:focus-visible + .wish-check {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.wish-check {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 230ms ease, background 230ms ease;
}

.wish-check i {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 19px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
  transition: opacity 180ms ease, transform 300ms var(--ease);
}

.wish-item input:checked + .wish-check {
  border-color: var(--wine);
  background: var(--wine);
}

.wish-item input:checked + .wish-check i {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.wish-copy strong,
.wish-copy small {
  display: block;
}

.wish-copy strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  transition: color 230ms ease;
}

.wish-copy small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.wish-item input:checked ~ .wish-copy strong {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--rose);
}

.wish-number {
  align-self: start;
  color: var(--line);
  font-family: var(--serif);
  font-size: 37px;
}

.future-note {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 45px;
  margin-top: 80px;
  text-align: center;
}

.future-note-mark {
  position: absolute;
  top: -34px;
  left: 50%;
  color: var(--rose-soft);
  font-family: var(--serif);
  font-size: 95px;
  line-height: 1;
  transform: translateX(-50%);
}

.future-note blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.65;
}

.quiet-button {
  padding: 0 3px;
  border-bottom: 1px solid currentColor;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.site-footer {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 110px 0 48px;
  background:
    radial-gradient(circle at 50% 38%, rgba(155, 62, 80, 0.24), transparent 29%),
    linear-gradient(145deg, #1c1117, #301923 61%, #1e1218);
  color: #fff8f1;
  text-align: center;
}

.site-footer::before,
.site-footer::after {
  position: absolute;
  border: 1px solid rgba(220, 182, 122, 0.13);
  border-radius: 50%;
  content: "";
}

.site-footer::before {
  top: -38%;
  left: 50%;
  width: 820px;
  height: 820px;
  transform: translateX(-50%);
}

.site-footer::after {
  top: -20%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translateX(-50%);
}

.footer-glow {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201, 100, 117, 0.1);
  filter: blur(70px);
  transform: translateX(-50%);
}

.footer-shell {
  z-index: 2;
}

.footer-eyebrow {
  color: rgba(255, 248, 241, 0.48);
}

.site-footer h2 {
  max-width: 790px;
  margin: 0 auto;
  font-size: clamp(44px, 6vw, 76px);
}

.footer-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  margin-top: 42px;
  font-family: var(--serif);
  font-size: 22px;
}

.footer-pair i {
  color: var(--gold);
  font-size: 14px;
}

.secret-heart {
  position: relative;
  width: 56px;
  height: 56px;
  margin-top: 45px;
  border: 1px solid rgba(255, 248, 241, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--rose);
  cursor: pointer;
  transition: transform 250ms var(--ease), background 250ms ease;
}

.secret-heart:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
}

.secret-heart.is-counting {
  animation: heartbeat 380ms var(--ease);
}

.footer-secret {
  max-width: 520px;
  margin: 22px auto 0;
  color: #edc4c8;
  font-family: var(--serif);
  font-size: 15px;
}

.footer-secret[hidden] {
  display: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 88px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 248, 241, 0.12);
  color: rgba(255, 248, 241, 0.35);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.memory-dialog,
.fortune-dialog {
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.memory-dialog {
  width: min(960px, calc(100vw - 42px));
}

.memory-dialog::backdrop,
.fortune-dialog::backdrop {
  background: rgba(18, 10, 14, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.memory-dialog[open],
.fortune-dialog[open] {
  animation: dialog-in 360ms var(--ease);
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  overflow: hidden;
  background: #f7eee6;
  color: #321d24;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.48);
}

.dialog-art {
  min-height: 560px;
}

.dialog-art > span {
  position: absolute;
  right: 22px;
  bottom: 16px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.73);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.dialog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 43px 38px;
}

.dialog-copy > p {
  margin: 0 0 18px;
  color: #876e73;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.dialog-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 43px);
  font-weight: 400;
  line-height: 1.5;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(61, 32, 41, 0.19);
  border-radius: 50%;
  background: rgba(249, 241, 234, 0.8);
  color: #3b212a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dialog-nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 55px;
  padding-top: 20px;
  border-top: 1px solid rgba(61, 32, 41, 0.15);
}

.dialog-nav button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f555d;
  font-size: 11px;
  cursor: pointer;
}

.fortune-dialog {
  width: min(470px, calc(100vw - 36px));
}

.fortune-paper {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 65px 48px 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background:
    radial-gradient(circle at 50% 12%, rgba(217, 139, 151, 0.2), transparent 27%),
    #f8eee5;
  color: #3b2129;
  text-align: center;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.48);
}

.fortune-paper::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(72, 38, 48, 0.14);
  content: "";
  pointer-events: none;
}

.fortune-paper > p {
  margin: 0;
  color: #8b6c73;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.fortune-star {
  margin-top: 27px;
  color: #b88c4f;
  font-size: 19px;
}

.fortune-paper h2 {
  margin: 11px 0 20px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.fortune-paper blockquote {
  min-height: 80px;
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.8;
}

.fortune-paper .quiet-button {
  margin-top: 32px;
  color: #755960;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 220ms ease, transform 350ms var(--ease);
}

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

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 850ms ease, transform 850ms var(--ease);
}

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

.heart-burst {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  font-size: 15px;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: heart-burst 1100ms var(--ease) forwards;
}

.hero .reveal.is-visible {
  animation: hero-in 1000ms var(--ease) both;
}

.hero-keepsake.reveal.is-visible {
  animation-delay: 140ms;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  38% { transform: scale(1.23); }
  68% { transform: scale(0.94); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heart-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(0); }
  15% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1.05) rotate(var(--burst-r));
  }
}

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

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    min-height: 44px;
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 48px);
    overflow-x: auto;
    padding: 0 max(18px, calc((100vw - 760px) / 2));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(29, 15, 21, 0.86);
    color: #fff7f0;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .site-header.is-scrolled .nav-links {
    border-color: var(--line);
    background: var(--glass);
    color: var(--ink);
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 11px 0 9px;
    font-size: 11px;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 60px;
  }

  .hero h1 {
    font-size: clamp(65px, 9.5vw, 90px);
  }

  .floating-note--one {
    left: -9%;
  }

  .floating-note--two {
    right: -4%;
  }

  .story-shell {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 65px;
  }

  .reasons-shell {
    gap: 65px;
  }

  .reason-card {
    min-height: 190px;
  }

  .letter-shell {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 60px;
  }

  .letter-paper-inner {
    padding-right: 44px;
    padding-left: 44px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 36px, 680px);
  }

  .site-header {
    height: 72px;
  }

  .fortune-shortcut {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    min-height: 100svh;
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 122px 0 120px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero h1 {
    font-size: clamp(62px, 16vw, 95px);
  }

  .hero h1 em {
    margin-left: clamp(12px, 6vw, 55px);
  }

  .hero-keepsake {
    width: min(82%, 430px);
    justify-self: center;
  }

  .floating-note--one {
    left: -15%;
  }

  .floating-note--two {
    right: -12%;
  }

  .scroll-cue {
    right: 18px;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading--split > p {
    margin-left: 0;
  }

  .time-ledger {
    grid-template-columns: 1fr;
  }

  .time-stat {
    min-height: 220px;
  }

  .time-divider {
    height: 1px;
  }

  .time-divider::before,
  .time-divider::after {
    width: calc(50% - 25px);
    height: 1px;
  }

  .time-divider span {
    margin: 0 12px;
  }

  .story-shell,
  .reasons-shell,
  .letter-shell {
    grid-template-columns: 1fr;
  }

  .story-shell > .section-heading {
    position: static;
    margin-bottom: 20px;
  }

  .memory-card {
    grid-column: span 6;
  }

  .memory-card--3,
  .memory-card--4 {
    margin-top: 0;
  }

  .reasons-shell {
    gap: 50px;
  }

  .reason-deck {
    min-height: auto;
  }

  .letter-section {
    min-height: auto;
  }

  .letter-shell {
    gap: 58px;
  }

  .letter-paper {
    min-height: 600px;
  }

  .future-note {
    flex-direction: column;
    align-items: center;
    gap: 23px;
  }

  .dialog-shell {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 34px);
    overflow-y: auto;
  }

  .dialog-art {
    min-height: 48svh;
  }

  .dialog-copy {
    padding: 35px 30px 30px;
  }

  .dialog-nav {
    margin-top: 30px;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  html {
    scroll-padding-top: 112px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 64px;
  }

  .brand {
    font-size: 13px;
  }

  .hero-shell {
    padding-top: 108px;
    gap: 58px;
  }

  .eyebrow,
  .section-kicker,
  .footer-eyebrow {
    letter-spacing: 0.2em;
  }

  .eyebrow {
    font-size: 9px;
  }

  .hero h1 {
    font-size: clamp(56px, 18.5vw, 78px);
  }

  .hero-intro {
    margin-top: 28px;
    font-size: 16px;
    line-height: 1.9;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    margin-top: 33px;
  }

  .text-button {
    text-align: center;
  }

  .hero-keepsake {
    width: calc(100% - 28px);
  }

  .keepsake-card {
    min-height: 455px;
    padding: 25px 25px 22px;
  }

  .keepsake-monogram {
    height: 180px;
  }

  .floating-note {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 90px 0;
  }

  .section-heading {
    margin-bottom: 52px;
  }

  .section-heading h2,
  .letter-intro h2,
  .site-footer h2 {
    font-size: clamp(40px, 13.2vw, 58px);
  }

  .timeline-item {
    grid-template-columns: 19px 1fr;
    gap: 16px;
    min-height: 0;
    padding-bottom: 57px;
  }

  .timeline-date {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .timeline-axis {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .timeline-card {
    grid-column: 2;
    grid-row: 2;
    margin: 10px 0 0;
    padding-left: 0;
  }

  .timeline-number {
    top: -17px;
    font-size: 45px;
  }

  .memory-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .memory-card {
    grid-column: auto;
  }

  .reason-deck {
    grid-template-columns: 1fr;
  }

  .reason-card:nth-child(even) {
    transform: rotate(0.8deg);
  }

  .reason-card:nth-child(odd) {
    transform: rotate(-0.8deg);
  }

  .letter-paper,
  .letter-paper[data-open="true"] {
    min-height: 710px;
  }

  .letter-paper-inner {
    padding: 42px 29px 40px;
  }

  .letter-heading span:first-child {
    max-width: 180px;
  }

  .letter-paper h3 {
    margin-top: 35px;
  }

  .letter-body p {
    font-size: 15px;
    line-height: 1.95;
  }

  .wish-list {
    grid-template-columns: 1fr;
  }

  .wish-item {
    min-height: 126px;
    grid-template-columns: 44px 1fr auto;
    gap: 15px;
    padding: 22px 20px;
  }

  .wish-check {
    width: 42px;
    height: 42px;
  }

  .wish-check i {
    top: 11px;
    left: 10px;
  }

  .future-progress-card {
    width: 100%;
    justify-self: stretch;
  }

  .site-footer {
    min-height: 660px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 11px;
  }

  .memory-dialog {
    width: calc(100vw - 20px);
  }

  .dialog-art {
    min-height: 43svh;
  }

  .fortune-paper {
    min-height: 460px;
    padding: 62px 34px 40px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}
