@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --ink: #422d35;
  --muted: #8c6f76;
  --rose: #d96779;
  --rose-deep: #b94c61;
  --blush: #fbe5e4;
  --cream: #fffaf5;
  --peach: #f8c8b7;
  --line: rgba(182, 113, 122, 0.2);
  --shadow: 0 18px 48px rgba(117, 55, 66, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 227, 220, 0.8), transparent 27rem),
    radial-gradient(circle at 92% 32%, rgba(244, 212, 232, 0.55), transparent 25rem),
    var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.heart, .sparkle {
  position: absolute;
  color: rgba(215, 103, 121, 0.17);
  font-family: Georgia, serif;
  animation: drift 7s ease-in-out infinite;
}
.heart { font-size: clamp(2rem, 8vw, 4.8rem); }
.sparkle { color: rgba(194, 136, 164, 0.35); font-size: 1.8rem; animation-duration: 5s; }
.heart--one { left: 5%; top: 15%; transform: rotate(-16deg); }
.heart--two { right: 5%; top: 8%; animation-delay: -2s; }
.heart--three { right: 10%; top: 67%; font-size: 3rem; animation-delay: -4s; }
.heart--four { left: 3%; top: 77%; animation-delay: -1s; }
.sparkle--one { left: 18%; top: 47%; }
.sparkle--two { right: 21%; top: 23%; animation-delay: -2.5s; }

.page-shell { position: relative; z-index: 1; width: min(100%, 760px); margin: 0 auto; padding: 0 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 28px 0 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.wordmark-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: var(--rose); font-size: 1.1rem; line-height: 1; }
.topbar-note { color: var(--muted); font-size: 0.73rem; letter-spacing: 0.08em; text-transform: uppercase; }

