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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  background: color-mix(in srgb, var(--theme-bg, #FAF6F0) 85%, #1C1917 15%);
  color: var(--theme-ink, #231F1D);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.tabular { font-variant-numeric: tabular-nums; }

/* Native Mobile Frame (full-bleed on phones, centered 430px card on desktop) */
.ei-shell {
  inline-size: min(100%, 26.875rem);
  min-block-size: 100dvh;
  margin-inline: auto;
  background: var(--theme-bg, #FAF6F0);
  color: var(--theme-ink, #231F1D);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.14);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.ei-shell.is-locked {
  block-size: 100dvh;
  overflow: hidden;
}

.ei-trial-banner {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: #1e1b19;
  color: #fff8f5;
  font-size: 0.75rem;
}

.ei-trial-banner a {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #8c6a4a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.ei-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-accent, #9A7B4F);
}

/* Cover Gate (100dvh safe for WhatsApp / IG WebViews) */
.ei-cover {
  min-block-size: 100dvh;
  padding: 1.5rem 1.25rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.ei-cover-arch {
  inline-size: 100%;
  background: var(--theme-surface, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 35%, transparent);
  border-radius: 999px 999px 1.25rem 1.25rem;
  padding: 2rem 1.25rem 1.75rem;
}

.ei-cover-photo {
  inline-size: min(100%, 12.5rem);
  aspect-ratio: 4 / 5;
  margin: 0 auto 1.25rem;
  border-radius: 999px 999px 0.75rem 0.75rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--theme-accent, #9A7B4F) 10%, var(--theme-bg, #FAF6F0));
  display: grid;
  place-items: center;
}

.ei-cover-photo img,
.ei-avatar img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  display: block;
}

.ei-photo-placeholder {
  font-size: 0.75rem;
  color: var(--theme-accent, #9A7B4F);
  opacity: 0.85;
}

.ei-couple-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 1.6rem + 2.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.ei-couple-title span {
  font-style: italic;
  color: var(--theme-accent, #9A7B4F);
}

.ei-date-line {
  margin: 0.5rem 0 1.25rem;
  font-size: 0.85rem;
  opacity: 0.78;
}

.ei-guest-box {
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: var(--theme-bg, #FAF6F0);
  margin-block-end: 1.25rem;
}

.ei-guest-label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.72;
  margin-block-end: 0.2rem;
}

.ei-guest-name {
  font-size: 1rem;
  font-weight: 600;
}

.ei-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 0;
  background: var(--theme-accent, #9A7B4F);
  color: #FFFFFF;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

/* Content Sections */
.ei-section {
  padding: 2.5rem 1.35rem;
  text-align: center;
  border-block-start: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 20%, transparent);
}

.ei-quote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  text-wrap: pretty;
}

.ei-quote cite {
  display: block;
  margin-block-start: 0.75rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--theme-accent, #9A7B4F);
}

.ei-couple-grid {
  display: grid;
  gap: 1.25rem;
}

.ei-avatar {
  inline-size: 8.5rem;
  aspect-ratio: 1 / 1;
  margin: 0 auto 0.875rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 40%, transparent);
  background: color-mix(in srgb, var(--theme-accent, #9A7B4F) 10%, var(--theme-surface, #FFF));
  display: grid;
  place-items: center;
}

.ei-person-name {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
}

.ei-person-parents {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.78;
}

.ei-amp {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-style: italic;
  color: var(--theme-accent, #9A7B4F);
}

/* Countdown & Events */
.ei-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}

.ei-countdown > div {
  background: var(--theme-surface, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 25%, transparent);
  border-radius: 0.75rem;
  padding: 0.65rem 0.25rem;
}

.ei-countdown strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.ei-countdown span {
  font-size: 0.7rem;
  opacity: 0.72;
}

.ei-events-list {
  display: grid;
  gap: 1rem;
}

.ei-card {
  background: var(--theme-surface, #FFFFFF);
  border: 1px solid color-mix(in srgb, var(--theme-accent, #9A7B4F) 25%, transparent);
  border-radius: 1rem;
  padding: 1.35rem 1rem;
}

.ei-event-title {
  margin: 0 0 0.35rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.15;
}

.ei-event-meta {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-accent, #9A7B4F);
}

.ei-event-venue {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.ei-event-addr {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  opacity: 0.75;
}

.ei-event-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.ei-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--theme-accent, #9A7B4F);
  color: var(--theme-ink, #231F1D);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Closing & Demo Bar */
.ei-closing-note {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  opacity: 0.85;
  text-wrap: pretty;
}

.ei-monogram {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  font-style: italic;
  color: var(--theme-accent, #9A7B4F);
  margin-block-end: 1.5rem;
}

.ei-viral-footer {
  font-size: 0.78rem;
  opacity: 0.75;
}

.ei-viral-footer a {
  color: inherit;
  font-weight: 600;
}

.ei-music-btn {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-end: 1rem;
  z-index: 40;
  min-block-size: 2.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--theme-accent, #9A7B4F);
  background: var(--theme-surface, #FFFFFF);
  color: var(--theme-ink, #231F1D);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
}

.ei-demo-bar {
  position: fixed;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1C1917;
  border: 1px solid #EAE4DC;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.12);
  font-size: 0.75rem;
}

.ei-demo-dot {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.ei-demo-dot[aria-pressed="true"] {
  outline: 2px solid #1C1917;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .ei-reveal {
    opacity: 0;
    translate: 0 14px;
    transition: opacity 0.6s ease, translate 0.6s ease;
  }
  .ei-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}

:focus-visible {
  outline: 2px solid var(--theme-accent, #9A7B4F);
  outline-offset: 2px;
}
