:root {
  --sky: #acd9f5;
  --deep: #557f9e;
  --ink: #365468;
  --gold: #d5b26b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(155deg, #d9f0ff, #f9fdff 48%, #c9e7fa);
  font-family: Georgia, "Times New Roman", serif;
}
button,
a {
  font: inherit;
}
main {
  min-height: 100vh;
}
.welcome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, #fff 0 8%, transparent 30%),
    linear-gradient(160deg, #eaf8ff, #a9d9f5);
}
.eyebrow {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  color: #638da8;
}
.envelope {
  position: relative;
  width: min(82vw, 390px);
  height: 245px;
  margin: 42px 0 28px;
  border: 0;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: 0 22px 55px #5887a449;
  cursor: pointer;
  perspective: 900px;
  animation: float 3s ease-in-out infinite;
}
.envelope:before,
.envelope:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 100%;
  background: linear-gradient(145deg, transparent 49.4%, #d9edf8 50%);
  border-radius: 8px;
  z-index: 2;
}
.envelope:after {
  transform: scaleX(-1);
  background: linear-gradient(145deg, transparent 49.4%, #edf8fe 50%);
}
.envelope-flap {
  position: absolute;
  inset: 0 0 auto;
  height: 60%;
  background: #c6e7f9;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 3;
  transform-origin: top;
}
.envelope-card {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 20px;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #517d99;
  font-size: 1.5rem;
  border: 1px solid #d6ebf6;
  z-index: 1;
}
.envelope-card i {
  color: var(--gold);
}
.seal {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 15px #608aa555;
  z-index: 5;
  font-size: 1.65rem;
}
.open-button,
.primary-action,
.secondary-action {
  border: 0;
  border-radius: 999px;
  padding: 15px 25px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}
.open-button,
.primary-action {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 8px 22px #547d9755;
}
.open-button:hover,
.primary-action:hover {
  transform: translateY(-2px);
}
.invitation {
  width: min(100%, 720px);
  margin: auto;
  background: #ffffffc7;
  box-shadow: 0 0 80px #6999b63a;
  overflow: hidden;
  animation: reveal 0.8s ease both;
}
.hero {
  min-height: 680px;
  padding: 76px 30px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 15%, #fff 0 4%, transparent 4.4%),
    radial-gradient(circle at 87% 28%, #fff 0 6%, transparent 6.5%),
    linear-gradient(#d8effc, #f9fdff);
}
.stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 28px;
}
.baby-illustration {
  width: min(76vw, 310px);
  height: auto;
  display: block;
  margin: 14px auto 18px;
  filter: drop-shadow(0 15px 20px #739bb633);
}
h1 {
  margin: 0;
  color: #5d88a4;
  font-size: clamp(3.4rem, 12vw, 6.3rem);
  font-weight: 400;
  line-height: 0.9;
  font-style: italic;
}
.intro {
  max-width: 480px;
  font-size: 1.18rem;
  line-height: 1.8;
  margin: 34px auto 22px;
}
.parents {
  font-size: 1.65rem;
  margin: 15px 0;
  color: #496e85;
}
.parents span {
  color: var(--gold);
  padding: 0 8px;
}
.countdown-card {
  margin: -32px 22px 40px;
  padding: 25px 16px;
  position: relative;
  background: #fff;
  border: 1px solid #d8ebf7;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 15px 35px #6c9bb629;
}
.countdown-card > p {
  margin: 0 0 18px;
  font-style: italic;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.countdown div {
  border-right: 1px solid #dbeaf2;
}
.countdown div:last-child {
  border: 0;
}
.countdown strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  color: #5985a1;
}
.countdown span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}
.details {
  padding: 18px 28px 52px;
  display: grid;
  gap: 16px;
}
.detail {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #edf8fe;
  padding: 17px 20px;
  border-radius: 18px;
}
.detail > span {
  font-size: 1.7rem;
}
.detail small,
.detail strong {
  display: block;
}
.detail small {
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  margin-bottom: 5px;
  color: #7395aa;
}
.photo-section {
  padding: 55px 26px;
  text-align: center;
  background: #d6edf9;
}
.photo-frame {
  width: min(78vw, 340px);
  aspect-ratio: 1/1.12;
  margin: auto;
  padding: 10px;
  background: #fff;
  border-radius: 48% 48% 8px 8px;
  box-shadow: 0 14px 35px #638aa447;
  transform: rotate(-1.5deg);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 48% 48% 5px 5px;
  filter: saturate(0.85) contrast(1.05);
}
blockquote {
  margin: 35px auto 0;
  max-width: 430px;
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
}
.actions {
  padding: 65px 27px;
  text-align: center;
  background: #fff;
}
.actions h2,
.gift-modal h2 {
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 12px;
  color: #577f99;
}
.actions > p {
  margin-bottom: 30px;
}
.actions a,
.actions button {
  display: block;
  width: min(100%, 370px);
  margin: 13px auto;
}
.secondary-action {
  background: #e7f5fd;
  color: #466b82;
  border: 1px solid #cce7f5;
}
footer {
  text-align: center;
  padding: 32px 20px;
  background: #6e98b2;
  color: #fff;
  font-style: italic;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #24475c99;
  backdrop-filter: blur(5px);
}
.gift-modal {
  width: min(100%, 500px);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  padding: 38px 25px 27px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 80px #183d5466;
  animation: pop 0.35s ease both;
}
.close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  color: #64869b;
  cursor: pointer;
}
.gift-bubble {
  width: 65px;
  height: 65px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e2f4fe;
  font-size: 2rem;
}
.gift-modal > p {
  line-height: 1.6;
}
.gift-modal ul {
  list-style: none;
  padding: 0;
  margin: 23px 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.gift-modal li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px;
  border-radius: 15px;
  background: #eef8fd;
}
.gift-modal li > span {
  font-size: 1.6rem;
}
.gift-modal li strong,
.gift-modal li small {
  display: block;
}
.gift-modal li small {
  margin-top: 3px;
  color: #708b9c;
}
.coming-soon {
  color: #7192a6;
  font-size: 0.88rem;
  font-style: italic;
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}
@media (max-width: 430px) {
  .hero {
    min-height: 630px;
    padding-inline: 22px;
  }
  .countdown-card {
    margin-inline: 12px;
    padding-inline: 8px;
  }
  .detail {
    padding-inline: 15px;
  }
  .gift-modal {
    padding-inline: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
