:root {
  --primary: #2d4a3e;
  --primary-light: #436a5a;
  --primary-soft: #eaf0ec;
  --accent: #b38b59;
  --accent-light: #d8b284;
  --bg: #f8faf8;
  --surface: #ffffff;
  --text: #1f2a24;
  --text-muted: #5a6860;
  --border: #e2e8e3;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -10px rgba(45, 74, 62, 0.12);
  --shadow-hover: 0 20px 40px -12px rgba(45, 74, 62, 0.2);
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 36px;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 32px;
  color: var(--accent);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  width: 60px;
  background-color: var(--accent-light);
  opacity: 0.5;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px 40px;
  background: linear-gradient(180deg, rgba(234, 240, 236, 0.7) 0%, rgba(248, 250, 248, 1) 100%);
  overflow: hidden;
}

.hero-names {
  font-size: 3.4rem;
  line-height: 1.15;
  color: var(--primary);
  margin: 16px 0;
}

.hero-names span {
  display: inline-block;
}

.hero-and {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--accent);
  margin: 0 8px;
}

.hero-tagline {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-date {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary-light);
  margin-top: 8px;
}

/* Photo Frame */
.photo-wrapper {
  margin: 28px 0;
  width: 220px;
  height: 280px;
  border-radius: 120px 120px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--surface);
  position: relative;
  background-color: var(--primary-soft);
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: radial-gradient(circle at 50% 40%, rgba(179, 139, 89, 0.15), rgba(45, 74, 62, 0.08));
  padding: 20px;
  text-align: center;
}

.photo-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  stroke: var(--accent);
}

.photo-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Countdown */
.countdown-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 32px;
}

.countdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 68px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(45, 74, 62, 0.25);
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary-light);
  box-shadow: none;
}
.btn-secondary:hover {
  background-color: var(--primary-soft);
  color: var(--primary);
}

/* Invitation section */
.section {
  padding: 70px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.personal-box {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.personal-appeal {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.personal-text {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary-soft) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 36px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: 12px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.timeline-time {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.location-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.location-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  align-self: flex-start;
}

.location-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.location-address {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-time {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

.location-actions .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* Palette / Dress code */
.palette-list {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
}

.palette-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 2px solid #ffffff;
}

.palette-name {
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
}

/* Details / Gifts */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.detail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.detail-title {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* RSVP Form */
.rsvp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.radio-group, .checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.choice-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.choice-card:hover {
  border-color: var(--primary-light);
}

.choice-card input {
  margin-right: 12px;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.choice-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: none;
}
.alert-success {
  background: #e7f5ee;
  color: #1e5e3a;
  border: 1px solid #c2e6d2;
}
.alert-error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

footer .footer-names {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .hero-names {
    font-size: 4.4rem;
  }
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }
  .radio-group {
    grid-template-columns: 1fr 1fr;
  }
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
}
