:root {
  --ink: #422c35;
  --muted: #8e6d79;
  --rose: #d94579;
  --deep-rose: #ad2858;
  --blush: #f7cbd8;
  --pale: #fff5f8;
  --cream: #fffaf6;
  --line: rgba(142, 76, 99, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 13%, rgba(249, 191, 211, 0.45), transparent 27rem),
    radial-gradient(circle at 91% 82%, rgba(255, 210, 218, 0.48), transparent 28rem),
    var(--pale);
  font-family: "DM Sans", sans-serif;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
}

.monogram {
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid var(--deep-rose);
  border-radius: 50%;
  color: var(--deep-rose);
  font-family: "Italiana", serif;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.monogram:hover {
  color: white;
  background: var(--deep-rose);
  transform: rotate(-7deg);
}

.made-by {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.made-by span,
footer span {
  color: var(--rose);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.68fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  min-height: 100svh;
  padding: 7.5rem clamp(1.5rem, 8vw, 9rem) 4.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 47rem;
  animation: rise-in 900ms 100ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.35rem;
  color: var(--deep-rose);
  font-size: clamp(0.65rem, 1vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.5rem;
  height: 1px;
  background: var(--deep-rose);
}

h1 {
  margin: 0;
  color: #482833;
  font-family: "Italiana", serif;
  font-size: clamp(4.5rem, 9vw, 9.7rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.73;
}

h1 em {
  position: relative;
  left: clamp(0.75rem, 5vw, 5.5rem);
  color: var(--rose);
  font-weight: 400;
}

.love-note {
  max-width: 34rem;
  margin: clamp(2.6rem, 7vw, 5.8rem) 0 0;
  padding: 0.25rem 0 0.25rem 1.1rem;
  border-left: 2px solid var(--blush);
  color: #6c4d58;
  font-family: "Italiana", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  margin-top: 2rem;
}

.love-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.15rem 0.95rem 1.4rem;
  border: 1px solid var(--deep-rose);
  border-radius: 100px;
  color: white;
  background: var(--deep-rose);
  box-shadow: 0 10px 30px rgba(173, 40, 88, 0.18);
  cursor: pointer;
  font: 600 0.72rem/1 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.love-button:hover {
  background: var(--rose);
  box-shadow: 0 14px 36px rgba(173, 40, 88, 0.28);
  transform: translateY(-2px);
}

.love-button:active {
  transform: translateY(0) scale(0.98);
}

.love-button.celebrating {
  animation: button-love 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-heart {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--deep-rose);
  background: white;
  font-size: 0.85rem;
}

.quiet-link {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.quiet-link span {
  display: inline-block;
  margin-left: 0.3rem;
  color: var(--rose);
  transition: transform 200ms ease;
}

.quiet-link:hover span {
  transform: translateY(4px);
}

.portrait-wrap {
  position: relative;
  width: min(100%, 31rem);
  justify-self: center;
  animation: rise-in 1000ms 250ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-card {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.65rem 0.65rem 1rem;
  border-radius: 15rem 15rem 1.3rem 1.3rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 2rem 5rem rgba(112, 53, 75, 0.2);
  backdrop-filter: blur(10px);
  transform: rotate(1.8deg);
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-card:hover {
  transform: rotate(0deg) translateY(-5px);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.68;
  border-radius: 14rem 14rem 0.85rem 0.85rem;
  background: var(--blush);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(57, 14, 28, 0.13), transparent 38%);
  pointer-events: none;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
  filter: saturate(0.94) contrast(0.98) brightness(1.03);
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-card:hover img {
  transform: scale(1.025);
}

.portrait-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.65rem 0;
  color: var(--muted);
  font-family: "Italiana", serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.portrait-card figcaption span:last-child {
  color: var(--rose);
}

.portrait-wrap::before {
  position: absolute;
  z-index: 0;
  inset: -1.5rem 1rem 1.5rem -1.7rem;
  border: 1px solid rgba(190, 72, 112, 0.28);
  border-radius: 16rem 16rem 1.8rem 1.8rem;
  content: "";
  transform: rotate(-3deg);
}

.doodle {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--rose);
  font-family: "Italiana", serif;
  pointer-events: none;
}

.doodle-one {
  top: 12%;
  left: -3.2rem;
  font-size: 3.4rem;
  transform: rotate(-16deg);
}

.doodle-two {
  top: 5%;
  right: -1.5rem;
  font-size: 2.2rem;
  animation: slow-spin 12s linear infinite;
}

.flower-sketch {
  position: absolute;
  z-index: 3;
  right: -4.2rem;
  bottom: -1.6rem;
  width: 9rem;
  overflow: visible;
  fill: none;
  stroke: var(--deep-rose);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transform: rotate(8deg);
}

.side-note {
  position: absolute;
  right: 1rem;
  bottom: 50%;
  margin: 0;
  color: #bd8297;
  font-family: "Italiana", serif;
  font-size: 0.9rem;
  letter-spacing: 0.17em;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right bottom;
}

.note-section {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 85vh;
  padding: 9rem 1.5rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 29rem),
    #f9dbe5;
}

.note-section::before,
.note-section::after {
  position: absolute;
  border: 1px solid rgba(173, 40, 88, 0.12);
  border-radius: 50%;
  content: "";
}

.note-section::before {
  top: -28rem;
  left: -22rem;
  width: 48rem;
  height: 48rem;
}

.note-section::after {
  right: -18rem;
  bottom: -27rem;
  width: 43rem;
  height: 43rem;
}

.note-flower {
  color: var(--rose);
  font-size: 2.6rem;
  animation: slow-spin 18s linear infinite;
}

.section-kicker {
  margin: 1.2rem 0 1.5rem;
  color: var(--deep-rose);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.note-section h2 {
  max-width: 55rem;
  margin: 0;
  font-family: "Italiana", serif;
  font-size: clamp(3rem, 6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.note-section h2 em {
  color: var(--rose);
  font-weight: 400;
}

.note-section > p:not(.section-kicker) {
  max-width: 38rem;
  margin: 2.2rem auto 0;
  color: #765864;
  font-family: "Italiana", serif;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.65;
}

.signature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 3rem;
  color: var(--deep-rose);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signature-line {
  width: 2.7rem;
  height: 1px;
  background: var(--deep-rose);
}

.signature-heart {
  font-family: serif;
  font-size: 1.2rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 5rem);
  color: var(--muted);
  background: var(--cream);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.petal {
  --size: 10px;
  position: fixed;
  z-index: 20;
  top: -30px;
  left: var(--left);
  width: var(--size);
  height: calc(var(--size) * 1.5);
  border-radius: 90% 10% 80% 20%;
  background: var(--petal-color);
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: petal-fall var(--duration) var(--delay) linear infinite;
}

.heart-particle {
  position: fixed;
  z-index: 101;
  left: var(--x);
  top: var(--y);
  color: var(--color);
  font-size: var(--particle-size);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 3px 12px rgba(173, 40, 88, 0.18);
  animation: heart-pop var(--particle-duration) var(--particle-delay)
    cubic-bezier(0.16, 0.72, 0.24, 1) forwards;
}

.love-wave {
  position: fixed;
  z-index: 99;
  left: var(--x);
  top: var(--y);
  width: 2rem;
  height: 2rem;
  border: 2px solid rgba(217, 69, 121, 0.58);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 203, 216, 0.22), transparent 68%);
  opacity: 0;
  pointer-events: none;
  animation: love-wave 1100ms cubic-bezier(0.15, 0.7, 0.25, 1) forwards;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -5vh, 0) rotate(0deg);
  }
  10% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 110vh, 0) rotate(620deg);
  }
}

@keyframes heart-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1) rotate(0deg);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotate(0deg);
  }
  72% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      scale(var(--end-scale)) rotate(var(--rotation));
  }
  100% {
    opacity: 0;
    transform: translate(
        calc(-50% + var(--dx) + var(--float-x)),
        calc(-50% + var(--dy) - 3.2rem)
      )
      scale(0.72) rotate(var(--rotation));
  }
}

