:root {
  color-scheme: light dark;
  --ink: #11191a;
  --ink-soft: #263233;
  --paper: #f7f5f2;
  --paper-muted: #e9eeeb;
  --rose: #d72f5e;
  --rose-dark: #a91743;
  --blush: #efd8e0;
  --moss: #759388;
  --white: #ffffff;
  --line-light: rgba(255, 255, 255, 0.22);
  --line-dark: rgba(17, 25, 26, 0.18);
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

.no-js body {
  overflow: auto;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.section-shell {
  width: min(calc(100% - 96px), var(--shell));
  margin: 0 auto;
}

#letter,
#question {
  scroll-margin-top: 72px;
}

.section-index {
  margin: 0 0 28px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  transition: opacity 800ms ease, visibility 800ms ease;
}

.no-js .intro {
  display: none;
}

.intro.is-opening {
  opacity: 0;
  visibility: hidden;
}

.intro.is-hidden {
  display: none;
}

.intro__media,
.intro__veil {
  position: absolute;
  inset: 0;
}

.intro__media {
  background: url("assets/roses.jpg") center / cover no-repeat;
  filter: saturate(0.7) brightness(0.52);
  transform: scale(1.05);
  animation: intro-drift 14s ease-in-out infinite alternate;
}

.intro__veil {
  background: rgba(7, 14, 15, 0.6);
}

.intro__content {
  position: relative;
  width: min(88vw, 720px);
  padding: 32px;
  text-align: center;
}

.intro__eyebrow {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0;
}

.intro h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0;
}

.intro h2 span {
  color: var(--blush);
}

.intro__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  margin-top: 44px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.intro__button:hover,
.intro__button:focus-visible {
  border-color: var(--white);
  background: rgba(215, 47, 94, 0.24);
  transform: translateY(-4px);
  outline: none;
}

.intro__heart {
  display: block;
  margin-bottom: 6px;
  color: #ff5a7f;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
  animation: heartbeat 1.8s ease-in-out infinite;
}

.intro__button > span:last-child {
  font-size: 14px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 14px 42px;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: min-height 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  background: rgba(13, 22, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.monogram {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.music-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-control__label {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.music-control__label strong {
  font-size: 13px;
  font-weight: 600;
}

.music-control__label small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.music-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: rgba(11, 19, 20, 0.28);
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  border-color: var(--white);
  background: rgba(215, 47, 94, 0.35);
  transform: scale(1.05);
  outline: none;
}

.music-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 20px;
  height: 20px;
}

.music-bars i {
  display: block;
  width: 2px;
  height: 7px;
  background: currentColor;
  transform-origin: center;
}

.music-toggle.is-playing .music-bars i {
  animation: music-bar 820ms ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-bars i:nth-child(2) {
  animation-delay: 180ms;
}

.music-toggle.is-playing .music-bars i:nth-child(3) {
  animation-delay: 360ms;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media {
  --move-x: 0px;
  --move-y: 0px;
  background: url("assets/roses.jpg") center / cover no-repeat;
  filter: saturate(0.84) contrast(1.06);
  transform: scale(1.055) translate3d(var(--move-x), var(--move-y), 0);
  transition: transform 700ms ease-out;
}

.hero__veil {
  background: rgba(7, 14, 15, 0.54);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 96px), var(--shell));
  margin: 38px auto 0;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms ease 180ms, transform 900ms ease 180ms;
}

body.is-open .hero__content,
.no-js .hero__content {
  opacity: 1;
  transform: translateY(0);
}

.hero__kicker {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 96px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

.hero__line {
  margin: 28px 0 34px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 25px;
  line-height: 1.75;
}

.heart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  color: #ff5378;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.heart-button::before {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  animation: ring-breathe 2.4s ease-in-out infinite;
}

.heart-button span {
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  animation: heartbeat 1.8s ease-in-out infinite;
}

.heart-button:hover,
.heart-button:focus-visible {
  color: var(--white);
  background: var(--rose);
  transform: scale(1.06);
  outline: none;
}

.hero__whisper {
  min-height: 24px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: 44px;
  bottom: 36px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
}

.scroll-cue span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  animation: scroll-dot 1.9s ease-in-out infinite;
}

.letter {
  padding: 138px 0 148px;
  background: var(--paper);
}

.letter__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(420px, 1.35fr);
  gap: 110px;
}

.letter__heading h2,
.reasons__header h2,
.question h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.letter__heading h2 {
  font-size: 48px;
  line-height: 1.48;
}

.letter__body {
  padding-top: 10px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: 19px;
  line-height: 2.08;
}

.letter__body p {
  margin: 0 0 26px;
}

.letter__salutation {
  color: var(--rose-dark);
  font-size: 24px;
}

.letter__signature {
  margin-top: 46px !important;
  text-align: right;
  font-size: 15px;
}

.reasons {
  padding: 130px 0 140px;
  color: var(--white);
  background: var(--ink);
}

.reasons .section-index {
  color: #ff6f8f;
}

.reasons__header {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.reasons__header .section-index {
  grid-column: 1 / -1;
  margin-bottom: -38px;
}

.reasons__header h2 {
  font-size: 48px;
  line-height: 1.35;
}

.reasons__header > p:last-child {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  line-height: 1.8;
}

.reasons__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.reasons__list li {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.7fr) 1fr;
  gap: 38px;
  align-items: center;
  min-height: 152px;
  border-bottom: 1px solid var(--line-light);
}

.reasons__number {
  color: #ff6f8f;
  font-family: Georgia, serif;
  font-size: 13px;
}

.reasons__list h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 25px;
  font-weight: 500;
}

.reasons__list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.9;
}

.promise {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 72svh;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: var(--ink);
}

