@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Noto+Serif+SC:wght@500;600;700&display=swap");

:root {
  --ink: #3e3036;
  --muted: #776870;
  --paper: #fffaf8;
  --blush: #f8ebe9;
  --rose: #cb7f88;
  --rose-deep: #a95968;
  --sage: #687a6f;
  --line: rgba(62, 48, 54, 0.16);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

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

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

.hero {
  position: relative;
  min-height: min(760px, 92vh);
  overflow: hidden;
  isolation: isolate;
  color: #fffaf8;
  background: url("assets/blossoms.jpg") center 38% / cover no-repeat;
}

.hero__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(61, 39, 47, 0.28);
}

.site-nav,
.hero__content,
.hero__caption {
  position: relative;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.wordmark__dot {
  width: 9px;
  height: 9px;
  border: 2px solid #fffaf8;
  border-radius: 50%;
}

.nav-link {
  opacity: 0.88;
  transition: opacity 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  opacity: 1;
}

.hero__content {
  padding-top: clamp(100px, 17vh, 170px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.eyebrow {
  color: rgba(255, 250, 248, 0.82);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

h1 em {
  color: #ffe0df;
  font-style: normal;
}

.hero__lead {
  max-width: 420px;
  margin-bottom: 34px;
  color: rgba(255, 250, 248, 0.9);
  font-size: 1.05rem;
}

.primary-action,
.heart-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 250, 248, 0.7);
  border-radius: 999px;
  padding: 10px 18px;
  color: #fffaf8;
  background: rgba(255, 250, 248, 0.12);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible,
.heart-button:hover,
.heart-button:focus-visible {
  border-color: #fffaf8;
  background: rgba(255, 250, 248, 0.24);
  transform: translateY(-1px);
}

.hero__caption {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  color: rgba(255, 250, 248, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-align: right;
  text-transform: uppercase;
}

.section-shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 104px 0;
}

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

.welcome {
  width: 100%;
  background: var(--blush);
}

.welcome .section-shell {
  padding-top: 92px;
  padding-bottom: 92px;
}

.welcome__grid,
.memory__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(48px, 9vw, 150px);
  align-items: end;
}

h2 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.display-note {
  margin-bottom: 0;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.8;
}

.duo-signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.signature-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.signature-person__avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  line-height: 1;
}

.signature-person__avatar img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.duo-signature__amp {
  color: var(--rose);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.welcome__copy {
  max-width: 380px;
  color: var(--muted);
}

.welcome__copy p {
  margin-bottom: 24px;
}

.heart-button {
  border-color: rgba(169, 89, 104, 0.42);
  color: var(--rose-deep);
  background: transparent;
}

.heart-button:hover,
.heart-button:focus-visible {
  border-color: var(--rose-deep);
  background: rgba(203, 127, 136, 0.08);
}

.heart-button__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.heart-button.is-active .heart-button__icon {
  color: var(--rose-deep);
}

.tiny-status {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: var(--sage);
  font-size: 0.83rem;
}

.celebration-layer {
  position: fixed;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.celebration-particle {
  position: absolute;
  left: var(--origin-x);
  top: var(--origin-y);
  color: var(--particle-color);
  font-size: var(--particle-size);
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  animation: celebrate 900ms cubic-bezier(0.16, 0.76, 0.32, 1) var(--particle-delay) both;
}

@keyframes celebrate {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--particle-x)), calc(-50% + var(--particle-y))) scale(1) rotate(var(--particle-rotation));
  }
}

@media (prefers-reduced-motion: reduce) {
  .celebration-particle {
    animation-duration: 1ms;
  }
}

.memory {
  border-bottom: 1px solid var(--line);
  padding-bottom: 120px;
}

.memory__grid {
  align-items: start;
}

.memory h2 {
  margin-bottom: 12px;
}

.memory__date {
  margin: 0;
  color: var(--sage);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.memory__text {
  max-width: 380px;
  margin: 18px 0 0;
  color: var(--muted);
}

.memory__wish {
  margin: 0;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--rose-deep);
  transition: background 180ms ease, border-color 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--rose-deep);
  background: rgba(203, 127, 136, 0.08);
}

:focus-visible {
  outline: 3px solid rgba(255, 224, 223, 0.95);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-nav,
  .hero__content,
  .hero__caption,
  .section-shell,
  .site-footer {
    width: min(100% - 40px, 560px);
  }

  .hero {
    min-height: 690px;
    background-position: 58% center;
  }

  .site-nav {
    padding-top: 22px;
  }

  .nav-link {
    font-size: 0.72rem;
  }

  .hero__content {
    padding-top: 135px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero__lead {
    max-width: 300px;
    font-size: 0.95rem;
  }

  .section-shell {
    padding: 72px 0;
  }

  .welcome .section-shell {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .welcome__grid,
  .memory__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
  }

  .welcome__copy,
  .memory__text,
  .memory__copy {
    max-width: none;
  }

  .memory {
    padding-bottom: 82px;
  }

  .site-footer {
    align-items: flex-start;
    gap: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
