:root {
  --cream: #fff9ef;
  --cream-deep: #f1e4d5;
  --blush: #ead8d5;
  --blush-soft: #f6eeee;
  --lavender: #d9d1df;
  --lavender-soft: #eee9f1;
  --burgundy: #3f1723;
  --burgundy-soft: #6f3f48;
  --rose: #6e4d54;
  --gold: #b89b70;
  --black-heart: #1b1216;
  --black-heart-soft: rgba(27, 18, 22, 0.78);
  --ink-faint: rgba(27, 18, 22, 0.1);
  --ink-hairline: rgba(27, 18, 22, 0.14);
  --paper: rgba(255, 251, 244, 0.86);
  --paper-strong: rgba(255, 252, 246, 0.96);
  --shadow: 0 24px 58px rgba(27, 18, 22, 0.11);
  --soft-shadow: 0 14px 34px rgba(27, 18, 22, 0.09);
  --radius: 8px;
  --transition: 280ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--burgundy);
  background:
    radial-gradient(circle at 88% 12%, rgba(27, 18, 22, 0.08), transparent 24rem),
    radial-gradient(circle at 8% 76%, rgba(217, 209, 223, 0.5), transparent 22rem),
    linear-gradient(145deg, #fff9ef 0%, #f8f0e7 48%, #eee9f1 100%);
  font-family:
    "Iowan Old Style",
    "Palatino Linotype",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(27, 18, 22, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 18, 22, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

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

button {
  font: inherit;
}

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

.soft-shape {
  position: absolute;
  display: block;
  width: 76vw;
  max-width: 620px;
  height: 260px;
  border-radius: 45% 55% 48% 52%;
  filter: blur(38px);
  opacity: 0.52;
  transform: rotate(-18deg);
  animation: backgroundDrift 17s ease-in-out infinite alternate;
}

.shape-one {
  top: -58px;
  left: -24vw;
  background: linear-gradient(90deg, rgba(241, 228, 213, 0.82), rgba(27, 18, 22, 0.08));
}

.shape-two {
  right: -34vw;
  bottom: 16%;
  background: linear-gradient(90deg, rgba(217, 209, 223, 0.76), rgba(255, 249, 239, 0.18));
  animation-delay: -6s;
}

.shape-three {
  left: 4vw;
  bottom: -120px;
  background: linear-gradient(90deg, rgba(184, 155, 112, 0.18), rgba(27, 18, 22, 0.08));
  animation-delay: -11s;
}

.floating-heart {
  position: absolute;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.05rem;
  filter: grayscale(1);
  opacity: 0.14;
  text-shadow: 0 10px 24px rgba(27, 18, 22, 0.16);
  animation: floatHeart 13s ease-in-out infinite;
}

.heart-one {
  top: 14%;
  left: 12%;
}

.heart-two {
  top: 32%;
  right: 18%;
  animation-delay: -4s;
}

.heart-three {
  top: 64%;
  left: 8%;
  animation-delay: -7s;
}

.heart-four {
  right: 12%;
  bottom: 16%;
  animation-delay: -2s;
}

.heart-five {
  top: 82%;
  left: 54%;
  animation-delay: -9s;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 30%, rgba(27, 18, 22, 0.07), transparent 18rem),
    linear-gradient(150deg, rgba(255, 249, 239, 0.98), rgba(246, 238, 238, 0.92)),
    linear-gradient(45deg, rgba(217, 209, 223, 0.38), rgba(255, 248, 238, 0.12));
  transition:
    opacity 640ms ease,
    visibility 640ms ease,
    transform 640ms ease;
}

.intro-inner {
  width: min(100%, 360px);
  text-align: center;
  transform: translateY(-8px);
}

.envelope {
  position: relative;
  width: 142px;
  height: 104px;
  margin: 0 auto 32px;
  border: 1px solid var(--ink-hairline);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(241, 228, 213, 0.58)),
    var(--paper-strong);
  box-shadow: var(--shadow);
  animation: envelopeBreath 2600ms ease-in-out infinite;
}

.envelope::before,
.envelope::after {
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 74%;
  content: "";
  background: linear-gradient(135deg, transparent 49%, rgba(27, 18, 22, 0.13) 50%);
}

