@font-face {
  font-family: 'Lighthaus';
  src: url('./fonts/Lighthaus.woff2') format('woff2'),
       url('./fonts/Lighthaus.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lighthaus', sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #30412f;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* iOS safe area for notched devices */
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lighthaus', serif;
  font-size: 32px;
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin: 0;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile-first: full width on small screens */
.container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background-color: #ffffff;
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  min-height: 100vh;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.abs-img {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.section-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.btn {
  background-color: #30412f;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 14px 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  /* Touch-friendly tap target (min 44px) */
  min-height: 44px;
  line-height: 20px;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

/* Sections */
#hero {
  position: relative;
  padding-top: 100px;
  padding-bottom: 60px;
}
.flower-1 {
  width: 186px;
  top: 100px;
  right: 0;
  left: 0px;
  object-fit: contain;
  object-position: right center;
}
.flower-2 {
  width: 261px;
  top: 0px;
  right: 0;
  object-fit: contain;
  object-position: right center;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}
.names-wrapper {
  position: relative;
  margin-bottom: 15px;
}
.ampersand {
  position: absolute;
  width: 166px;
  top: -20px;
  left: 20%;
  transform: translateX(-50%);
  opacity: 0.28;
  mix-blend-mode: multiply;
  z-index: -1;
}
.names {
  font-size: 32px;
  line-height: 1.2;
  color: #30412f;
  text-align: center;
}
.date {
  font-family: 'Lighthaus', sans-serif;
  font-size: 20px;
  color: #30412f;
  letter-spacing: 0.1em;
}

#invitation {
  padding: 40px 0;
}
.invite-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #30412f;
  max-width: min(280px, 100%);
  margin: 0 auto;
  text-align: center;
}

#venue {
  padding-bottom: 60px;
}
.venue-images {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0 20px;
  flex-wrap: wrap;
}
.venue-img {
  width: 166px;
  height: 197px;
  object-fit: cover;
  flex: 1 1 140px;
  min-width: 0;
  max-width: 100%;
}
.venue-info {
  gap: 15px;
}
.map-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.map-icon {
  width: 44px;
  height: 44px;
}
.map-text {
  font-size: 14px;
  text-transform: uppercase;
  border-bottom: 1px solid #30412f;
  padding-bottom: 2px;
}
#venue h2 {
  font-size: 32px;
  line-height: 1.2;
}
.address {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  margin-bottom: 10px;
}

#program {
  position: relative;
  padding: 40px 0;
}
.flower-left {
  width: 98px;
  height: auto;
  top: 70px;
  left: 0;
  object-fit: contain;
  object-position: left center;
}
.flower-right {
  width: 98px;
  height: auto;
  top: 73px;
  right: 0;
  left: auto;
  object-fit: contain;
  object-position: right center;
}
#program h2 {
  font-size: 32px;
  margin-bottom: 40px;
}
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 30px;
  width: 100%;
  max-width: 320px;
}
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-item.center {
  grid-column: span 2;
}
.time {
  font-family: 'Lighthaus', sans-serif;
  font-size: 20px;
  margin-bottom: 5px;
}
.event {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.3;
}
.address-block {
  text-align: start;
  padding: 0 20px;
}

#dresscode {
  padding: 40px 0;
}
#dresscode h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.dress-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 300px;
}
.dress-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 25px;
  max-width: 300px;
}
.palette {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.palette img {
  width: 39px;
  height: 39px;
}

#gifts {
  position: relative;
  padding: 60px 0;
}
.flower-gift-left {
  width: 126px;
  top: 80px;
  left: 0;
  object-fit: contain;
  object-position: left center;
}
.flower-gift-right {
  width: 126px;
  top: 90px;
  right: 0;
  object-fit: contain;
  object-position: right center;
}
#gifts h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.gift-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  max-width: 280px;
}

#rsvp {
  padding-top: 40px;
  padding-bottom: 0;
  position: relative;
}
#rsvp h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.rsvp-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  margin-bottom: 20px;
}
.rsvp-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #666;
  margin-top: 30px;
  margin-bottom: 15px;
  max-width: 280px;
}
.rsvp-farewell {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 40px;
}
.bottom-composition {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.merged-image-container {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 360px;
  height: 443px;
}
.child-img {
  position: absolute;
  left: 75px;
  bottom: 0;
  width: 245px;
  z-index: 2;
}
.flower-bottom-left {
  width: 189px;
  bottom: -20px;
  left: 0;
  z-index: 3;
  object-fit: contain;
  object-position: left bottom;
}
.flower-bottom-right {
  width: 189px;
  bottom: -20px;
  right: 0;
  z-index: 3;
  object-fit: contain;
  object-position: right bottom;
}

/* Mobile / iOS / Android */
/* @media (max-width: 480px) {
  #hero { padding-top: max(60px, env(safe-area-inset-top)); padding-bottom: 40px; }
  .flower-1 { width: 109px; }
  .flower-2 { width: 94px; }
  .ampersand { width: 120px; }
  .names { font-size: 32px; }
  .venue-img { width: calc(50% - 5px); height: auto; aspect-ratio: 166/197; }
  .flower-left { width: 69px; top: 50px; }
  .flower-right { width: 69px; top: 300px; }
  .flower-gift-left { width: 84px; }
  .flower-gift-right { width: 84px; }
  .flower-bottom-left, .flower-bottom-right { width: 124px; }
  .merged-image-container { width: 300px; height: 368px; }
  .child-img { width: 245px; }
  .palette { flex-wrap: wrap; gap: 8px; }
  .palette img { width: 32px; height: 32px; }
  .section-content { padding: 0 16px; }
  .venue-images { padding: 0 16px; gap: 8px; }
} */

/* @media (max-width: 360px) {
  .venue-images { flex-direction: column; align-items: center; }
  .venue-img { width: 100%; max-width: 280px; }
  .timeline { max-width: 100%; }
} */