*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Shantell Sans", "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  background: linear-gradient(180deg, #ffe066 0%, #ff9ff3 40%, #54a0ff 100%);
  color: #2d3436;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.hero {
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.names-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 140px;
}

.avatar {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  /* top-biased crop: faces sit in the middle instead of getting chopped */
  object-position: 50% 28%;
  border: 5px solid #ff6b6b;
  border-radius: 50%;
  background: #dfe6e9;
  box-shadow: 3px 3px 0 #000;
}

/* tweak these % if a face still feels too high/low in the circle */
.avatar--damian {
  object-position: 50% 10%;
}

.avatar--elena {
  object-position: 50% 20%;
}

.name {
  margin-top: 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #6c5ce7;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #fd79a8;
}

.plus {
  font-size: 3rem;
  font-weight: bold;
  color: #e17055;
  line-height: 1;
  padding-bottom: 1.5rem;
  animation: wobble 1.5s ease-in-out infinite;
}

.title {
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #d63031;
  text-shadow: 2px 2px 0 #fdcb6e, 4px 4px 0 #00cec9;
  transform: rotate(-2deg);
}

.getaway-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.75rem;
  background: repeating-linear-gradient(
    45deg,
    #55efc4,
    #55efc4 10px,
    #81ecec 10px,
    #81ecec 20px
  );
  border: 4px dashed #e84393;
  border-radius: 12px;
}

.getaway-text {
  font-size: clamp(0.82rem, 3.6vw, 1.2rem);
  font-weight: bold;
  color: #2d3436;
  background: #fff;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 3px solid #fdcb6e;
  white-space: nowrap;
}

.sparkle {
  font-size: 1.25rem;
  animation: bounce 0.8s ease-in-out infinite alternate;
}

.sparkle.left {
  animation-delay: 0s;
}

.sparkle.right {
  animation-delay: 0.4s;
}

.intro {
  margin: 1.5rem 0;
  padding: 1rem 0.8rem;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #a29bfe;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #636e72;
}

.intro p {
  margin: 0;
  font-style: italic;
  font-size: clamp(0.85rem, 3.3vw, 1.05rem);
  line-height: 1.55;
}

.palma-photo {
  margin: 1.5rem 0;
}

.palma-img {
  width: 100%;
  display: block;
  border: 6px ridge #00b894;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #2d3436;
}

.when {
  text-align: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #ffeaa7;
  border: 4px double #e17055;
  transform: rotate(1deg);
}

.when h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: #0984e3;
}

.dates {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: bold;
  line-height: 1.7;
}

.sign-section {
  text-align: center;
  margin: 2rem 0 1rem;
}

.sign-img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
  border: 5px solid #fd79a8;
  background: #dfe6e9;
}

.sign-caption {
  animation: pulse 1.2s ease-in-out infinite;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.1);
  }
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 380px) {
  .names-row {
    gap: 0.25rem;
  }

  .plus {
    font-size: 2.25rem;
    padding-bottom: 1rem;
  }

  .avatar {
    max-width: 90px;
  }

  .getaway-text {
    font-size: 0.76rem;
    padding: 0.3rem 0.5rem;
  }
}
