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

:root {
  --cream: #faf7f2;
  --blush: #e8d5d0;
  --rose: #c9a89a;
  --gold: #b8956a;
  --gold-light: #d4b896;
  --charcoal: #3d3530;
  --charcoal-soft: #5c524c;
  --sage: #8a9a7b;
  --sage-light: #b5c4a8;
}

html {
  font-size: 16px;
}

body {
  min-height: 100dvh;
  font-family: "Raleway", sans-serif;
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* Decorative background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 213, 208, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(184, 149, 106, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(201, 168, 154, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ornament {
  position: fixed;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(184, 149, 106, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ornament--top {
  top: -140px;
  right: -80px;
}

.ornament--bottom {
  bottom: -140px;
  left: -80px;
}

/* Garden tree decorations */
.tree-deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.tree-deco--left {
  bottom: 0;
  left: 0;
  width: min(28vw, 220px);
  height: auto;
  transform: translate(-8%, 5%);
}

.tree-deco--right {
  bottom: 0;
  right: 0;
  width: min(28vw, 220px);
  height: auto;
  transform: scaleX(-1) translate(-8%, 5%);
}

.tree-deco--top-left {
  top: 0;
  left: 0;
  width: min(22vw, 160px);
  height: auto;
  transform: rotate(-15deg) translate(-15%, -10%);
  opacity: 0.35;
}

.tree-deco--top-right {
  top: 0;
  right: 0;
  width: min(22vw, 160px);
  height: auto;
  transform: scaleX(-1) rotate(-15deg) translate(-15%, -10%);
  opacity: 0.35;
}

/* Bride & groom icons */
.couple-icons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2rem, 8vw, 4rem);
  margin-bottom: 1.5rem;
}

.couple-icon {
  width: clamp(48px, 12vw, 72px);
  height: auto;
  opacity: 0.7;
}

.container {
  position: relative;
  z-index: 1;
  width: min(92vw, 720px);
  padding: 3.5rem 2rem 4rem;
  text-align: center;
}

.pre-title {
  font-family: "Raleway", sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.names {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.names .ampersand {
  display: inline;
  font-family: "Great Vibes", cursive;
  font-style: normal;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  font-weight: 400;
  color: var(--gold);
  margin: 0 0.2em;
  line-height: 1;
  vertical-align: middle;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 280px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rose), transparent);
}

.divider-icon {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.tagline {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: var(--charcoal-soft);
  margin-bottom: 3rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 3vw, 1.5rem);
  margin-bottom: 3rem;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(184, 149, 106, 0.25);
  border-radius: 4px;
  padding: clamp(1rem, 4vw, 1.75rem) 0.5rem;
  position: relative;
}

.countdown-unit::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  border-radius: 1px;
}

.countdown-value {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: "Raleway", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.date-block {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  border-top: 1px solid rgba(184, 149, 106, 0.3);
  border-bottom: 1px solid rgba(184, 149, 106, 0.3);
}

.date-day {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.date-time {
  font-family: "Raleway", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}

.date-venue {
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 400;
  font-style: normal;
  color: var(--gold);
  margin-top: 0.85rem;
  line-height: 1.3;
}

.date-city {
  font-family: "Raleway", sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.35rem;
}

.celebration {
  display: none;
  animation: fadeIn 1s ease forwards;
}

.celebration.visible {
  display: block;
}

.celebration h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.celebration p {
  font-family: "Great Vibes", cursive;
  font-size: 1.75rem;
  font-style: normal;
  color: var(--gold);
}

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

@media (max-width: 480px) {
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    padding: 2.5rem 1.25rem 3rem;
  }

  .tree-deco--left,
  .tree-deco--right {
    width: 120px;
    opacity: 0.35;
  }

  .tree-deco--top-left,
  .tree-deco--top-right {
    display: none;
  }
}