.hero { min-height: 73vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 62px 4px 72px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--rose-deep); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 5px rgba(248, 200, 183, 0.22); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 620px; margin: 24px 0 21px; font-size: clamp(3.4rem, 14vw, 7.4rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.065em; }
h1 em, h2 em { color: var(--rose); font-family: 'Playfair Display', Georgia, serif; font-weight: 500; }
.hero-copy { max-width: 400px; margin-bottom: 29px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.primary-button { display: inline-flex; align-items: center; gap: 22px; border: 0; border-radius: 999px; padding: 15px 18px 15px 23px; color: #fff; background: var(--rose); box-shadow: 0 12px 28px rgba(185, 76, 97, 0.24); cursor: pointer; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.primary-button:hover, .primary-button:focus-visible { background: var(--rose-deep); box-shadow: 0 16px 32px rgba(185, 76, 97, 0.3); transform: translateY(-2px); outline: none; }
.button-arrow { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--rose); background: #fff; font-size: 1rem; }
.scroll-hint { display: flex; align-items: center; gap: 11px; margin-top: 48px; color: #b69aa0; font-size: 0.72rem; }
.scroll-hint span { width: 30px; height: 1px; background: #ddbcc0; }

.video-section { padding: 14px 4px 32px; }
.media-heading { margin-bottom: 25px; }
.media-heading h2 { margin-top: 16px; font-size: clamp(2.35rem, 9vw, 4.7rem); }
.memory-video { margin: 0; padding: 10px 10px 15px; border: 1px solid rgba(194, 136, 164, 0.19); border-radius: 28px; background: rgba(255, 255, 255, 0.7); box-shadow: 0 18px 48px rgba(117, 55, 66, 0.1); }
.memory-video video { display: block; width: 100%; max-height: 620px; border-radius: 20px; background: #eadbd0; object-fit: cover; }
.memory-video figcaption { margin: 13px 7px 0; color: var(--muted); font-size: 0.73rem; line-height: 1.45; }

.memory-section { padding: 14px 4px 68px; }
.memory-photo { position: relative; min-height: 480px; overflow: hidden; margin: 0; border-radius: 28px; background: #d7c5ab; box-shadow: 0 18px 48px rgba(117, 55, 66, 0.14); isolation: isolate; }
.memory-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; filter: saturate(0.78) brightness(1.08) contrast(0.93); opacity: 0.86; transform: scale(1.015); }
.memory-wash { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(251, 213, 132, 0.08) 10%, rgba(235, 178, 78, 0.18) 55%, rgba(118, 74, 39, 0.53) 100%); mix-blend-mode: multiply; }
.memory-caption { position: absolute; right: 24px; bottom: 26px; left: 24px; z-index: 2; color: #fff8dd; text-shadow: 0 2px 18px rgba(74, 42, 16, 0.36); }
.memory-kicker { display: block; margin-bottom: 13px; color: #fff0ae; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.19em; text-transform: uppercase; }
.memory-caption h2 { margin: 0; color: #fff9e1; font-size: clamp(2.4rem, 10vw, 4.8rem); line-height: 0.96; }
.memory-caption h2 em { color: #ffe58f; }
.memory-caption p { margin: 15px 0 0; color: #fff0b3; font-family: 'Playfair Display', Georgia, serif; font-size: 1.28rem; font-style: italic; }
.gold-button { display: flex; align-items: center; justify-content: space-between; width: min(100%, 260px); min-height: 52px; margin: 18px auto 0; border: 1px solid rgba(173, 118, 23, 0.45); border-radius: 999px; padding: 13px 15px 13px 21px; color: #7b5310; background: linear-gradient(135deg, #ffe9a4, #e6b94e); box-shadow: 0 10px 24px rgba(193, 143, 42, 0.25), inset 0 1px 0 rgba(255,255,255,0.65); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-appearance: none; appearance: none; font-size: 0.86rem; font-weight: 800; letter-spacing: 0.05em; transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease; }
.gold-button:hover, .gold-button:focus-visible { filter: saturate(1.08); box-shadow: 0 14px 28px rgba(193, 143, 42, 0.34), inset 0 1px 0 rgba(255,255,255,0.65); transform: translateY(-2px); outline: none; }
.gold-button:active { transform: translateY(1px) scale(0.98); }
.gold-button-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #a97115; background: rgba(255, 250, 218, 0.78); font-size: 0.9rem; }

.rose-celebration { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow: hidden; background: rgba(255, 249, 241, 0.08); opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.rose-celebration.is-active { opacity: 1; }
.celebration-word { position: relative; z-index: 2; color: #bc3c58; font-size: clamp(4rem, 25vw, 18rem); font-weight: 800; letter-spacing: -0.08em; line-height: 0.8; text-align: center; text-shadow: 0 6px 0 rgba(255, 230, 200, 0.9), 0 14px 32px rgba(131, 42, 57, 0.23); transform: scale(0.55) rotate(-4deg); }
.celebration-word.is-hidden { visibility: hidden; opacity: 0 !important; }
.rose-celebration.is-active .celebration-word { animation: word-pop 520ms cubic-bezier(0.2, 1.4, 0.35, 1) both; }
.rose-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.flying-rose { position: absolute; left: var(--left); top: -12vh; color: #c84259; font-family: Georgia, serif; font-size: var(--size); line-height: 1; opacity: 0; filter: drop-shadow(0 3px 3px rgba(95, 33, 44, 0.2)); animation: rose-flight var(--duration) cubic-bezier(0.2, 0.78, 0.24, 1) var(--delay) both; }
.rose-pile { position: fixed; inset: 0; z-index: 9; overflow: hidden; pointer-events: none; }
.pile-rose { position: absolute; left: 50%; top: 0; font-size: var(--size); line-height: 1; opacity: 0; filter: drop-shadow(0 3px 3px rgba(95, 33, 44, 0.2)); animation: pile-fall var(--duration) cubic-bezier(0.2, 0.78, 0.24, 1) var(--delay) forwards; }

.notes-section { padding: 54px 4px 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
h2 { margin: 16px 0 0; font-size: clamp(2.5rem, 10vw, 4.9rem); font-weight: 500; line-height: 0.94; letter-spacing: -0.06em; }
.progress-badge { display: flex; align-items: baseline; gap: 3px; margin-bottom: 4px; color: var(--rose); font-size: 0.86rem; }
.progress-badge strong { font-size: 1.8rem; font-weight: 500; }
.progress-badge span { color: #bba2a5; }
.section-intro { max-width: 450px; margin: 24px 0 30px; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.notes-list { display: grid; gap: 14px; }
.note-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: rgba(255, 255, 255, 0.62); box-shadow: 0 9px 28px rgba(117, 55, 66, 0.05); transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease; }
.note-card:hover { border-color: rgba(215, 103, 121, 0.42); box-shadow: var(--shadow); transform: translateY(-2px); }
.note-card.is-open { border-color: rgba(215, 103, 121, 0.36); background: rgba(255, 250, 245, 0.9); }
.note-trigger { display: grid; grid-template-columns: 66px 1fr 32px; align-items: center; width: 100%; gap: 16px; border: 0; padding: 17px 20px 17px 17px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.card-art { position: relative; display: grid; place-items: center; width: 66px; height: 66px; overflow: hidden; border-radius: 19px; background: var(--blush); font-size: 2rem; }
.card-art::before, .card-art::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,0.4); }
.card-art::before { width: 35px; height: 35px; top: -11px; right: -7px; }
.card-art::after { width: 16px; height: 16px; bottom: 8px; left: 9px; }
.card-art--sun { background: #fde8c7; }
.card-art--moon { background: #e8dff5; }
.card-art--sparkle { background: #dcedeb; }
.card-art--heart { background: #f6d4db; }
.card-emoji { position: relative; z-index: 1; filter: drop-shadow(0 3px 3px rgba(80, 42, 50, 0.11)); }
.card-label { margin-bottom: 4px; color: var(--rose-deep); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.card-title { color: var(--ink); font-size: 1.04rem; font-weight: 600; line-height: 1.25; }
.card-chevron { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: var(--rose); background: rgba(251, 229, 228, 0.8); font-size: 1.1rem; transition: transform 250ms ease; }
.note-card.is-open .card-chevron { transform: rotate(45deg); }
.note-message { display: grid; grid-template-rows: 0fr; padding: 0 20px 0 99px; transition: grid-template-rows 300ms ease, padding 300ms ease; }
.note-message-inner { overflow: hidden; color: var(--muted); font-family: 'Playfair Display', Georgia, serif; font-size: 1.14rem; font-style: italic; line-height: 1.55; opacity: 0; transition: opacity 220ms ease; }
.note-card.is-open .note-message { grid-template-rows: 1fr; padding-bottom: 22px; }
.note-card.is-open .note-message-inner { opacity: 1; }

.final-note { position: relative; overflow: hidden; margin: 46px 0 16px; padding: 42px 30px 36px; border-radius: 28px; color: #fff; background: linear-gradient(135deg, #c95d70 0%, #a94860 100%); box-shadow: 0 18px 48px rgba(185, 76, 97, 0.25); text-align: center; animation: appear 650ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.final-note::before, .final-note::after { content: '♡'; position: absolute; color: rgba(255,255,255,0.15); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.final-note::before { top: -32px; left: -6px; transform: rotate(-18deg); }
.final-note::after { right: -6px; bottom: -45px; transform: rotate(17deg); }
.final-sparkle { color: #ffe2cb; font-size: 1.2rem; }
.final-kicker { margin: 13px 0 13px; color: #ffd9d6; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.final-note h2 { position: relative; z-index: 1; margin: 0 auto 17px; max-width: 450px; color: #fff; font-size: clamp(2.2rem, 9vw, 4rem); }
.final-note h2 em { color: #ffe0c9; }
.final-note > p:not(.final-kicker) { position: relative; z-index: 1; max-width: 430px; margin: 0 auto; color: rgba(255,255,255,0.82); line-height: 1.65; }
.final-heart { position: relative; z-index: 1; margin-top: 23px; color: #ffd6d0; font-size: 1.7rem; animation: pulse 1.5s ease-in-out infinite; }

.share-section { padding: 68px 4px 30px; }
.share-card { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding: 19px; border: 1px solid rgba(194, 136, 164, 0.18); border-radius: 20px; background: rgba(244, 225, 236, 0.48); }
.share-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--rose-deep); background: rgba(255,255,255,0.7); font-size: 1.3rem; }
.share-title { margin: 2px 0 4px; font-size: 0.9rem; font-weight: 700; }
.share-copy { max-width: 370px; margin: 0; color: var(--muted); font-size: 0.77rem; line-height: 1.5; }
.copy-button { grid-column: 2; justify-self: start; margin-top: 4px; border: 1px solid rgba(185, 76, 97, 0.28); border-radius: 999px; padding: 9px 13px; color: var(--rose-deep); background: rgba(255,255,255,0.62); cursor: pointer; font-size: 0.74rem; font-weight: 700; transition: background 180ms ease, transform 180ms ease; }
.copy-button:hover, .copy-button:focus-visible { background: #fff; transform: translateY(-1px); outline: none; }
.footer { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 30px 0 38px; color: #ae9298; font-size: 0.67rem; letter-spacing: 0.13em; text-transform: uppercase; }
.footer-heart { color: var(--rose); font-size: 0.95rem; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 3; padding: 12px 17px; border-radius: 999px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 0.78rem; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@keyframes appear { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes word-pop { 0% { opacity: 0; transform: scale(0.35) rotate(-9deg); } 65% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes rose-flight { 0% { opacity: 0; transform: translate(-50%, -10vh) rotate(0deg) scale(0.55); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), 112vh) rotate(var(--rotate)) scale(1); } }
@keyframes pile-fall { 0% { opacity: 0; transform: translate(-50%, 88vh) rotate(0deg) scale(0.35); } 14% { opacity: 1; transform: translate(calc(-50% + var(--spray-x)), var(--spray-y)) rotate(var(--rotate)) scale(1.08); } 42% { opacity: 1; transform: translate(calc(-50% + var(--float-x)), var(--float-y)) rotate(var(--rotate)) scale(1); } 72% { opacity: 1; transform: translate(calc(-50% + var(--land-x)), calc(82vh + var(--land-y))) rotate(var(--rotate)) scale(0.96); } 100% { opacity: 1; transform: translate(calc(-50% + var(--land-x)), calc(100vh - var(--floor))) rotate(var(--rotate)) scale(0.92); } }

@media (min-width: 650px) {
  .page-shell { padding: 0 48px; }
  .topbar { padding-top: 34px; }
  .hero { min-height: 78vh; padding-top: 90px; }
  .notes-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .note-trigger { grid-template-columns: 58px 1fr 26px; gap: 12px; padding: 15px; }
  .card-art { width: 58px; height: 58px; font-size: 1.7rem; }
  .note-message { padding-left: 15px; padding-right: 15px; }
  .note-card.is-open .note-message { padding-bottom: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
