:root {
  --bg: #f9f7f4;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #5f5f5f;
  --accent: #b38b59;
  --accent-2: #e7d9c4;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(179, 139, 89, 0.7), rgba(55, 45, 36, 0.7)),
    url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: #fff;
  padding: 64px 16px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 21, 16, 0.4), rgba(26, 21, 16, 0.65));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 12px;
  color: #ffe8c6;
}

.hero h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: clamp(42px, 6vw, 72px);
  margin: 0 0 8px;
}

.subtitle {
  margin: 0 0 16px;
  font-size: 18px;
  color: #f7f0e6;
}

.greeting {
  margin: 0 0 24px;
  color: #fff;
  font-weight: 500;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: #2c2218;
  box-shadow: var(--shadow);
}

.button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.button.full {
  width: 100%;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.grid.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--card);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card .label {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card .value {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.countdown .value {
  font-size: 24px;
  color: var(--accent);
}

.details {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 24px;
  margin: 72px auto;
}

.detail-card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-card h2 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  margin-top: 0;
  font-size: 30px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.detail-list li {
  background: var(--bg);
  padding: 14px 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-list span:first-child {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.timeline {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline h3 {
  margin-top: 0;
  font-size: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee7dd;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline .time {
  font-weight: 700;
  color: var(--accent);
}

.timeline .title {
  margin: 0 0 4px;
  font-weight: 700;
}

.timeline .desc {
  margin: 0;
  color: var(--muted);
}

.rsvp {
  background: #f1eae0;
  padding: 72px 0;
}

.rsvp-card {
  background: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8cfc0;
  font: inherit;
  background: #fdfbf7;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(179, 139, 89, 0.35);
  border-color: var(--accent-2);
}

.helper {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.notes {
  padding-left: 18px;
  color: var(--muted);
}

.footer {
  text-align: center;
  padding: 32px 0 40px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .details {
    grid-template-columns: 1fr;
  }

  .rsvp-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 70vh;
  }

  .grid.stats {
    margin-top: -40px;
  }

  .stat-card {
    padding: 16px;
  }

  .detail-card,
  .timeline,
  .rsvp-card {
    padding: 22px;
  }
}
