/* Landing page: headline, scissored party photo, candy CTA. */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 135px; /* room for the fixed footer CTA */
}

h1 {
  text-align: center;
  margin: 0 12px 18px;
  font-size: min(6vw, 44px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
}

/* Polaroid-style frame; width also capped so the photo + footer fit one viewport */
.photo {
  position: relative;
  width: min(78vw, 1100px, calc((100vh - 335px) * 1.3333));
  margin: 0 auto;
  border: 14px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: rotate(-2deg);
  background: #fff;
}

.photo img {
  width: 100%;
  display: block;
}

/* White clip-path "scissor cut" where the guy used to be */
.cut {
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(26% 16%, 33% 15%, 39% 19%, 41% 27%, 39% 35%, 36% 42%, 40% 47%, 43% 56%, 41% 66%, 43% 78%, 41% 90%, 42% 100%, 0% 100%, 0% 76%, 1% 58%, 0% 49%, 8% 47%, 13% 44%, 11% 38%, 16% 34%, 20% 28%, 22% 21%);
}

.note {
  position: absolute;
  left: 3%;
  top: 4%;
  font-size: min(3vw, 26px);
  font-weight: bold;
  color: var(--pink);
  transform: rotate(-7deg);
}

.arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 38px;
  text-align: center;
}

/* Glossy candy CTA button */
.candy {
  display: inline-block;
  padding: 18px 58px;
  font-size: 28px;
  font-weight: bold;
  font-family: var(--font-round);
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  border-radius: 26px;
  /* literal hexes (not vars): a stale cached base.css without --pink-hot
     would invalidate the whole gradient and leave the button hollow */
  background-color: #d63a90;
  background-image: linear-gradient(180deg, #fbc0dc 0%, #ef7ab8 30%, #d63a90 55%, #c22a7d 100%);
  border: 3px solid #f7c3dd;
  box-shadow:
    0 4px 0 var(--pink-darkest),
    0 7px 12px rgba(0, 0, 0, .3),
    inset 0 2px 3px rgba(255, 255, 255, .7);
}

/* The arrow keeps nudging toward the survey */
.cArrow {
  display: inline-block;
  animation: cNudge 1.1s ease-in-out infinite;
}

@keyframes cNudge {
  50% { transform: translateX(7px); }
}

.candy:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 var(--pink-darkest),
    0 3px 6px rgba(0, 0, 0, .3),
    inset 0 2px 3px rgba(255, 255, 255, .7);
}
