:root {
  --gold: #f2c14e;
  --gold-bright: #ffe08a;
  --ink: #1a1512;
  --paper: #fffaf1;
  --accent: #e0562f;
  --card: #241d18;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

.gold-text {
  background: linear-gradient(120deg, #b8860b, var(--gold-bright), #d4a017, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

#music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  background: var(--card);
  color: var(--gold-bright);
  border: 1px solid rgba(242,193,78,0.4);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

#music-toggle:hover { transform: translateY(-2px); background: #322820; }
#music-toggle.playing .music-icon { animation: spin 3s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.08);
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0.55) 0%, rgba(20,15,10,0.75) 55%, rgba(20,15,10,0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--paper);
  padding: 32px 20px;
  max-width: 800px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  margin: 0 0 24px;
  line-height: 1.05;
}

.lang-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  margin: 10px auto;
  max-width: 620px;
  color: #f1e6d0;
}

.lang-line::before {
  content: attr(data-lang);
  display: inline-block;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 8px;
  vertical-align: middle;
}

.scroll-cue {
  display: inline-block;
  margin-top: 36px;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px dotted rgba(242,193,78,0.6);
  padding-bottom: 2px;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.intro {
  padding: 70px 0 20px;
  text-align: center;
}

.intro p {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
  color: #4a3f36;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.feature.reverse .feature-media { order: 2; }
.feature.reverse .feature-text { order: 1; }

.img-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(0.65) saturate(1.1);
  transform: scale(1.15);
  z-index: 0;
}

.img-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.feature-media .img-frame { aspect-ratio: 4/3; }

.feature-media.two-up {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.feature-media.two-up .img-frame { aspect-ratio: 3/4; }

.tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.feature-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 16px;
}

.feature-text p {
  line-height: 1.7;
  color: #4a3f36;
  margin: 0 0 14px;
}

.gallery {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.gallery-title {
  font-family: var(--serif);
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 44px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.gallery-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.16);
}

.gallery-grid .img-frame {
  aspect-ratio: 4/3;
  border-radius: 0;
  box-shadow: none;
}

.gallery-grid figcaption {
  padding: 14px 16px 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a3f36;
  font-style: italic;
}

.closing {
  padding: 90px 0 60px;
  display: flex;
  justify-content: center;
}

.closing-card {
  background: var(--card);
  color: var(--paper);
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
  max-width: 560px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  border: 1px solid rgba(242,193,78,0.25);
}

.closing-text {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.5;
  margin: 0 0 20px;
}

.closing-sig {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #cbb98f;
  margin: 0;
}

footer {
  text-align: center;
  padding: 28px 20px 40px;
  font-size: 0.78rem;
  color: #9a8f80;
}

@media (max-width: 760px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 1; }
  .feature.reverse .feature-text { order: 2; }
  .feature-media.two-up { grid-template-columns: 1fr 1fr; }
  .feature-media.two-up .img-frame { aspect-ratio: 3/4; }
  #music-toggle { top: auto; bottom: 16px; right: 16px; }
}
