@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500;1,600&family=Montserrat:wght@400;500;600&display=swap");

:root {
  color-scheme: dark;
  --ink: #f5e9e2;
  --muted: #9c8988;
  --rose: #a95f57;
  --rose-light: #d39d91;
  --wine: #160507;
}

* {
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 40%,
    #260d0d 0,
    var(--wine) 53%,
    #090103 100%
  );
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
}

body::before {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.025),
    transparent 80%
  );
  content: "";
  pointer-events: none;
}

.proposal {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 30px 24px;
}

.topline {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.recording {
  position: absolute;
  left: 20px;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.recording i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cf292e;
  box-shadow: 0 0 9px #cf292e;
}

.ring {
  display: block;
  width: 27px;
  height: 27px;
  border: 1.5px solid #cbb1aa;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(211, 157, 145, 0.18);
}

.ring::before {
  display: block;
  width: 10px;
  height: 7px;
  margin: -8px auto 0;
  border: 1.5px solid #cbb1aa;
  content: "";
}

.spark {
  position: absolute;
  left: calc(50% + 35px);
  top: 8px;
  color: var(--rose);
  font-size: 14px;
}

.message {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  margin-top: -4vh;
  text-align: center;
}

.eyebrow,
.scroll-note {
  margin: 0;
  color: #b2a09d;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(8px, 1.1vw, 11px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1 {
  margin: 17px 0 10px;
  color: #fff8f1;
  font-size: clamp(43px, 7vw, 77px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

h1 em {
  color: var(--rose-light);
  font-weight: 500;
}

.subtitle {
  margin: 0 auto;
  color: #c3aeaa;
  font-size: clamp(16px, 2.2vw, 22px);
  font-style: italic;
  line-height: 1.45;
}

.btns {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 42px;
}

button {
  min-width: 128px;
  height: 51px;
  border: 1px solid rgba(211, 157, 145, 0.27);
  border-radius: 999px;
  padding: 0 27px;
  color: var(--ink);
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

button:hover {
  transform: translateY(-2px);
}

#yes {
  border-color: transparent;
  background: var(--rose);
  box-shadow: 0 7px 24px rgba(114, 35, 31, 0.25);
}

#yes span {
  margin-left: 3px;
  font-size: 16px;
}

#no {
  min-width: 80px;
  background: transparent;
  color: #bfa8a5;
}

#no:hover {
  border-color: var(--rose-light);
}

.scroll-note {
  position: absolute;
  bottom: 29px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.25em;
}

.scroll-note span {
  display: block;
  margin-top: 7px;
  color: var(--rose-light);
  font-size: 16px;
}

.heart {
  position: absolute;
  color: rgba(172, 104, 104, 0.32);
  font-size: 18px;
  animation: drift 5s ease-in-out infinite;
}

.heart-one {
  left: 2%;
  top: 49%;
  font-size: 20px;
}
.heart-two {
  left: 7%;
  top: 53%;
  animation-delay: -1.6s;
}
.heart-three {
  right: 4%;
  top: 61%;
  font-size: 22px;
  animation-delay: -3s;
}
.heart-four {
  right: 40%;
  bottom: 19%;
  font-size: 13px;
  animation-delay: -2.2s;
}

.video-layer {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 1, 3, 0.96);
}

.video-layer[hidden] {
  display: none;
}

.video-layer video {
  width: min(100%, 960px);
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(211, 157, 145, 0.3);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

@keyframes drift {
  50% {
    transform: translateY(-8px) rotate(8deg);
    opacity: 0.7;
  }
}

@media (max-width: 520px) {
  .proposal {
    padding: 24px 18px;
  }
  .eyebrow {
    letter-spacing: 0.26em;
  }
  h1 {
    font-size: clamp(40px, 12vw, 58px);
  }
  .btns {
    margin-top: 34px;
  }
}
