@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Ballet:opsz@16..72&family=Cormorant+Upright:wght@300;400;500;600;700&family=Mea+Culpa&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: Montserrat, sans-serif;
  color: #3a2e2a;
  background: #fffcf9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

html[data-state=locked] body {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: "Mea Culpa", cursive;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

p {
  margin: 0 0 1em;
}

.script {
  font-family: "Mea Culpa", cursive;
  font-style: italic;
  color: #8b5e63;
}

.js [data-anim] {
  opacity: 0;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-anim] {
    opacity: 1;
  }
}
/**
 * ----------------------------------------
 * animation jello-horizontal
 * ----------------------------------------
 */
@keyframes handBounce {
  /* Trạng thái nghỉ */
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  /* Bay lên + zoom to */
  18% {
    transform: translateY(-8px) scale(1.1);
  }
  /* Rơi xuống + thu nhỏ */
  35% {
    transform: translateY(5px) scale(0.95);
  }
  /* Nảy lên */
  48% {
    transform: translateY(-6px) scale(1.06);
  }
  /* Nảy xuống */
  60% {
    transform: translateY(2px) scale(0.98);
  }
  /* Nảy nhẹ lần cuối */
  70% {
    transform: translateY(-2px) scale(1.02);
  }
  /* Nghỉ */
  80%, 100% {
    transform: translateY(0) scale(1);
  }
}
main {
  max-width: 540px;
  margin-inline: auto;
  overflow-x: clip;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.container {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.section {
  padding: 72px 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .section {
    padding: 96px 24px;
  }
}
.section--alt {
  background: linear-gradient(160deg, #fffcf9, #f1e5d8);
}
.section--hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #8b5e63;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 0;
  border-radius: 999px;
  background: #8b5e63;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:focus-visible {
  outline: 2px solid #8b5e63;
  outline-offset: 3px;
}
.btn:hover {
  opacity: 0.9;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.envelope-page {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #fffcf9, #f1e5d8);
  overflow: hidden;
}
.envelope-page.is-hidden {
  display: none;
}
.envelope-page__wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.envelope {
  position: relative;
  max-width: 420px;
  width: 100%;
  aspect-ratio: 420/280;
  perspective: 1200px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.278);
}
.envelope__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.envelope__back {
  z-index: 1;
}
.envelope__card {
  position: absolute;
  width: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.envelope__card.is-front {
  z-index: 20;
}
.envelope__paper {
  width: 95%;
  padding: clamp(14px, 4vw, 22px) 12px;
  background: #fffcf8;
  border: 1px solid rgba(139, 94, 99, 0.35);
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #3a2e2a;
  font-family: "Mea Culpa", cursive;
}
.envelope__paper p {
  margin: 0;
}
.envelope__paper-title {
  font-family: Montserrat, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8b5e63;
  margin-bottom: 6px !important;
}
.envelope__paper-name {
  font-size: 52px;
  line-height: 1.25;
}
.envelope__paper-amp {
  font-size: 42px;
  font-style: italic;
  color: #8b5e63;
}
.envelope__paper-date {
  margin-top: 8px !important;
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
.envelope__front {
  z-index: 3;
}
.envelope__flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 53.6%;
  z-index: 4;
  transform-origin: top center;
  transform-style: preserve-3d;
}
.envelope__flap img {
  width: 100%;
  height: auto;
}
.envelope__flap.is-behind {
  z-index: 0;
}
.envelope__flap-shadow {
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 3;
  transform-origin: top center;
  filter: brightness(0) blur(5px);
  opacity: 0.35;
  pointer-events: none;
}
.envelope__seal {
  position: absolute;
  top: 48%;
  left: 41%;
  z-index: 5;
  width: 80px;
}
.envelope__hint {
  font-family: "Cormorant Upright", serif;
  color: #8b5e63;
}
.envelope__hand {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 40px;
  z-index: 6;
  pointer-events: none;
}
.envelope .hand-icon {
  display: inline-block;
  transform-origin: center bottom;
  animation: handBounce 1.8s infinite;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
}
@media (min-width: 768px) {
  .countdown {
    gap: 24px;
  }
}
.countdown__item {
  min-width: 68px;
  padding: 14px 8px;
  background: #fffcf8;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.countdown__value {
  display: block;
  font-family: "Mea Culpa", cursive;
  font-size: 1.9rem;
  line-height: 1.1;
}
.countdown__label {
  font-size: 0.75rem;
  color: #8b5e63;
}

.gallery {
  --swiper-theme-color: #8b5e63;
  --swiper-navigation-size: 24px;
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: 36px;
}
.gallery .swiper-slide {
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
}
.gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rsvp {
  max-width: 480px;
  margin-inline: auto;
  text-align: left;
}
.rsvp .field {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.rsvp label,
.rsvp legend {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.rsvp input[type=text],
.rsvp input[type=number],
.rsvp textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(58, 46, 42, 0.2);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.rsvp input[type=text]:focus-visible,
.rsvp input[type=number]:focus-visible,
.rsvp textarea:focus-visible {
  outline: 2px solid #8b5e63;
  outline-offset: 3px;
}
.rsvp .choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.rsvp .hp {
  position: absolute;
  left: -9999px;
}
.rsvp .btn {
  width: 100%;
}
.rsvp__status {
  min-height: 1.5em;
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.rsvp__status[data-state=error] {
  color: #b3261e;
}
.rsvp__status[data-state=success] {
  color: #2e6b4f;
}

/*# sourceMappingURL=main.css.map */
