/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f7f5f1;
  --bg-alt: #ffffff;
  --text: #2b2b2b;
  --text-soft: #6b6b6b;
  --accent: #b08968;
  --accent-light: #ddb892;
  --line: #e0ddd7;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-width: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 560px; }

/* ===== Section Labels ===== */
.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #e8e2d8 0%, #d4c5b0 50%, #c9b89e 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(176,137,104,0.12) 0%, transparent 50%);
}

.hero-content { position: relative; z-index: 2; padding: 0 24px; }

.hero-pretitle {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.hero-names {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-names .amp {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  display: inline-block;
  margin: 0 0.1em;
}

.hero-date {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 28px;
}

.btn-outline {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 40px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-outline:hover { background: var(--text); color: var(--bg); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 50px;
  background: rgba(0,0,0,0.15);
  overflow: hidden;
}
.scroll-hint span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ===== Countdown ===== */
.countdown { padding: 80px 0; background: var(--bg-alt); }

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 8vw, 60px);
  margin-top: 24px;
}

.cd-unit { text-align: center; }
.cd-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}
.cd-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 10px;
}

/* ===== Story ===== */
.story { padding: 100px 0; background: var(--bg); }
.story-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.8;
  text-align: center;
  color: var(--text-soft);
  font-style: italic;
}

/* ===== Details ===== */
.details { padding: 100px 0; background: var(--bg-alt); }

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-card {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.detail-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.06); }

.detail-icon { font-size: 2.2rem; margin-bottom: 16px; }
.detail-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.detail-time {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.detail-venue {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}
.detail-addr { font-size: 0.85rem; color: var(--text-soft); margin-top: 4px; }

.map-link { text-align: center; margin-top: 40px; }
.map-link a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}
.map-link a:hover { opacity: 0.6; }

/* ===== Schedule ===== */
.schedule { padding: 100px 0; background: var(--bg); }

.timeline { position: relative; padding-left: 0; }

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 99px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-time {
  width: 76px;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.timeline-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-body h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.timeline-body p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* ===== RSVP ===== */
.rsvp { padding: 100px 0; background: var(--bg-alt); }

.rsvp-intro {
  text-align: center;
  color: var(--text-soft);
  margin-top: -28px;
  margin-bottom: 40px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { width: 100%; }

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 15px 16px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus { border-color: var(--accent); }

.field-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
}

.radio-option input { width: auto; accent-color: var(--accent); }

.btn-solid {
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  padding: 15px 34px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn-solid:hover { background: transparent; color: var(--text); }

.rsvp-success {
  text-align: center;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-top: 28px;
}

/* ===== Footer ===== */
.footer {
  padding: 72px 0;
  text-align: center;
  background: #26231f;
  color: #f7f5f1;
}

.footer-names {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.footer-date {
  margin-top: 8px;
  color: #cfc6bb;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-tag {
  margin-top: 22px;
  color: #9d958c;
  font-family: var(--serif);
  font-style: italic;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible,
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .section-heading { font-size: 2rem; margin-bottom: 36px; }
  .hero-names { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero-names .amp { display: block; margin: 6px 0; }

  .countdown-grid { gap: 22px; }
  .cd-num { font-size: 2.25rem; }

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

  .timeline-item { gap: 14px; }
  .timeline-time { width: 64px; }
  .timeline-item:not(:last-child)::after { left: 80px; }

  .story,
  .details,
  .schedule,
  .rsvp { padding: 76px 0; }
}
