:root{
  --bg: #fff9f6;         /* soft ivory */
  --text: #3b2b2b;       /* warm charcoal */
  --muted: #ece5e5;      /* warm grey */
  --accent: #dba6a0;     /* blush */
  --card: #fff; 
  --shadow: rgba(59,43,43,0.06);
  --border: rgba(59,43,43,0.08);
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Montserrat', sans-serif;
}

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

#hero {
  text-align: center;
  padding: 3.5rem 1rem;
  height: 80vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* ensure perfect centering */
  position: relative;
}

/* Emphasized name treatment */
#hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(3rem, 9vw, 6rem);
  margin: 0;
  line-height: 1;
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 14px;

  /* soft glass panel to lift the text from the photo */
  background: rgba(59,43,43,0.85);
  backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(219,166,160,0.18);
  box-shadow: 0 18px 40px rgba(43,31,31,0.14);

  /* typography */
  color: #fff;
  letter-spacing: 0.6px;
  font-weight: 500;

  /* layered shadows to create a delicate warm outline + depth */
  text-shadow:
    0 1px 0 rgba(0,0,0,0.85),        /* tiny highlight */
    0 10px 30px rgba(0,0,0,0.12),       /* soft drop shadow */
    -1px -1px 0 rgba(219,166,160,0.22),    /* warm outline (top-left) */
    1px -1px 0 rgba(219,166,160,0.22),     /* warm outline (top-right) */
    -1px 1px 0 rgba(219,166,160,0.22),     /* warm outline (bottom-left) */
    1px 1px 0 rgba(219,166,160,0.22);      /* warm outline (bottom-right) */
}

/* small decorative flourish under the name */
#hero h1::after {
  display: block;
  margin: 0.6rem auto 0;
  font-size: 1.05rem;
  color: var(--accent);
  opacity: 0.95;
  transform: translateY(2px);
}

/* Headings use the decorative serif for a wedding feel */
h2, h3 {
  font-family: var(--heading-font);
  font-size: 2rem;
  color: var(--text);
  font-weight: 400;
}

section {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

#hero {
  text-align: center;
  padding: 3.5rem 1rem;
  height: 80vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

#hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#hero h1 { font-size: 3rem; margin-bottom: .25rem; }
#hero p { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }

.date {
  font-size: 2rem;
  margin-top: 1rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: #b08d57;
  color: white;
  text-decoration: none;
  border-radius: 30px;
}

footer {
  padding: 2rem;
  background: #f5f5f5;
  text-align: center;
}

/* Countdown wrapper */
#countdown-wrapper {
  max-width: 900px;
  margin: 2.5rem auto; /* center wrapper like other sections */
  text-align: center;
  padding: 0 1rem;
  animation: fadeUp 1.2s ease forwards;
}

.countdown-label {
  font-family: inherit;    /* use site's default font (Montserrat) */
  font-size: 1rem;        /* match regular body text size */
  color: inherit;         /* use the same text color as the page */
  font-weight: 400;       /* normal weight to match body */
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-align: center;     /* keep it centered with the countdown */
  line-height: 1.6;
}

/* Countdown layout */
#countdown {
  display: flex;
  justify-content: center;
  align-items: center; /* vertical align boxes */
  gap: 1rem;
  flex-wrap: wrap;
}

/* Time boxes */
.time-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
}

/* Animated numbers */
.time-box span {
  font-family: var(--heading-font);
  color: var(--text);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: bold;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Small labels */
.time-box small {
  font-family: var(--body-font);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

#details ul {
  list-style: none; /* remove bullets */
  padding: 0;       /* remove left padding/indent */
  margin: 0;        /* remove default top/bottom margin */
}

#details li {
  margin-bottom: 0.5rem; /* keep vertical spacing between items */
  /* optional: match other text styling */
  color: var(--text);
  font-size: 1rem;
}

a.button {
  background: var(--accent);
  color: #fff;
  padding: .65rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(219,166,160,0.18);
}

/* Gallery and footer polish */
#gallery img { border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
footer { text-align: center; padding: 2rem 1rem; color: #dba6a0;}

/* Fade-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #hero {
    padding: 2rem 1rem;
    min-height: 60vh;
    height: auto;
  }

  #hero h1 {
    font-size: clamp(2rem, 12vw, 4rem);
    padding: 0.5rem 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  #countdown {
    gap: 0.5rem;
  }

  .time-box {
    min-width: 60px;
  }

  .time-box span {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .time-box small {
    font-size: 0.8rem;
    color: var(--text);
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  h2, h3 {
    font-size: 1.5rem;
  }

  .button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}
