:root {
  --color-primary: #e91e8c;
  --color-bg: #fff0f9;
  --color-text: #2d2d2d;
  --color-accent: #ffd6ee;
  --color-border: #f9b4db;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

header {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

header h1 { font-size: 2.2rem; margin-bottom: .25rem; }
header p  { font-size: 1rem; opacity: .85; }

main { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* ── Invite ─────────────────────────────────────────────── */
#invite {
  background: #fff;
  border-radius: 1rem;
  border: 2px solid var(--color-border);
  padding: 2rem;
  line-height: 1.7;
}

#invite h2 { color: var(--color-primary); margin-bottom: 1rem; }
#invite .detail { margin-bottom: .5rem; }
#invite .label { font-weight: 700; }

/* ── Gallery grid ────────────────────────────────────────── */
#gallery { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}

.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .5rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.grid img:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ── Lightbox ────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: .5rem;
  object-fit: contain;
}

.lb-btn {
  position: fixed;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.lb-btn:hover { background: rgba(255,255,255,.3); }

#lb-close { top: 1rem; right: 1rem; }
#lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
#lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Archive link ────────────────────────────────────────── */
.archive-link {
  display: block;
  text-align: center;
  margin-top: 3rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: .9rem;
  opacity: .7;
}
.archive-link:hover { opacity: 1; }
