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

:root {
  --primary: #c9a96e;
  --primary-light: #e8d5b0;
  --primary-dark: #8b6f3a;
  --bg: #faf8f5;
  --bg-alt: #f3efe8;
  --text: #3a3a3a;
  --text-light: #7a7a7a;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Hero — compact on mobile */
.hero {
  position: relative;
  min-height: 40vh;
  min-height: 40svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5e6d3 0%, #e8d5b0 30%, #d4c4a8 60%, #c9a96e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(201,169,110,0.2) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  animation: fadeInUp 1.2s ease-out;
}

.hero-date {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.95rem;
  letter-spacing: 0.4em;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.hero-names {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.hero-names .amp {
  display: inline-block;
  margin: 0 0.3em;
  font-weight: 400;
  color: var(--primary-dark);
  font-size: 1.6rem;
  vertical-align: middle;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 300;
}

.scroll-hint {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  animation: bounce 2s ease-in-out infinite;
}

/* Sections */
.section {
  padding: 2.5rem 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.section.alt-bg {
  background: var(--bg-alt);
  max-width: 100%;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.section.alt-bg > * {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.8rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--primary-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.2rem;
}

.timeline-marker {
  position: absolute;
  left: -1.55rem;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-marker.star {
  width: auto;
  height: auto;
  background: none;
  border: none;
  box-shadow: none;
  font-size: 0.9rem;
  left: -1.7rem;
  top: 0.9rem;
}

.timeline-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary-light);
}

.timeline-item.highlight .timeline-card {
  border-left-color: var(--primary);
  background: linear-gradient(135deg, var(--white) 0%, #fdf8f0 100%);
}

.timeline-time {
  display: inline-block;
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  color: #d4572a;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: #fff5f0;
  padding: 0.35rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.08em;
  border: 1.5px solid #f0c4b0;
}

.timeline-label {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-detail {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
}

.timeline-detail ul {
  margin: 0.4rem 0;
  padding-left: 1.1rem;
}

.timeline-detail li {
  margin-bottom: 0.25rem;
}

/* Map link — bigger touch target */
.map-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--bg-alt);
  border-radius: 8px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  min-height: 44px;
  transition: background 0.2s;
}

.map-link:active {
  background: var(--primary-light);
}

/* Room group labels */
.room-group-label {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  padding: 0.6rem 0 0.2rem;
  border-bottom: 1px solid var(--primary-light);
  margin-top: 0.5rem;
}

.room-group-label:first-child {
  margin-top: 0;
}

/* Room Grid */
.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.room-card {
  background: var(--white);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}

.room-guests {
  font-weight: 500;
  font-size: 0.9rem;
}

.badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
}

.highlight-tip {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.badge-inline {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #fff3e0;
  color: #e65100;
  font-weight: 500;
  margin-left: 0.3rem;
  vertical-align: middle;
}

.badge.late {
  background: #fff3e0;
  color: #e65100;
}

.badge.normal {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Tips */
.tips-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.tip {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.tip:last-child {
  margin-bottom: 0;
}

.tip-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.tip p {
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Contact rows — touch friendly */
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid #f0ece5;
  min-height: 48px;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-phone, .phone-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 44px;
  transition: background 0.2s;
  gap: 0.3rem;
}

.contact-phone:active, .phone-btn:active {
  background: var(--primary-dark);
}

.phone-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.8rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2.5rem 1.2rem 3rem;
  padding-bottom: calc(3rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.footer-heart {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.footer p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-names {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Scroll reveal — start hidden, JS adds .visible */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet+ */
@media (min-width: 500px) {
  .room-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-names {
    font-size: 3rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .timeline-card {
    padding: 1.2rem 1.4rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