@keyframes love-wave {
  0% {
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(58);
  }
}

@keyframes button-love {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-3px) scale(1.06) rotate(-1deg);
  }
  70% {
    transform: translateY(-1px) scale(0.98) rotate(1deg);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.75fr);
    gap: 2.5rem;
    padding-right: 3.5rem;
    padding-left: 3.5rem;
  }

  h1 {
    font-size: clamp(4rem, 9.5vw, 6.8rem);
  }

  .flower-sketch,
  .side-note {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: 100vw;
    padding: 1.25rem;
  }

  .made-by {
    max-width: 11rem;
    text-align: right;
    line-height: 1.5;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    width: 100vw;
    max-width: 100vw;
    padding: 7rem 1.25rem 5.5rem;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    padding-top: 1.5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 18.5vw, 5.6rem);
    line-height: 0.8;
  }

  h1 em {
    display: inline-block;
    left: 0.25rem;
    margin-top: 0.08em;
    font-size: 0.78em;
  }

  .love-note {
    margin-top: 3.5rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .portrait-wrap {
    width: calc(100% - 1.7rem);
    max-width: 26rem;
  }

  .doodle-one {
    left: -1.8rem;
  }

  .doodle-two {
    right: -1rem;
  }

  .note-section {
    min-height: 75vh;
    padding: 7rem 1.4rem;
  }

  footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

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

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