:root {
  --sage: #3b5249;
  --sage-dark: #283932;
  --ivory: #faf7f2;
  --cream: #f1ebe1;
  --gold: #c49a5c;
  --gold-soft: #f5ecdc;
  --text: #222624;
  --muted: #5d6460;
  --border: #e4ddd1;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--ivory);
  color: var(--text);
  line-height: 1.65;
  padding-bottom: 76px;
}

body.locked {
  overflow: hidden;
  height: 100vh;
}

h1, h2, h3, h4, .monogram, .cover-names {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.container {
  width: min(860px, 90%);
  margin: 0 auto;
}

/* Cover Overlay */
.cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: radial-gradient(circle at top, #466156 0%, #26362f 100%);
  color: var(--ivory);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.cover.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-content {
  max-width: 440px;
  width: 100%;
  border: 1px solid rgba(245, 236, 220, 0.25);
  border-radius: 220px 220px 24px 24px;
  padding: 56px 28px 42px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.cover-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.cover-names {
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: #fff;
}

.cover-date {
  margin-top: 8px;
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 28px;
}

.guest-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.guest-box span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.guest-box strong {
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.btn-open {
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-open:hover {
  transform: translateY(-2px);
  background: #b58b4e;
}

/* Hero Section */
.hero-section {
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 56px 20px;
  background: linear-gradient(180deg, #eae4d9 0%, var(--ivory) 100%);
  text-align: center;
}

.hero-arch {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 240px 240px 24px 24px;
  padding: 56px 36px 44px;
  width: min(440px, 100%);
  box-shadow: 0 20px 48px rgba(34, 38, 36, 0.08);
}

.hero-label {
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
}

.monogram {
  width: 68px;
  height: 68px;
  margin: 18px auto;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--sage-dark);
  background: var(--gold-soft);
}

.hero-arch h2 {
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  color: var(--sage-dark);
  line-height: 1.15;
}

.hero-arch h2 span {
  font-style: italic;
  color: var(--gold);
  font-size: 1.8rem;
}

.hero-date {
  margin-top: 18px;
  letter-spacing: 3px;
  font-weight: 600;
  color: var(--sage);
}

.hero-city {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-title {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 38px;
}

.section-title span {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.section-title h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  color: var(--sage-dark);
  margin-bottom: 10px;
}

.section-title p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* Quote */
.quote-card {
  background: var(--sage);
  color: var(--ivory);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
}

.quote-mark {
  font-size: 2rem;
  color: var(--gold-soft);
  margin-bottom: 8px;
}

.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 14px;
}

.quote-source {
  font-size: 0.85rem;
  color: var(--gold-soft);
}

/* Couple */
.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 22px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(34, 38, 36, 0.04);
}

.avatar-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.person-card h3 {
  font-size: 1.65rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.person-role {
  font-size: 0.84rem;
  color: var(--muted);
}

.person-parents {
  font-size: 0.92rem;
  font-weight: 500;
  margin: 6px 0 16px;
}

.ig-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--sage-dark);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.couple-ampersand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: var(--gold);
  text-align: center;
}

/* Countdown */
.countdown-box {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 24px;
  text-align: center;
}

.countdown-box h3 {
  font-size: 1.8rem;
  color: var(--sage-dark);
  margin-bottom: 20px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.cd-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 8px;
}

.cd-item strong {
  display: block;
  font-size: 1.8rem;
  color: var(--sage);
  line-height: 1.1;
}

.cd-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: #fff;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}

.event-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--sage-dark);
  display: grid;
  place-items: center;
}

.event-card h3 {
  font-size: 1.7rem;
  color: var(--sage-dark);
  margin-bottom: 8px;
}

.event-date {
  font-weight: 600;
  color: var(--sage);
}

.event-time {
  font-size: 0.92rem;
  color: var(--muted);
}

.event-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto;
}

.event-venue {
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--sage);
  color: var(--sage);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.btn-map:hover {
  background: var(--sage);
  color: #fff;
}

/* Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.timeline-year {
  display: inline-block;
  background: var(--gold-soft);
  color: #87622b;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.timeline-item h4 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-card {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  transition: transform 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
}

.tone-1 { background: linear-gradient(155deg, #4b665b, #2c3e36); }
.tone-2 { background: linear-gradient(155deg, #b89056, #846233); }
.tone-3 { background: linear-gradient(155deg, #6b7b73, #3c4742); }
.tone-4 { background: linear-gradient(155deg, #3b5249, #1f2d27); }

/* Gift / Amplop */
.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.bank-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
}

.bank-name {
  font-weight: 700;
  color: var(--sage);
  font-size: 1.05rem;
}

.bank-number {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 10px 0 4px;
}

.bank-owner {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.btn-copy {
  background: var(--cream);
  color: var(--sage-dark);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--sage);
  color: #fff;
}

/* RSVP */
.rsvp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rsvp-form,
.wishes-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
}

.btn-submit {
  width: 100%;
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wishes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.wishes-header span {
  font-size: 0.8rem;
  background: #e5efe9;
  color: var(--sage-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.wishes-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-item {
  background: var(--ivory);
  border-radius: 12px;
  padding: 12px 14px;
}

.wish-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.wish-top strong {
  font-size: 0.9rem;
}

.wish-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--sage-dark);
  font-weight: 600;
}

.wish-item p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Closing */
.closing-footer {
  text-align: center;
  padding: 48px 20px;
  background: var(--sage-dark);
  color: var(--ivory);
}

.closing-footer p {
  max-width: 520px;
  margin: 0 auto 14px;
  font-size: 0.92rem;
  opacity: 0.88;
}

.closing-footer h3 {
  font-size: 2.2rem;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.closing-footer a {
  color: var(--gold-soft);
}

/* Music FAB */
.music-fab {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--sage-dark);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  z-index: 120;
}

.music-fab.playing {
  animation: spinSlow 5s linear infinite;
  background: var(--gold-soft);
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Bottom Dock */
.bottom-dock {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, 94%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 110;
}

.bottom-dock a {
  text-decoration: none;
  color: var(--sage-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.bottom-dock a span {
  font-size: 0.68rem;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 22, 0.72);
  display: none;
  place-items: center;
  z-index: 400;
  padding: 20px;
}

.lightbox.open {
  display: grid;
}

.lightbox-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  width: min(360px, 100%);
  text-align: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-visual {
  height: 260px;
  border-radius: 14px;
  background: linear-gradient(155deg, #4b665b, #2c3e36);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  margin-bottom: 14px;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--sage-dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 500;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
  .couple-grid,
  .events-grid,
  .timeline,
  .gift-grid,
  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
