:root {
  color-scheme: light;
  --paper: #fff8f5;
  --paper-2: #fff0f4;
  --ink: #402334;
  --muted: rgba(64, 35, 52, 0.66);
  --soft: rgba(255, 255, 255, 0.66);
  --line: rgba(154, 78, 112, 0.18);
  --rose: #ff6f9f;
  --rose-2: #ff9ab7;
  --peach: #ffb38a;
  --gold: #ffd36e;
  --mint: #84dec6;
  --lavender: #b79cff;
  --shadow: 0 22px 65px rgba(165, 67, 105, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(255, 240, 244, 0.96), rgba(255, 248, 245, 0.94) 45%, rgba(255, 232, 221, 0.9)),
    var(--paper);
  color: var(--ink);
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(255, 111, 159, 0.1) 0 12%, transparent 12.2% 36%, rgba(255, 211, 110, 0.12) 36.3% 42%, transparent 42.2% 100%),
    linear-gradient(70deg, transparent 0 48%, rgba(132, 222, 198, 0.12) 48.3% 55%, transparent 55.2% 100%);
  background-size: 56rem 56rem, 44rem 44rem;
  animation: backgroundDrift 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

#loveCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.soft-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
  padding: 0.8rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  pointer-events: none;
}

.hero-wash,
.light-ribbons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wash {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.9) 0%, rgba(255, 247, 242, 0.78) 35%, rgba(255, 235, 229, 0.28) 68%, rgba(255, 225, 232, 0.12)),
    linear-gradient(180deg, rgba(255, 251, 246, 0.08), rgba(255, 248, 245, 0.9) 94%);
}

.light-ribbons {
  z-index: -2;
  background:
    linear-gradient(118deg, transparent 0 18%, rgba(255, 111, 159, 0.2) 18.2%, transparent 21%),
    linear-gradient(62deg, transparent 0 62%, rgba(255, 211, 110, 0.2) 62.2%, transparent 66%),
    linear-gradient(95deg, transparent 0 78%, rgba(132, 222, 198, 0.18) 78.2%, transparent 82%);
  background-size: 170% 170%, 150% 150%, 130% 130%;
  animation: lightSweep 9s ease-in-out infinite alternate;
}

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

.love-floaters span {
  position: absolute;
  left: var(--x);
  bottom: -8vh;
  color: rgba(255, 111, 159, 0.54);
  font-size: calc(var(--s) * 1rem);
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255, 111, 159, 0.42);
  animation: floatLove var(--t) linear var(--d) infinite;
}

.topbar,
.hero-content,
.section-inner,
.footer {
  width: min(1120px, calc(100% - 1rem));
  margin-inline: auto;
}

.topbar {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 16px 45px rgba(158, 72, 106, 0.13);
  backdrop-filter: blur(18px);
  padding: 0.55rem 0.65rem;
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 0.55rem;
  color: #4a1f35;
  font-weight: 950;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 111, 159, 0.4);
  border-radius: 50%;
  color: white;
  background:
    linear-gradient(135deg, var(--rose), var(--peach));
  box-shadow:
    0 0 0 6px rgba(255, 111, 159, 0.12),
    0 0 30px rgba(255, 111, 159, 0.38);
  animation: heartBeat 1.8s ease-in-out infinite;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.nav-links a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding-inline: 0.7rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #7d2045;
  background: rgba(255, 255, 255, 0.58);
  outline: none;
}

.hero-content {
  min-height: calc(92svh - 4.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.5rem 2.2rem;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: #a54068;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.03;
}

h1 {
  max-width: 9ch;
  color: #4b2036;
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 1000;
  text-wrap: balance;
  text-shadow:
    0 5px 0 rgba(255, 255, 255, 0.8),
    0 24px 60px rgba(185, 65, 107, 0.28);
}

h2 {
  max-width: 16ch;
  color: #4b2036;
  font-size: clamp(2.1rem, 5.5vw, 4.6rem);
  font-weight: 1000;
  text-wrap: balance;
}

h3 {
  font-size: 1.35rem;
}

.hero-lead {
  max-width: 29rem;
  margin: 0.8rem 0 0;
  color: rgba(64, 35, 52, 0.78);
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 680;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.button {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding-inline: 1.05rem;
  color: #5a253d;
  background: rgba(255, 255, 255, 0.5);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(164, 69, 106, 0.14);
  backdrop-filter: blur(12px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button::before {
  content: "❤";
  margin-right: 0.45rem;
  color: var(--rose);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--peach));
  box-shadow:
    0 16px 36px rgba(255, 111, 159, 0.3),
    0 0 0 7px rgba(255, 111, 159, 0.12);
}

.button.primary::before {
  color: white;
}

.today-strip {
  width: min(100%, 34rem);
  min-height: 3.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.72rem;
  margin-top: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  box-shadow: 0 18px 45px rgba(165, 67, 105, 0.14);
  backdrop-filter: blur(16px);
  padding: 0.68rem 0.8rem;
}

.today-strip strong {
  color: #c33f70;
}

.today-strip em {
  color: #8a5a00;
  font-style: normal;
  font-weight: 820;
}

.love-stage {
  position: relative;
  min-height: 31rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 245, 247, 0.28)),
    linear-gradient(180deg, rgba(255, 154, 183, 0.18), rgba(255, 211, 110, 0.12));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.love-stage::before,
.love-stage::after {
  content: "";
  position: absolute;
  inset: 12%;
  pointer-events: none;
  border: 1px dashed rgba(255, 111, 159, 0.24);
  border-radius: 50%;
  animation: spinLove 22s linear infinite;
}

.love-stage::after {
  inset: 23%;
  border-color: rgba(255, 211, 110, 0.34);
  animation-duration: 16s;
  animation-direction: reverse;
}

.stage-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
}