.envelope::before {
  left: 0;
  transform: skewY(24deg);
  transform-origin: bottom left;
}

.envelope::after {
  right: 0;
  transform: skewY(-24deg) scaleX(-1);
  transform-origin: bottom right;
}

.envelope-flap {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 76px;
  clip-path: polygon(0 0, 100% 0, 50% 76%);
  background: linear-gradient(180deg, rgba(241, 228, 213, 0.94), rgba(255, 252, 246, 0.9));
  transform-origin: top;
  animation: flapWave 2600ms ease-in-out infinite;
}

.envelope-paper {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 58px;
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: inset 0 0 0 1px rgba(79, 23, 39, 0.08);
}

.envelope-seal {
  position: absolute;
  left: 50%;
  top: 47px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.intro-text {
  margin: 0 0 22px;
  color: var(--black-heart-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.primary-button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  color: #fffaf4;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 248, 238, 0.18), transparent 30%),
    linear-gradient(135deg, var(--black-heart), #3d1d27 58%, var(--burgundy-soft));
  box-shadow:
    0 16px 30px rgba(27, 18, 22, 0.18),
    0 0 0 1px rgba(255, 250, 244, 0.18) inset;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow:
    0 20px 40px rgba(27, 18, 22, 0.24),
    0 0 0 1px rgba(255, 250, 244, 0.24) inset;
  filter: brightness(1.03);
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.heart-button:focus-visible,
.truth-card:focus-visible,
.music-toggle:focus-visible {
  outline: 3px solid rgba(27, 18, 22, 0.18);
  outline-offset: 4px;
}

.site-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 32px 18px 86px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

body.site-open .intro-screen {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-18px);
}

body.site-open .site-shell {
  opacity: 1;
  transform: translateY(0);
}

.hero-section {
  display: grid;
  min-height: 92vh;
  align-content: center;
  padding: 54px 0 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--black-heart-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: 2.72rem;
}

.subtitle {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--burgundy-soft);
  font-size: 1.04rem;
}

.message-section,
.truth-section,
.heart-section,
.final-section {
  padding: 34px 0;
}

.paper-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-hairline);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(241, 228, 213, 0.28)),
    var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.paper-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.24)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(27, 18, 22, 0.023) 32px);
}

.sincere-card,
.final-card {
  padding: 28px 22px;
}

.sincere-card p,
.final-card p {
  position: relative;
  margin: 0 0 18px;
  color: rgba(27, 18, 22, 0.8);
  font-size: 1rem;
}

.sincere-card p:last-child,
.final-card p:last-child {
  margin-bottom: 0;
}

.closing-line {
  color: var(--black-heart);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.card-knot {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(27, 18, 22, 0.18);
  border-radius: 50%;
  opacity: 0.42;
}

.card-knot::before,
.card-knot::after {
  position: absolute;
  inset: 10px;
  content: "";
  border-top: 1px solid rgba(27, 18, 22, 0.28);
  transform: rotate(34deg);
}

.card-knot::after {
  transform: rotate(-34deg);
}

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

.section-heading h2,
.heart-panel h2 {
  font-size: 1.76rem;
}

.truth-grid {
  display: grid;
  gap: 14px;
}

.truth-card {
  position: relative;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(255, 252, 246, 0.92), rgba(238, 233, 241, 0.6)),
    rgba(255, 250, 244, 0.74);
  box-shadow: var(--soft-shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.truth-card:hover,
.truth-card:focus-visible,
.truth-card:active {
  border-color: rgba(27, 18, 22, 0.22);
  box-shadow:
    0 22px 46px rgba(79, 23, 39, 0.14),
    0 0 0 1px rgba(27, 18, 22, 0.04) inset;
  transform: translateY(-5px);
}

.truth-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--black-heart-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

.truth-card h3 {
  margin-bottom: 10px;
  font-size: 1.34rem;
}

.truth-card p {
  margin: 0;
  color: rgba(27, 18, 22, 0.68);
  font-size: 0.96rem;
}

.heart-panel {
  position: relative;
  overflow: hidden;
  padding: 30px 22px 34px;
  border: 1px solid rgba(27, 18, 22, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(27, 18, 22, 0.07), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.92), rgba(238, 233, 241, 0.62)),
    rgba(255, 250, 244, 0.78);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.heart-panel::before {
  position: absolute;
  left: 50%;
  top: -52px;
  width: 180px;
  height: 92px;
  border-radius: 0 0 50% 50%;
  background: rgba(27, 18, 22, 0.08);
  filter: blur(24px);
  content: "";
  transform: translateX(-50%);
}

.heart-button {
  position: relative;
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 16px;
  padding: 12px 18px;
  border: 1px solid rgba(27, 18, 22, 0.16);
  border-radius: 999px;
  color: var(--black-heart);
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.92), rgba(238, 233, 241, 0.58)),
    rgba(255, 252, 246, 0.78);
  box-shadow: 0 12px 26px rgba(79, 23, 39, 0.1);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.heart-button:hover,
.heart-button:active {
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(241, 228, 213, 0.56)),
    rgba(255, 252, 246, 0.95);
  box-shadow: 0 18px 34px rgba(79, 23, 39, 0.15);
  transform: translateY(-3px) scale(1.01);
}

