:root {
  --bg: #160c0c;
  --fg: #fff8ee;
  --paper: #fff6eb;
  --wine: #8f2f28;
  --amber: #f1b184;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

button {
  font: inherit;
}

::selection {
  background: #c64b3b;
  color: var(--fg);
}

.hero {
  min-height: 86svh;
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: url("./hero-wuyu.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 54%, rgba(116, 30, 23, 0.12), transparent 32%),
    linear-gradient(90deg, rgba(18, 10, 10, 0.88) 0%, rgba(34, 14, 13, 0.66) 47%, rgba(20, 10, 10, 0.36) 100%),
    linear-gradient(180deg, rgba(11, 7, 7, 0.32) 0%, rgba(16, 9, 9, 0.5) 100%);
}

.petal-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -24px;
  display: block;
  border-radius: 70% 30% 70% 30%;
  background: linear-gradient(135deg, #d85b4a, #8b241f);
  opacity: 0.42;
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1152px);
  min-height: 86svh;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #f8ddc6;
  font-size: 0.9rem;
}

.topbar span:first-child {
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 760px;
  padding: 80px 0 32px;
}

.eyebrow,
.paper-kicker {
  margin: 0;
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 20px 0 0;
  font-size: clamp(2.55rem, 8vw, 4.55rem);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #ffe8d2;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.primary-action,
.secondary-action,
.letter-button,
.final-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.primary-action {
  border: 1px solid #ffd5b7;
  background: #fff4e6;
  color: #5d1815;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.secondary-action {
  border: 1px solid rgba(255, 238, 220, 0.52);
  color: var(--fg);
}

.primary-action:hover,
.secondary-action:hover,
.letter-button:hover,
.final-link:hover {
  transform: translateY(-2px);
}

.secondary-action:hover,
.final-link:hover {
  background: rgba(255, 248, 238, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  color: #ffe4ca;
}

.hero-stats p {
  margin: 0;
  line-height: 1.5;
}

.hero-stats strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
}

.letter-section {
  background: var(--paper);
  color: #241313;
  padding: clamp(64px, 8vw, 96px) 20px;
}

.letter-grid {
  width: min(100%, 1152px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
}

.letter-paper {
  min-height: 520px;
  border: 1px solid #edd5c2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 246, 232, 0.72)),
    repeating-linear-gradient(0deg, transparent 0 33px, rgba(147, 67, 55, 0.09) 34px);
  box-shadow: 0 24px 70px rgba(102, 48, 35, 0.16);
  padding: clamp(24px, 5vw, 48px);
}

.letter-paper.is-open {
  border-color: #d49a84;
}

.paper-kicker {
  color: #9f3a2f;
}

.letter-paper h2,
.section-heading h2,
.final-note h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 760;
  letter-spacing: 0;
}

.paper-intro {
  margin: 20px 0 0;
  color: #60403a;
  font-size: 1.08rem;
  line-height: 1.85;
}

.letter-button {
  margin-top: 28px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: var(--fg);
}

.letter-button:hover {
  background: #74241f;
}

.letter-message {
  margin-top: 28px;
  border-left: 3px solid #bd5748;
  padding-left: 18px;
  color: #56362f;
  font-size: 1.05rem;
  line-height: 1.9;
}

.letter-message p {
  margin: 0 0 14px;
}

.closed-note {
  color: #8a655d;
}

.letter-ending {
  color: var(--wine);
  font-weight: 800;
}

.vows {
  display: grid;
  gap: 16px;
  align-content: start;
}

.vow-card {
  min-height: 150px;
  border: 1px solid #e8d1c0;
  border-radius: 8px;
  background: #fffaf3;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(82, 38, 29, 0.1);
}

.vow-card span {
  color: #b54739;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.vow-card h3 {
  margin: 14px 0 10px;
  color: #2a1413;
  font-size: 1.2rem;
  font-weight: 800;
}

.vow-card p {
  margin: 0;
  color: #6c4a42;
  line-height: 1.8;
}

.future-section {
  background: #2a1413;
  color: var(--fg);
  padding: clamp(64px, 8vw, 96px) 20px;
}

.future-inner {
  width: min(100%, 1152px);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
}

.moments {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.moments div {
  min-height: 92px;
  border: 1px solid rgba(255, 232, 209, 0.2);
  border-radius: 8px;
  background: rgba(255, 247, 235, 0.06);
  color: #ffe5ce;
  display: flex;
  align-items: center;
  padding: 22px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.final-note {
  background:
    linear-gradient(135deg, rgba(139, 36, 31, 0.96), rgba(46, 20, 19, 0.98)),
    #431b19;
  color: var(--fg);
  padding: 72px 20px;
  text-align: center;
}

.final-note > div {
  width: min(100%, 760px);
  margin: 0 auto;
}

.final-note p:not(.eyebrow) {
  margin: 24px 0 0;
  color: #ffe3ca;
  font-size: 1.1rem;
  line-height: 1.8;
}

.final-link {
  margin-top: 32px;
  border: 1px solid rgba(255, 238, 220, 0.6);
  color: var(--fg);
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -24px, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(34px, 52vh, 0) rotate(160deg);
  }

  100% {
    transform: translate3d(-18px, 106vh, 0) rotate(330deg);
  }
}

@media (max-width: 760px) {
  .hero-image {
    background-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(18, 10, 10, 0.72), rgba(18, 10, 10, 0.86)),
      linear-gradient(90deg, rgba(18, 10, 10, 0.76), rgba(18, 10, 10, 0.42));
  }

  .hero-content {
    width: min(100% - 32px, 1152px);
  }

  .topbar span:last-child,
  .hero-stats {
    display: none;
  }

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

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

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

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