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

:root {
  --gold: #b8972a;
  --gold-light: #d4b054;
  --gold-pale: #f0e4be;
  --cream: #faf6ee;
  --dark: #1a1610;
  --mid: #5a4e38;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}

/* ── GRAIN OVERLAY ─────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ── BORDER FRAME ──────────────────────── */
.frame {
  position: fixed; inset: 14px;
  border: 1px solid var(--gold);
  pointer-events: none;
  z-index: 100;
  opacity: 0.45;
}
.frame::before {
  content: '';
  position: absolute; inset: 5px;
  border: 1px solid var(--gold-pale);
  opacity: 0.4;
}

.frame .corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.9;
}
.frame .corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.frame .corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.frame .corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.frame .corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ── HERO ──────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.6;
}

.hero-pre {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 300;
  font-style: italic;
  line-height: 0.9;
  color: var(--dark);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.4s forwards;
}

.hero-names .amp {
  color: var(--gold);
  font-size: 0.75em;
  display: inline-block;
  padding: 0 0.15em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  width: 280px;
  opacity: 0;
  animation: fadeUp 1.2s ease 0.6s forwards;
}
.divider-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }
.divider-diamond {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.35em;
  color: var(--mid);
  opacity: 0;
  animation: fadeUp 1.2s ease 0.8s forwards;
}

/* ── SECTION ───────────────────────────── */
section {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.body-text {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
}

.body-text em {
  font-style: italic;
  color: var(--dark);
}

/* ── INFO CARDS ────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 60px 0;
  background: var(--gold-pale);
}

.info-card {
  background: var(--cream);
  padding: 40px 30px;
  text-align: center;
}

.info-card-icon {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.info-card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.info-card-value {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.5;
}

.info-card-value .tba {
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
}

/* ── RSVP ──────────────────────────────── */
.rsvp-section {
  background: var(--dark);
  color: var(--cream);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rsvp-section::before {
  content: 'RSVP';
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 30vw, 18rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(184, 151, 42, 0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}

/* ── PHOTO / QR SECTION ────────────────── */
.photo-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.qr-wrap {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr-box {
  border: 1px solid var(--gold-pale);
  padding: 20px;
  background: var(--cream);
  box-shadow: 0 4px 30px rgba(184, 151, 42, 0.08);
}

.qr-img {
  display: block;
  width: 180px;
  height: 180px;
}

.qr-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.qr-link {
  font-size: 1rem;
  font-style: italic;
  color: var(--mid);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-pale);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.qr-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── GIFT SECTION ──────────────────────── */
.gift-section {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.rsvp-section .section-label { color: var(--gold-light); }

.rsvp-section .body-text {
  color: rgba(250, 246, 238, 0.65);
  max-width: 480px;
  margin: 0 auto 3rem;
}

.rsvp-section .body-text em {
  color: var(--cream);
}

.rsvp-cards {
  display: flex;
  gap: 2px;
  justify-content: center;
  flex-wrap: wrap;
}

.rsvp-card {
  background: rgba(184, 151, 42, 0.1);
  border: 1px solid rgba(184, 151, 42, 0.2);
  padding: 32px 36px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  min-width: 220px;
}

.rsvp-card:hover {
  background: rgba(184, 151, 42, 0.2);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.rsvp-card-type {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.rsvp-card-value {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--cream);
}

.rsvp-note {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(250, 246, 238, 0.4);
  margin-top: 2.5rem;
}

/* ── FOOTER ────────────────────────────── */
.footer {
  padding: 60px 40px;
  text-align: center;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 1rem;
}

.footer-names .amp { color: var(--gold); }

.footer-year {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  color: var(--gold);
}

/* ── ANIMATIONS ────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 560px) {
  .frame { inset: 8px; }
  .hero { padding: 60px 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .rsvp-cards { flex-direction: column; align-items: center; }
  .rsvp-card { min-width: 280px; }
  section { padding: 60px 28px; }
  .rsvp-section { padding: 60px 28px; }
}