.heart-button span:first-child,
.heart-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(27, 18, 22, 0.07);
  box-shadow:
    0 8px 18px rgba(27, 18, 22, 0.12),
    0 0 0 1px rgba(27, 18, 22, 0.08) inset;
  filter: grayscale(1);
  font-size: 1.24rem;
}

.memory-message {
  min-height: 56px;
  margin: 0 auto;
  color: var(--black-heart-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.heart-burst-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.burst-heart {
  position: absolute;
  left: 50%;
  top: 54%;
  color: var(--black-heart);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1rem;
  filter: grayscale(1);
  opacity: 0;
  animation: heartBurst 780ms ease-out forwards;
  transform: translate(-50%, -50%);
}

.final-section {
  text-align: center;
}

.final-card {
  margin-bottom: 26px;
  text-align: left;
}

.whatsapp-button {
  overflow: hidden;
  width: min(100%, 360px);
}

.whatsapp-button::after {
  position: absolute;
  right: 18px;
  top: 50%;
  content: "🖤";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 3.8rem;
  line-height: 1;
  opacity: 0.12;
  pointer-events: none;
  transform: translateY(-48%) rotate(-12deg);
}

.no-pressure {
  margin: 16px 0 0;
  color: rgba(79, 23, 39, 0.68);
  font-size: 0.96rem;
}

.music-toggle {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--ink-hairline);
  border-radius: 999px;
  color: var(--burgundy);
  background: rgba(255, 252, 246, 0.82);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.site-footer {
  width: min(100%, 980px);
  margin: -46px auto 0;
  padding: 0 18px 28px;
  color: rgba(27, 18, 22, 0.54);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.94rem;
  text-align: center;
}

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

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

.sincere-card p {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.sincere-card.is-readable p {
  opacity: 1;
  transform: translateY(0);
}

.sincere-card.is-readable p:nth-child(2) {
  transition-delay: 120ms;
}

.sincere-card.is-readable p:nth-child(3) {
  transition-delay: 240ms;
}

.sincere-card.is-readable p:nth-child(4) {
  transition-delay: 360ms;
}

.sincere-card.is-readable p:nth-child(5) {
  transition-delay: 480ms;
}

@keyframes backgroundDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }
  to {
    transform: translate3d(34px, 24px, 0) rotate(-10deg);
  }
}

@keyframes floatHeart {
  0%,
  100% {
    opacity: 0.1;
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    opacity: 0.18;
    transform: translateY(-18px) rotate(5deg);
  }
}

@keyframes envelopeBreath {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes flapWave {
  0%,
  100% {
    transform: rotateX(0deg);
  }
  50% {
    transform: rotateX(9deg);
  }
}

@keyframes heartBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y)))
      scale(1.2);
  }
}

@media (min-width: 720px) {
  .site-shell {
    padding: 44px 32px 104px;
  }

  .hero-section {
    min-height: 88vh;
  }

  h1 {
    font-size: 4.1rem;
  }

  .subtitle {
    font-size: 1.16rem;
  }

  .sincere-card,
  .final-card {
    padding: 42px;
  }

  .truth-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .heart-panel {
    padding: 42px 36px 46px;
  }

  .section-heading h2,
  .heart-panel h2 {
    font-size: 2.24rem;
  }
}

@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;
  }
}
