:root {
  --bg: #fffaf5;
  --card: #ffffff;
  --text: #2d2723;
  --muted: #71665f;
  --accent: #9b6b43;
  --accent-dark: #70482d;
  --border: #eadfd3;
  --shadow: 0 20px 60px rgba(74, 50, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7vw;
  background: rgba(255, 250, 245, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  padding: 80px 7vw;
  background:
    linear-gradient(rgba(255, 250, 245, 0.78), rgba(255, 250, 245, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(155, 107, 67, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(155, 107, 67, 0.14), transparent 30%);
}

.hero-card {
  width: min(760px, 100%);
  padding: clamp(36px, 8vw, 72px);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 12vw, 7rem);
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.date,
.location {
  margin: 8px 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.countdown span {
  min-width: 88px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  font-weight: 700;
}

.countdown small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  color: var(--accent-dark);
  border: 1px solid var(--border);
  background: var(--card);
}

.section {
  padding: 90px 7vw;
}

.narrow {
  max-width: 820px;
  margin: 0 auto;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.detail-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 12px 34px rgba(74, 50, 32, 0.08);
}

.detail-card p {
  margin: 8px 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.timeline div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.timeline span {
  color: var(--accent);
  font-weight: 800;
}

.timeline p {
  margin: 0;
}

.rsvp {
  text-align: center;
  background: #f8efe6;
}

.rsvp p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.site-footer {
  padding: 36px 7vw;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 6px 0;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 7vw;
    display: none;
    flex-direction: column;
    min-width: 220px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