.ring-one {
  width: 76%;
  aspect-ratio: 1;
  animation: stagePulse 3.4s ease-in-out infinite;
}

.ring-two {
  width: 53%;
  aspect-ratio: 1;
  animation: stagePulse 2.4s ease-in-out infinite reverse;
}

.stage-heart {
  position: relative;
  z-index: 2;
  width: min(44%, 11rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--rose-2), var(--peach));
  box-shadow:
    0 0 0 12px rgba(255, 111, 159, 0.12),
    0 20px 70px rgba(255, 111, 159, 0.44);
  animation: heartBeat 1.42s ease-in-out infinite;
}

.stage-heart span {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 8px 18px rgba(137, 30, 72, 0.24);
}

.family-bubbles {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.bubble {
  position: absolute;
  min-width: 4.6rem;
  min-height: 4.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: #762a4e;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 13px 35px rgba(165, 67, 105, 0.16),
    inset 0 0 22px rgba(255, 154, 183, 0.14);
  font-weight: 1000;
  animation: bubbleFloat 3s ease-in-out infinite;
}

.bubble-1 {
  top: 18%;
  left: 17%;
}

.bubble-2 {
  top: 16%;
  right: 15%;
  animation-delay: -0.8s;
}

.bubble-3 {
  bottom: 17%;
  left: 16%;
  animation-delay: -1.35s;
}

.bubble-4 {
  right: 17%;
  bottom: 18%;
  animation-delay: -1.9s;
}

.love-stage > strong {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  max-width: calc(100% - 2rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #9a315c;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
}

.section {
  padding-block: 4.6rem;
}

.section-inner {
  position: relative;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.dates-section {
  background:
    linear-gradient(180deg, rgba(255, 248, 245, 0), rgba(255, 240, 244, 0.9) 24%, rgba(255, 248, 245, 0));
}

.date-grid,
.person-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.date-card,
.person-card,
.theme-stage {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 247, 250, 0.58));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.date-card::before,
.person-card::before,
.theme-stage::before {
  content: "❤";
  position: absolute;
  top: 0.72rem;
  right: 0.82rem;
  color: rgba(255, 111, 159, 0.24);
  font-size: 2.1rem;
  line-height: 1;
  animation: heartBeat 2.2s ease-in-out infinite;
}

.date-card {
  min-height: 12.2rem;
  padding: 1rem;
}

.date-card span,
.person-card span {
  display: block;
  color: rgba(117, 49, 78, 0.68);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-card strong {
  display: block;
  margin-top: 0.38rem;
  color: #c2386c;
  font-size: clamp(2.45rem, 4.6vw, 4.25rem);
  font-weight: 1000;
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.date-card p,
.person-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-weight: 680;
}

.date-card small {
  display: block;
  margin-top: 0.72rem;
  color: #8c6200;
  font-weight: 850;
}

.family-section {
  padding-top: 3.4rem;
}

.family-layout,
.pulse-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.62fr) minmax(0, 1.38fr);
  gap: 1.8rem;
  align-items: center;
}

.family-core {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
}

.family-core b {
  position: relative;
  z-index: 2;
  width: min(58%, 12rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7fa8, #ffb38a);
  color: white;
  font-size: clamp(1.8rem, 5vw, 3.3rem);
  line-height: 0.95;
  text-align: center;
  box-shadow:
    0 0 0 12px rgba(255, 111, 159, 0.12),
    0 22px 60px rgba(255, 111, 159, 0.28);
}

.orbit {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(255, 111, 159, 0.32);
  border-radius: 50%;
  animation: spinLove 28s linear infinite;
}

.orbit-two {
  inset: 18%;
  border-color: rgba(255, 211, 110, 0.45);
  animation-direction: reverse;
  animation-duration: 21s;
}

.orbit-three {
  inset: 29%;
  border-color: rgba(132, 222, 198, 0.42);
  animation-duration: 16s;
}

.tag {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 3.25rem;
  min-height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #8d2f58;
  font-weight: 1000;
  box-shadow: 0 12px 32px rgba(165, 67, 105, 0.16);
}

.tag-a {
  top: 18%;
  right: 12%;
}

.tag-b {
  bottom: 16%;
  left: 12%;
}

.person-card {
  min-height: 9.4rem;
  padding: 1rem;
}

.person-card h3 {
  margin-top: 0.28rem;
  color: #4b2036;
  font-size: 2rem;
  font-weight: 1000;
}

.person-card time {
  display: block;
  margin-top: 0.32rem;
  color: #b53a68;
  font-weight: 900;
}

.pulse-section {
  padding-top: 3rem;
}

.pulse-layout {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.7fr);
}

.pulse-tokens,
.burst-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pulse-tokens span,
.burst-tokens span {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #7b3958;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(165, 67, 105, 0.1);
  padding-inline: 0.78rem;
}

.pulse-tokens span.is-active {
  color: white;
  background: linear-gradient(135deg, var(--rose), var(--peach));
  box-shadow:
    0 13px 34px rgba(255, 111, 159, 0.27),
    0 0 0 7px rgba(255, 111, 159, 0.1);
}

.theme-stage {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem;
}

.theme-stage > span {
  color: #ff5d91;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 1000;
  line-height: 0.86;
  text-shadow:
    0 6px 0 rgba(255, 255, 255, 0.8),
    0 22px 42px rgba(255, 111, 159, 0.24);
  animation: heartBeat 1.5s ease-in-out infinite;
}

.theme-stage strong {
  display: block;
  margin-top: 0.8rem;
  color: #6a2948;
  font-size: 1.25rem;
}

.tilt-card {
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.footer {
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(64, 35, 52, 0.56);
  font-size: 0.92rem;
  font-weight: 800;
}

.flying-love {
  position: fixed;
  z-index: 4;
  pointer-events: none;
  color: #ff4f88;
  font-weight: 1000;
  text-shadow:
    0 2px 0 white,
    0 0 22px rgba(255, 79, 136, 0.58);
  animation: flyLove 950ms ease-out forwards;
}

.error-hero {
  min-height: 100svh;
}

@keyframes backgroundDrift {
  from {
    background-position: 0 0, 100% 0;
  }

  to {
    background-position: 12rem 8rem, calc(100% - 9rem) 12rem;
  }
}

@keyframes lightSweep {
  from {
    background-position: 0% 0%, 100% 0%, 50% 0%;
  }

  to {
    background-position: 100% 100%, 0% 100%, 100% 40%;
  }
}

@keyframes floatLove {
  0% {
    opacity: 0;
    transform: translate3d(-1rem, 0, 0) rotate(-12deg) scale(0.86);
  }

  10% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate3d(1.5rem, -112vh, 0) rotate(18deg) scale(1.16);
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }

  38% {
    transform: scale(1.08);
  }

  58% {
    transform: scale(0.98);
  }
}

@keyframes spinLove {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stagePulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.55rem);
  }
}

