:root {
  color-scheme: light;
  --paper: #fff8f6;
  --paper-strong: #fff1f4;
  --ink: #4c3440;
  --muted: #7f6571;
  --rose: #d66b96;
  --rose-deep: #a94770;
  --blush: #f7b9d0;
  --peach: #ffd3bd;
  --mint: #d9efe6;
  --lilac: #ded8ff;
  --line: rgba(118, 73, 91, 0.18);
  --shadow: 0 22px 70px rgba(142, 83, 104, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper) 0%, #fffdf9 45%, #f6fbf6 100%);
  background-size: 42px 42px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

main,
section,
article,
figure,
div {
  min-width: 0;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.scroll-progress {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--rose), var(--peach), #91cdb6);
}

.floating-hearts {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}

.floating-hearts span {
  position: absolute;
  left: var(--x);
  bottom: -48px;
  color: rgba(214, 107, 150, 0.32);
  font-size: var(--size);
  transform: translate3d(0, 0, 0) rotate(var(--rotate));
  animation: float-heart var(--duration) linear var(--delay) infinite;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: 96px min(7vw, 96px) 104px;
  isolation: isolate;
  overflow: hidden;
  background: #f7d8e3;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: saturate(0.94) brightness(1.03);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 248, 246, 0.92) 0%, rgba(255, 248, 246, 0.68) 42%, rgba(255, 248, 246, 0.12) 100%),
    linear-gradient(0deg, rgba(255, 248, 246, 0.88) 0%, rgba(255, 248, 246, 0.16) 38%);
}

.hero__copy {
  max-width: 680px;
}

.eyebrow,
.kicker {
  margin: 0 0 16px;
  color: var(--rose-deep);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: 4rem;
  line-height: 1.03;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 820;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.22;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
li,
figcaption {
  overflow-wrap: break-word;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #5f4551;
  font-size: 1.2rem;
  line-height: 1.75;
}

.scroll-cue {
  position: absolute;
  left: min(7vw, 96px);
  bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #684653;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.scroll-cue__line {
  width: 28px;
  height: 44px;
  border: 1px solid rgba(104, 70, 83, 0.36);
  border-radius: 999px;
  position: relative;
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--rose);
  transform: translateX(-50%);
  animation: cue-dot 1.7s ease-in-out infinite;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 56px;
  align-items: center;
  padding: 120px min(7vw, 96px);
}

.intro {
  background: linear-gradient(180deg, #fff8f6 0%, #fff2f6 100%);
}

.intro__text {
  max-width: 700px;
}

.intro__text p,
.section-heading p,
.note p,
.moment p,
.finale__copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.soft-picture {
  margin: 0;
}

.soft-picture img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: rgba(255, 250, 247, 0.82);
}

.soft-picture figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.note-stream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 32px min(7vw, 96px) 120px;
  background: #fff2f6;
}

.note {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(143, 84, 105, 0.12);
}

.note--wide {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 224, 235, 0.82)),
    #fff7f8;
}

.note--mint {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(217, 239, 230, 0.78));
}

.note--peach {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 211, 189, 0.72));
}

.note__number {
  margin-bottom: 42px;
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 800;
}

.note h2 {
  max-width: 720px;
}

.moments {
  grid-template-columns: 1fr;
  gap: 38px;
  background: linear-gradient(180deg, #fff8f6 0%, #f7fbf8 100%);
}

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

.moment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.moment {
  min-height: 420px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.sticker {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  border-radius: 8px;
  background-color: rgba(255, 250, 247, 0.82);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow: inset 0 0 0 1px rgba(118, 73, 91, 0.08);
}

.sticker--one {
  background-image: url("/assets/sticker-envelope.png");
}

.sticker--two {
  background-image: url("/assets/sticker-tea.png");
}

.sticker--three {
  background-image: url("/assets/sticker-lamp.png");
}

.quiet-list {
  padding: 122px min(7vw, 96px);
  background: linear-gradient(180deg, #f7fbf8 0%, #fff8f6 100%);
}

.quiet-list__inner {
  max-width: 980px;
  margin: 0 auto;
}

.wishes {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 42px 0 0;
  padding: 0;
}

.wishes li {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #5d4550;
  font-size: 1.05rem;
  line-height: 1.55;
}

.wishes li::before {
  content: "\2661";
  flex: 0 0 auto;
  margin-right: 14px;
  color: var(--rose);
  font-size: 1.25rem;
}

.finale {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  padding: 110px min(7vw, 96px);
  overflow: hidden;
  background: #fff0f4;
  isolation: isolate;
}

.finale::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 248, 246, 0.94) 0%, rgba(255, 248, 246, 0.78) 52%, rgba(255, 248, 246, 0.24) 100%),
    linear-gradient(180deg, rgba(255, 248, 246, 0.26) 0%, rgba(255, 248, 246, 0.92) 100%);
}

