/* Mobile-adapted version preserving desktop look */
:root {
  --background: #f5efe6;
  --foreground: #2a1f17;
  --brand: #c2410c;
  --brand-foreground: #fff7ec;
  --orange-700: #c2410c;
  --amber-50: #fffbeb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { line-height: 1.5; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.page { min-height: 100vh; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 16px 0;
}

.topbar {
  display: flex;	
  flex-direction: row;
  justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(42, 31, 23, 0.8);
}

.hero {
  position: relative;
  margin-top: 8px;
  color: var(--orange-700);
}

.hero-inner {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

.hero-img {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: min(100%, 560px);
  object-fit: cover;
}

.hero-title {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 1000;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 0.88;
  letter-spacing: -0.03em;
  font-size: clamp(42px, 12vw, 80px);
  margin: 0;
  padding-inline: 8px;
}

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

.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 44px; }
.mt-12 { margin-top: 48px; }
.mt-14 { margin-top: 56px; }

.full {
  width: 100%;
  object-fit: cover;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.items-start { align-items: start; }
.items-end { align-items: end; }

.h2,
.h3 {
  font-size: clamp(28px, 7vw, 32px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.08;
  margin: 0;
}

.rsvp {
  font-size: clamp(17px, 4.5vw, 20px);
  overflow-wrap: anywhere;
}

.rsvp-lead {
  color: rgba(42, 31, 23, 0.8);
  font-weight: 700;
  margin: 0;
}

.rsvp-block { margin-top: 20px; }
.rsvp-block + .rsvp-block { margin-top: 24px; }

.rsvp-role {
  color: var(--brand);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(20px, 5.5vw, 24px);
  margin: 0;
}

.rsvp-line { margin: 4px 0 0; }
.brand { color: var(--brand); }

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 9999px;
  background: var(--brand);
  color: var(--brand-foreground);
  transition: transform 0.2s ease;
}

.social-btn:hover { transform: scale(1.06); text-decoration: none; }
.social-btn svg { width: 20px; height: 20px; }

.info {
  margin: 24px 0 0;
  font-size: clamp(17px, 4.5vw, 18px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info dt { font-weight: 700; margin: 0; }
.info dd { margin: 0; }

.offset-md { margin-top: 0; }

.closing-text {
  font-size: clamp(28px, 7.5vw, 32px);
  order: 2;
}

.closing-img {
  position: relative;
  order: 1;
  padding-top: 54px;
}

.kiss {
  position: absolute;
  top: -8px;
  left: 8px;
  width: clamp(120px, 34vw, 200px);
  z-index: 10;
  transform: rotate(-16deg);
}

.footer {
  margin-top: 56px;
  background: var(--brand);
  color: var(--brand-foreground);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  font-size: 16px;
  background: var(--orange-700);
}

.footer-inner p { margin: 0; color: var(--amber-50); }
.footer-right { display: flex; flex-direction: column; gap: 4px; }

@media (min-width: 640px) {
  .container { padding: 24px 32px 0; }

  .topbar {

  }

  .hero {
    margin-top: -120px;
  }

  .hero-img {
    width: 55%;
  }

  .hero-title {
    font-size: 100px;
    padding-inline: 0;
  }

  .grid-2 { grid-template-columns: 1fr 1fr; gap: 32px; }
  .offset-md { margin-top: 64px; }
  .closing-text { order: 1; }
  .closing-img { order: 2; padding-top: 0; }
  .kiss { top: -80px; left: -100px; width: 200px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 24px 32px;
  }

  .footer-right { text-align: right; }
}

@media (min-width: 1024px) {
  .hero { margin-top: -200px; }
  .kiss { left: -100px; width: 256px; }
}
