@font-face {
  font-family: "Lora";
  src: url("lora-regular.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "UVN";
  src: url("uvn.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alisheia";
  src: url("alisheia.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arcittya";
  src: url("arcittya-begatri.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wine: #840b1d;
  --wine-deep: #5c0814;
  --wine-rich: #6e0918;
  --cream: #f6f1ea;
  --paper: #fffcf8;
  --ink: #3a241c;
  --muted: #8a736c;
  --line: #eadfd4;
  --yes: #2f6b4f;
  --no: #8d3b32;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --script: "Alisheia", "Times New Roman", serif;
  --display: "UVN", "Lora", Georgia, serif;
  --hand: "Arcittya", "Lora", serif;
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Music button - góc phải ở dưới */
.music-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 252, 248, 0.35);
  border-radius: 50%;
  background: var(--wine);
  color: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(58, 8, 16, 0.32);
  transition: transform 0.25s ease, background 0.25s ease;
}

.music-btn:hover {
  transform: scale(1.05);
  background: var(--wine-deep);
}

.music-btn.playing {
  animation: musicPulse 2.4s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(58, 8, 16, 0.32); }
  50% { box-shadow: 0 8px 28px rgba(132, 11, 29, 0.55); }
}

.music-btn svg {
  width: 20px;
  height: 20px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .music-btn.playing { animation: none; }
}

/* Hiệu ứng lấp lánh ánh kim cho tên Cô dâu & Chú rể */
.shimmer-couple {
  background: linear-gradient(
    115deg,
    #7a091a 0%,
    #9e1429 28%,
    #d49b3b 48%,
    #fff1c9 52%,
    #b51930 72%,
    #7a091a 100%
  );
  background-size: 240% auto;
  color: var(--wine);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: coupleTwinkle 3.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(212, 155, 59, 0.25));
}

@keyframes coupleTwinkle {
  0% {
    background-position: 100% center;
    opacity: 0.92;
    filter: drop-shadow(0 2px 6px rgba(132, 11, 29, 0.16));
  }
  50% {
    background-position: 0% center;
    opacity: 1;
    filter: drop-shadow(0 3px 14px rgba(212, 155, 59, 0.55));
  }
  100% {
    background-position: -100% center;
    opacity: 0.92;
    filter: drop-shadow(0 2px 6px rgba(132, 11, 29, 0.16));
  }
}

@media (prefers-reduced-motion: reduce) {
  .shimmer-couple {
    animation: none;
    -webkit-text-fill-color: var(--wine);
  }
}