@font-face {
  font-family: 'Great Vibes';
  src: url('assets/fonts/GreatVibes-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('assets/fonts/CormorantGaramond.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --burgundy: #310300;
  --gold: #dfbc77;
  --cream: #f3e4c5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #120302;
  color: var(--cream);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-variant-numeric: lining-nums;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff4d1; outline-offset: 5px; }
[hidden] { display: none !important; }
p, h1, h2 { margin: 0; font-weight: 400; }
.invitation {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 863 / 1823;
  margin-inline: auto;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  background: var(--burgundy);
}
.art { position: absolute; pointer-events: none; user-select: none; height: auto; }
.frame { inset: 0; width: 100%; height: 100%; z-index: -2; }
.leopard { top: .88%; left: 0; width: 52.72%; z-index: -1; }
.top-collage { top: 0; right: -1%; width: 51%; z-index: -1; }
.bottom-collage { top: 73.39%; left: -3%; width: 29%; z-index: 2; }
.music-toggle {
  position: absolute;
  top: 1.4%;
  left: 45.4%;
  width: 9.2%;
  min-width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 2.1%;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: #0b0905;
  z-index: 3;
}
.music-toggle svg { width: 100%; height: 100%; }
.pause-icon, [data-state='playing'] .play-icon { display: none; }
[data-state='playing'] .pause-icon { display: block; }
.name {
  position: absolute;
  top: 23.1%;
  left: 21%;
  width: 59%;
  text-align: center;
  font-family: 'Great Vibes', cursive;
  font-size: 29cqw;
  line-height: 1.15;
  color: #f5dfb0;
  text-shadow: 0 0 12px #b7793580;
}
.age {
  position: absolute;
  top: 33.5%;
  width: 100%;
  text-align: center;
  font-size: 35cqw;
  line-height: .88;
  color: var(--gold);
  text-shadow: 1px 1px #fff0bd, 2px 3px 8px #0008;
}
.rule { position: absolute; height: 2.7cqw; background: url('assets/images/divider.webp') center / 100% auto no-repeat; }
.rule-top { top: 47.8%; left: 27%; width: 46%; }
.date { position: absolute; top: 49.7%; width: 100%; text-align: center; }
.day { font-size: 7.7cqw; line-height: 1.12; color: var(--gold); }
.month { font-size: 4.55cqw; letter-spacing: .2em; line-height: 1.5; }
.time { font-size: 3.05cqw; letter-spacing: .13em; line-height: 1.65; }
.countdown {
  position: absolute;
  top: 60%;
  left: 20%;
  width: 60%;
  padding-block: 1.8%;
  border-block: 1px solid transparent;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.countdown::before, .countdown::after { content: ''; position: absolute; left: 0; width: 100%; height: 3cqw; background: url('assets/images/divider.webp') center / 100% auto no-repeat; }
.countdown::before { top: -1.5cqw; }
.countdown::after { bottom: -1.5cqw; }
.countdown div { position: relative; font-size: 8cqw; line-height: 1.15; color: var(--gold); }
.countdown div + div::before { content: ':'; position: absolute; left: -.08em; font-size: .7em; top: .14em; }
.countdown .unit { display: block; font-size: 2.8cqw; line-height: 1.5; letter-spacing: .08em; color: var(--cream); }
.location { position: absolute; top: 69.6%; width: 100%; text-align: center; }
.location svg { display: block; width: 4.3%; height: auto; margin: 0 auto 1%; color: var(--gold); }
.location p { font-size: 5.1cqw; line-height: 1.2; }
.dress-code { position: absolute; top: 76.55%; left: 24%; width: 52%; border-top: 1px solid var(--gold); text-align: center; padding-top: 2.7%; }
.dress-code h2 { font-size: 3.5cqw; line-height: 1.2; color: var(--gold); }
.dress-code p { margin-top: 1%; font-size: 3.9cqw; white-space: nowrap; margin-left: -10%; width: 120%; }
.attendance {
  position: absolute;
  top: 84.8%;
  left: 16.4%;
  width: 67.2%;
  min-height: 44px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 2.1% 5%;
  background: #090806;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  font-size: 5.1cqw;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px #fff0ba55;
}
.attendance svg { width: 4cqw; flex-shrink: 0; }
.audio-status { position: absolute; top: 92%; left: 20%; width: 60%; text-align: center; font-size: max(12px, 2.7cqw); }
.cover { position: fixed; inset: 0; z-index: 10; overflow: auto; display: grid; place-items: center; background: #240401 url('assets/images/frame-960.webp') center / cover; }
.cover-content { text-align: center; padding: 40px 24px; }
.cover-name { font-family: 'Great Vibes', cursive; font-size: clamp(100px, 25vw, 180px); line-height: 1; }
.cover-age { color: var(--gold); font-size: clamp(100px, 25vw, 180px); line-height: 1; }
.cover button { display: block; margin: 32px auto 0; min-height: 48px; padding: 10px 30px; border-radius: 999px; border: 2px solid var(--gold); background: #090806; font-size: 26px; }
.is-open { animation: reveal 900ms ease both; }
.sparkle { position: absolute; width: 4cqw; height: 6.53cqw; background: url('assets/images/sparkle.webp') center / contain no-repeat; transform: translate(-50%, -50%); animation: shimmer 4s ease-in-out infinite; pointer-events: none; }
.sparkle-one { left: 65.5%; top: 22.3%; }
.sparkle-two { left: 61%; top: 39.2%; animation-delay: 2s; }
.sparkle-three { left: 39.2%; top: 36.3%; animation-delay: 1s; }
.sparkle-four { left: 19.7%; top: 46%; animation-delay: 3s; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