.finale__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(1.04);
}

.finale__copy {
  max-width: 680px;
}

.top-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid rgba(169, 71, 112, 0.28);
  border-radius: 8px;
  color: #fff;
  background: var(--rose-deep);
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(169, 71, 112, 0.22);
  transition: transform 180ms ease, background-color 180ms ease;
}

.top-button:hover {
  transform: translateY(-2px);
  background: #963d64;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 760ms ease, transform 760ms ease, filter 760ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes cue-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, 18px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 18px);
    opacity: 0;
  }
}

@keyframes float-heart {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate));
    opacity: 0;
  }
  12% {
    opacity: 0.72;
  }
  100% {
    transform: translate3d(var(--drift), -112vh, 0) rotate(calc(var(--rotate) + 80deg));
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 86svh;
    padding: 86px 24px 94px;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(255, 248, 246, 0.45) 0%, rgba(255, 248, 246, 0.88) 58%, rgba(255, 248, 246, 0.96) 100%);
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .scroll-cue {
    left: 24px;
  }

  .band {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 86px 24px;
  }

  .note-stream {
    grid-template-columns: 1fr;
    padding: 24px 24px 86px;
  }

  .note--wide {
    grid-column: auto;
  }

  .moment-grid {
    grid-template-columns: 1fr;
  }

  .moment {
    min-height: auto;
  }

  .quiet-list {
    padding: 86px 24px;
  }

  .finale {
    min-height: 78svh;
    padding: 86px 24px;
  }
}

@media (max-width: 520px) {
  body {
    background-size: 32px 32px, auto;
  }

  .hero {
    min-height: 88svh;
    padding: calc(58px + env(safe-area-inset-top)) 16px calc(82px + env(safe-area-inset-bottom));
  }

  .hero__image {
    height: 104%;
    object-position: 56% 30%;
    transform: scale(1.02);
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(255, 248, 246, 0.24) 0%, rgba(255, 248, 246, 0.76) 43%, rgba(255, 248, 246, 0.98) 100%);
  }

  .eyebrow,
  .kicker {
    margin-bottom: 10px;
    font-size: 0.74rem;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(1.86rem, 9vw, 2.2rem);
    line-height: 1.08;
  }

  h2 {
    margin-bottom: 14px;
    font-size: clamp(1.38rem, 7.4vw, 1.65rem);
    line-height: 1.12;
  }

  h3 {
    font-size: 1.1rem;
  }

  .lead,
  .intro__text p,
  .section-heading p,
  .note p,
  .moment p,
  .finale__copy p {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .scroll-cue {
    left: 16px;
    bottom: 24px;
    gap: 10px;
    font-size: 0.88rem;
  }

  .scroll-cue__line {
    width: 24px;
    height: 38px;
  }

  .band {
    gap: 24px;
    padding: 66px 16px;
  }

  .soft-picture figcaption {
    font-size: 0.9rem;
  }

  .note-stream {
    gap: 12px;
    padding: 18px 16px 68px;
  }

  .note {
    min-height: auto;
    gap: 20px;
    padding: 20px;
  }

  .note--wide {
    min-height: auto;
  }

  .note__number {
    margin-bottom: 18px;
  }

  .moments {
    gap: 26px;
  }

  .moment-grid {
    gap: 12px;
  }

  .moment {
    padding: 18px;
  }

  .sticker {
    margin-bottom: 18px;
  }

  .quiet-list {
    padding: 66px 16px;
  }

  .wishes {
    gap: 10px;
    margin-top: 28px;
  }

  .wishes li {
    align-items: flex-start;
    min-height: auto;
    padding: 16px;
    font-size: 0.98rem;
  }

  .finale {
    min-height: 78svh;
    padding: 74px 16px calc(74px + env(safe-area-inset-bottom));
  }

  .top-button {
    min-height: 46px;
    padding: 0 16px;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: 1.82rem;
  }

  h2 {
    font-size: 1.36rem;
  }

  .band,
  .note-stream,
  .quiet-list,
  .finale {
    padding-right: 14px;
    padding-left: 14px;
  }

  .note,
  .moment {
    padding: 18px;
  }
}

@media (max-width: 520px) and (max-height: 640px) {
  .hero {
    min-height: 86svh;
    padding-top: calc(48px + env(safe-area-inset-top));
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

  h1 {
    font-size: 1.74rem;
  }

  .lead {
    font-size: 0.94rem;
  }

  .scroll-cue {
    bottom: 18px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
