/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --cream:      #F5F0E8;
  --ruby:       #8B1F22;
  --sage:       #6B7A3D;
  --gold:       #C47A2A;
  --charcoal:   #3D3530;
  --muted:      #7A6E68;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;
}

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

/* ─── Base ───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Header / Language Toggle ───────────────────────────────── */
.site-header {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  display: flex;
  justify-content: center;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.25rem 0.1rem;
  transition: color 0.2s;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--ruby);
}

.lang-btn.active {
  color: var(--charcoal);
  font-weight: 500;
}

.lang-divider {
  color: var(--muted);
  font-size: 0.7rem;
  opacity: 0.5;
  user-select: none;
}

/* ─── Main Layout ────────────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

/* ─── Hero Image ─────────────────────────────────────────────── */
.hero {
  width: 100%;
  max-width: 520px;
  margin-bottom: 2rem;
  border-radius: 4px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Card ───────────────────────────────────────────────────── */
.card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* ─── Label ("Save the Date") ────────────────────────────────── */
.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ruby);
}

/* ─── Names ──────────────────────────────────────────────────── */
.names {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--charcoal);
}

/* ─── Date & Location ────────────────────────────────────────── */
.details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.date {
  font-family: var(--serif);
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
}

.venue {
  font-family: var(--serif);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 300;
  color: var(--muted);
}

.location {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Countdown ──────────────────────────────────────────────── */
.countdown {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.countdown:empty { display: none; }

/* ─── Divider ────────────────────────────────────────────────── */
.card::after {
  /* thin gold rule between names and details is handled by gap;
     add a decorative line before the tagline */
  content: none;
}

/* Ornamental separator before tagline */
.tagline {
  position: relative;
  padding-top: 1.25rem;
}

.tagline::before {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin: 0 auto 1.25rem;
}

/* ─── Tagline ────────────────────────────────────────────────── */
.tagline {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 38ch;
}

/* ─── Calendar Buttons ───────────────────────────────────────── */
.calendar-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 320px;
  padding-top: 0.5rem;
}

.cal-btn {
  background: transparent;
  border: 1px solid var(--ruby);
  border-radius: 3px;
  color: var(--ruby);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 0.7rem 1.2rem;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.cal-btn:hover,
.cal-btn:focus-visible {
  background: var(--ruby);
  color: var(--cream);
  outline: none;
}

.cal-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ruby);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 480px) {
  .calendar-buttons {
    flex-direction: column; /* keep stacked — looks cleaner */
  }
}

@media (prefers-color-scheme: dark) {
  /* opt out — design is intentionally light/warm */
}