.promise__media,
.promise__veil {
  position: absolute;
  inset: 0;
}

.promise__media {
  background: url("assets/roses.jpg") center 62% / cover no-repeat;
  filter: saturate(0.72) contrast(1.08);
  transform: scale(1.03);
}

.promise__veil {
  background: rgba(10, 17, 18, 0.62);
}

.promise blockquote {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), 860px);
  margin: 0;
}

.promise blockquote p {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 42px;
  line-height: 1.72;
}

.promise blockquote footer {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.question {
  position: relative;
  overflow: hidden;
  padding: 148px 0 136px;
  background: var(--paper-muted);
}

.question__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.question .section-index {
  margin-bottom: 32px;
}

.question h2 {
  font-size: 56px;
  line-height: 1.45;
}

.question__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 52px;
}

.answer-button {
  min-width: 152px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.answer-button:hover,
.answer-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.answer-button--yes {
  border: 1px solid var(--rose);
  color: var(--white);
  background: var(--rose);
}

.answer-button--yes:hover,
.answer-button--yes:focus-visible {
  border-color: var(--rose-dark);
  background: var(--rose-dark);
}

.answer-button--wait {
  border: 1px solid var(--line-dark);
  color: var(--ink);
  background: transparent;
}

.answer-button--wait:hover,
.answer-button--wait:focus-visible {
  border-color: var(--ink);
}

.question__response {
  min-height: 34px;
  margin: 32px 0 0;
  color: var(--rose-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  line-height: 1.7;
}

.question__heart {
  position: absolute;
  z-index: -1;
  right: -44px;
  bottom: -206px;
  color: rgba(215, 47, 94, 0.08);
  font-family: Georgia, serif;
  font-size: 430px;
  line-height: 1;
  transform: rotate(-8deg);
  user-select: none;
}

.question.is-answered .question__actions {
  opacity: 0.44;
  pointer-events: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 32px 42px;
  color: rgba(255, 255, 255, 0.58);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer__credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-footer a {
  text-underline-offset: 3px;
}

.music-mount,
.music-frame {
  position: fixed;
  left: -9999px;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: 28px;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: var(--white);
  background: rgba(13, 22, 23, 0.92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

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

@keyframes intro-drift {
  from { transform: scale(1.05) translate3d(-5px, 0, 0); }
  to { transform: scale(1.09) translate3d(5px, -3px, 0); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  16% { transform: scale(1.13); }
  30% { transform: scale(1); }
  44% { transform: scale(1.08); }
  58% { transform: scale(1); }
}

@keyframes ring-breathe {
  0%, 100% { opacity: 0.34; transform: scale(0.96); }
  50% { opacity: 0.72; transform: scale(1.04); }
}

@keyframes music-bar {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1.65); }
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(-14px); }
  36% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 900px) {
  .section-shell,
  .hero__content {
    width: min(calc(100% - 56px), var(--shell));
  }

  .hero h1 {
    font-size: 72px;
  }

  .letter__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .letter__body {
    max-width: 700px;
    margin-left: auto;
  }

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

  .reasons__header .section-index {
    grid-column: auto;
    margin-bottom: 0;
  }

  .reasons__list li {
    grid-template-columns: 52px 0.8fr 1.2fr;
    gap: 24px;
  }

  .promise blockquote p {
    font-size: 34px;
  }

  .question h2 {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .hero__content {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .music-control__label {
    display: none;
  }

  .music-toggle {
    width: 42px;
    height: 42px;
  }

  .intro__content {
    width: calc(100% - 24px);
    padding: 24px 14px;
  }

  .intro h2 {
    font-size: 38px;
    line-height: 1.42;
  }

  .intro__button {
    width: 116px;
    height: 116px;
    margin-top: 38px;
  }

  .hero {
    min-height: 90svh;
    align-items: flex-end;
  }

  .hero__media {
    background-position: 48% center;
  }

  .hero__content {
    margin: 0 auto;
    padding: 110px 0 60px;
  }

  .hero__kicker {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero__line {
    margin: 22px 0 28px;
    font-size: 19px;
    line-height: 1.75;
  }

  .heart-button {
    width: 72px;
    height: 72px;
  }

  .heart-button span {
    font-size: 32px;
  }

  .scroll-cue {
    right: 18px;
    bottom: 24px;
    width: 36px;
    height: 58px;
  }

  .letter {
    padding: 96px 0 104px;
  }

  .letter__grid {
    gap: 38px;
  }

  .letter__heading h2,
  .reasons__header h2 {
    font-size: 35px;
  }

  .letter__body {
    font-size: 17px;
    line-height: 2;
  }

  .letter__salutation {
    font-size: 21px;
  }

  .reasons {
    padding: 96px 0 104px;
  }

  .reasons__header {
    margin-bottom: 52px;
  }

  .reasons__list li {
    grid-template-columns: 42px 1fr;
    gap: 12px 16px;
    min-height: 0;
    padding: 28px 0;
  }

  .reasons__list h3 {
    font-size: 21px;
  }

  .reasons__list p {
    grid-column: 2;
  }

  .promise {
    min-height: 66svh;
  }

  .promise blockquote {
    width: calc(100% - 40px);
  }

  .promise blockquote p {
    font-size: 26px;
    line-height: 1.8;
  }

  .question {
    padding: 104px 0 94px;
  }

  .question h2 {
    font-size: 36px;
    line-height: 1.58;
  }

  .question__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin: 40px auto 0;
  }

  .answer-button {
    width: 100%;
  }

  .question__heart {
    right: -110px;
    bottom: -134px;
    font-size: 290px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
  }

  .site-footer__credits {
    justify-content: flex-start;
    line-height: 1.8;
  }
}

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

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

  .hero__media {
    transform: scale(1.03);
  }
}
