/* Minimalist — Ivory / Ink / Gold, Montserrat-forward. Default template theme;
   client.yaml `theme` (Dua Hati+) overrides --color-bg/--color-text/--color-accent
   via templates/_shared/partials/brand_tokens.html.j2. */
:root {
  --color-bg: var(--color-ivory);
  --color-text: var(--color-ink);
  --color-accent: var(--color-gold);
  --color-surface: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

#main-content { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 4rem; }

.hero { text-align: center; padding: 4rem 0 2.5rem; }
.hero__photo, .hero__video { width: 220px; height: 220px; object-fit: cover; border-radius: 50%; margin-bottom: 1.5rem; }
.hero__monogram {
  width: 140px; height: 140px; margin: 0 auto 1.5rem; border: 1px solid var(--color-accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-accent);
}
.hero__flourish { font-family: var(--font-flourish); font-size: 1.6rem; color: var(--color-accent); margin: 0; }
.hero__names { font-family: var(--font-heading); font-weight: 500; font-size: 2.75rem; margin: 0.5rem 0 1rem; letter-spacing: 0.02em; }
.hero__amp { color: var(--color-accent); font-style: italic; }
.hero__greeting { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 2rem; }

.countdown { display: flex; justify-content: center; gap: 1.5rem; margin: 0 auto; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 3.5rem; }
.countdown__num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; }
.countdown__label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.65; }

.section { padding: 3rem 0; border-top: 1px solid rgba(46,33,31,0.08); }
.section__heading {
  font-family: var(--font-heading); font-weight: 500; font-size: 1.6rem; text-align: center;
  margin: 0 0 2rem;
}

.story-timeline__item { margin-bottom: 1.75rem; text-align: center; }
.story-timeline__date { font-size: 0.8rem; color: var(--color-accent); letter-spacing: 0.06em; text-transform: uppercase; }
.story-timeline__title { font-family: var(--font-heading); font-size: 1.2rem; margin: 0.25rem 0; }
.story-timeline__text { margin: 0; opacity: 0.85; }

.events-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.event-card { background: var(--color-surface); border-radius: 10px; padding: 1.5rem; text-align: center; }
.event-card__label { font-family: var(--font-heading); color: var(--color-accent); margin: 0 0 0.5rem; }
.event-card__date, .event-card__venue, .event-card__address { margin: 0.25rem 0; }
.event-card__links { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }

.btn {
  display: inline-block; padding: 0.65rem 1.4rem; border-radius: 999px; text-decoration: none;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; border: none;
}
.btn--outline { background: transparent; border: 1px solid var(--color-text); color: var(--color-text); }
.btn--accent { background: var(--color-accent); color: #fff; }

.schedule-list { list-style: none; padding: 0; max-width: 420px; margin: 0 auto; }
.schedule-list__item { display: flex; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed rgba(46,33,31,0.15); }
.schedule-list__time { font-weight: 600; min-width: 4.5rem; }
.dress-code { text-align: center; margin-top: 2rem; }
.dress-code__swatches { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.5rem; }
.dress-code__swatch { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); display: inline-block; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.gallery-grid__item { border: none; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); display: flex; align-items: center;
  justify-content: center; z-index: 100;
}
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

.gift-section__message { text-align: center; opacity: 0.85; }
.gift-section__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gift-card { background: var(--color-surface); border-radius: 10px; padding: 1.25rem; text-align: center; }
.gift-card__bank { font-weight: 600; margin: 0; }
.gift-card__name { opacity: 0.7; margin: 0.25rem 0; font-size: 0.9rem; }
.gift-card__copy { border: 1px dashed var(--color-accent); background: none; border-radius: 8px; padding: 0.5rem 1rem; cursor: pointer; font-family: var(--font-body); }
.gift-card__qr-img { width: 140px; height: 140px; object-fit: contain; }

.rsvp-form { display: flex; flex-direction: column; gap: 1rem; max-width: 420px; margin: 0 auto; }
.rsvp-form__field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; }
.rsvp-form__field input, .rsvp-form__field select, .rsvp-form__field textarea {
  padding: 0.6rem 0.75rem; border: 1px solid rgba(46,33,31,0.2); border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem;
}
.rsvp-form__honeypot { position: absolute; left: -9999px; }
.rsvp-form__status { text-align: center; color: var(--color-accent); font-weight: 600; }

.wishes-list__item { border-bottom: 1px solid rgba(46,33,31,0.08); padding: 0.75rem 0; }
.wishes-list__name { font-weight: 600; margin: 0; }
.wishes-list__message { margin: 0.25rem 0 0; opacity: 0.85; }

.calendar-cta { text-align: center; padding: 1.5rem 0; }

.site-footer { text-align: center; padding-top: 2rem; opacity: 0.6; }
.site-footer__logo { width: 32px; height: 32px; object-fit: contain; }
.site-footer__credit { font-size: 0.75rem; margin: 0.5rem 0 0; }

.music-toggle {
  position: fixed; bottom: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; border-radius: 50%;
  border: none; background: var(--color-accent); color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 50;
}

.lang-toggle {
  position: fixed; top: 1.25rem; right: 1.25rem; border: 1px solid var(--color-text); background: var(--color-bg);
  border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; z-index: 50;
}

.teaser-overlay, .thank-you-overlay {
  position: fixed; inset: 0; background: var(--color-bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2rem; z-index: 60;
}
/* `hidden` and `display:flex` above are equal-specificity (class vs. UA attribute
   selector) — without this compound selector, source order lets `flex` win and
   the overlay stays visible even with the `hidden` attribute set. */
.lightbox[hidden], .teaser-overlay[hidden], .thank-you-overlay[hidden] { display: none; }
.teaser-overlay__flourish, .thank-you-overlay__flourish { font-family: var(--font-flourish); font-size: 2rem; color: var(--color-accent); }
.teaser-overlay__names, .thank-you-overlay__names { font-family: var(--font-heading); font-size: 2.25rem; margin: 0.5rem 0 1.5rem; }
.thank-you-overlay__photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }

@media (max-width: 480px) {
  .hero__names { font-size: 2.1rem; }
  .countdown { gap: 0.75rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
