/* ── Cotton wedding palette ── */
:root {
  --cream:        #faf6f0;
  --linen:        #f0e8dc;
  --sand:         #e8ddd0;
  --warm-beige:   #d4c4b0;
  --cotton-brown: #a89080;
  --text-dark:    #5c4f44;
  --text-muted:   #8a7b6e;
  --accent:       #c9b8a8;
  --white-soft:   #fffcf8;
  --shadow:       rgba(92, 79, 68, 0.08);
  --shadow-hover: rgba(92, 79, 68, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Soft cotton-fiber background texture */
.cotton-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232, 221, 208, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(212, 196, 176, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(250, 246, 240, 0.8) 0%, transparent 70%),
    var(--cream);
}

.cotton-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4c4b0' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ── Hero ── */
.hero {
  font-family: 'Cormorant Infant', serif;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  max-width: 640px;
  margin: 0 auto;
}

.cotton-icon {
  color: var(--warm-beige);
  width: 72px;
  margin: 0 auto 1.5rem;
  opacity: 0.85;
}

.cotton-icon svg {
  width: 100%;
  height: auto;
}

.hero-subtitle {
  font-size: 1.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--text-dark);
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-date {
  font-size: 1.75rem;
  color: var(--cotton-brown);
  letter-spacing: 0.15em;ы
  font-weight: 500;
}

/* ── Schedule ── */
.schedule {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white-soft);
  border: 1px solid var(--sand);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 24px var(--shadow);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--warm-beige), transparent);
}

.event-number {
  font-family: 'Cormorant Infant', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
  padding-top: 0.15rem;
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-content h2 {
  font-family: 'Cormorant Infant', serif;
  font-weight: 600;
  font-size: 1.65rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.event-time,
.event-place {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.event-time strong {
  font-weight: 600;
  color: var(--cotton-brown);
  font-size: 1.05rem;
}

.address {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.event-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.5rem 0 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--sand);
}

/* ── Maps ── */
.map-container {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sand);
  aspect-ratio: 16 / 9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Timeline connector ── */
.timeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  color: var(--warm-beige);
}

.connector-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--sand);
}

.connector-cotton {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ── Allergy button ── */
.allergy-section {
  max-width: 680px;
  margin: 0.5rem auto 0;
  padding: 0.5rem 1.25rem;
  text-align: center;
}

.allergy-text {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.allergy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--linen);
  color: var(--text-dark);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  border: 1px solid var(--warm-beige);
  border-radius: 50px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
  cursor: pointer;
}

.allergy-btn:hover {
  background: var(--sand);
  box-shadow: 0 6px 20px var(--shadow-hover);
  transform: translateY(-2px);
}

.allergy-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1rem;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
}

.footer-cotton {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .event-card {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem 1.25rem;
  }

  .event-number {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1.25rem 2rem;
  }
}
