@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Cinzel:wght@400;500&display=swap');

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

:root {
  --cream: #faf6ef;
  --gold: #b8975a;
  --gold-light: #d4b37a;
  --dark: #2c2416;
  --muted: #7a6e5f;
}

html, body { height: 100%; }

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: 'Cormorant Garamond', Georgia, serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ── Card ── */
.card {
  max-width: 680px;
  width: 100%;
  border: 1px solid var(--gold);
  padding: 3.5rem 3rem;
  position: relative;
  text-align: center;
  background: var(--cream);
}

.card::before {
  content: '';
  position: absolute;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  border: 1px solid var(--gold-light);
  top: 7px; left: 7px;
  pointer-events: none;
  opacity: 0.5;
}

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

/* ── Language switcher ── */
.lang-switcher {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  display: flex;
  gap: 0.8rem;
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lang-switcher a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switcher a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-light);
}

/* ── Header ── */
.save-the-date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem auto;
  max-width: 300px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}
.divider-symbol { color: var(--gold); font-size: 1rem; line-height: 1; }

/* ── Names ── */
.names {
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.ampersand {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--gold);
  display: block;
  margin: 0.15em 0;
}

/* ── Date ── */
.date-block { margin: 2rem 0 1.8rem; }

.date-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.date {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--dark);
}

/* ── Venue ── */
.venue-block { margin-bottom: 2rem; }

.venue-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.venue-link {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-style: italic;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.venue-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

.venue-location {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── Countdown ── */
.countdown {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 8vw, 5rem);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.countdown-value {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
  min-width: 2.5ch;
}

.countdown-label {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Calendar button ── */
.calendar-wrap {
  position: relative;
  display: inline-block;
  margin-top: 2rem;
}

.calendar-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.calendar-btn:hover { background: var(--gold); color: var(--cream); }

.calendar-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--cream);
  border: 1px solid var(--gold-light);
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(44,36,22,0.08);
}
.calendar-dropdown.open { display: flex; }

.calendar-dropdown a {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  padding: 0.8rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(184,151,90,0.2);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.calendar-dropdown a:last-child { border-bottom: none; }
.calendar-dropdown a:hover { background: rgba(184,151,90,0.1); color: var(--gold); }

/* ── Footer note ── */
.formal-invitation {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 480px) {
  .card { padding: 2.5rem 1.5rem; }
}