@keyframes flyLove {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(var(--x), -7.5rem, 0) rotate(var(--r)) scale(1.45);
  }
}

@media (max-width: 980px) {
  .hero-content,
  .family-layout,
  .pulse-layout {
    grid-template-columns: 1fr;
  }

  .love-stage {
    min-height: 24rem;
  }

  .date-grid,
  .person-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-core {
    width: min(100%, 27rem);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
    padding: 0.55rem;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(255, 250, 247, 0.88), rgba(255, 243, 240, 0.64) 52%, rgba(255, 248, 245, 0.94));
  }

  .topbar,
  .hero-content,
  .section-inner,
  .footer {
    width: min(100%, calc(100% - 0.3rem));
  }

  .topbar {
    align-items: flex-start;
    padding: 0.55rem;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav-links {
    max-width: 10rem;
    font-size: 0.82rem;
  }

  .nav-links a {
    min-height: 2rem;
    padding-inline: 0.5rem;
  }

  .hero-content {
    min-height: calc(100svh - 4rem);
    gap: 1rem;
    padding-block: 1.2rem 1.6rem;
  }

  h1 {
    max-width: 8ch;
  }

  h2 {
    max-width: 13ch;
  }

  .button {
    min-height: 2.65rem;
    padding-inline: 0.86rem;
  }

  .today-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .love-stage {
    min-height: 19rem;
  }

  .bubble {
    min-width: 3.65rem;
    min-height: 3.65rem;
  }

  .section {
    padding-block: 3.2rem;
  }

  .section-heading {
    display: block;
  }

  .date-grid,
  .person-grid {
    grid-template-columns: 1fr;
  }

  .date-card,
  .person-card {
    min-height: 0;
  }

  .theme-stage {
    min-height: 15.5rem;
  }

  .footer {
    min-height: 4rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

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