:root {
  --bg: #fff7df;
  --paper: #ffffff;
  --text: #111111;
  --muted: #5f5548;
  --yellow: #e7a928;
  --yellow-soft: #ffe6a3;
  --blue: #185b78;
  --blue-dark: #0c3447;
  --red: #d84b2a;
  --shadow: 0 24px 70px rgba(21, 21, 21, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/invitation.jpeg');
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 214, 83, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(7, 24, 32, 0.42), rgba(7, 24, 32, 0.60));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 32px));
  padding: 44px 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 800;
}

.eyebrow {
  color: var(--yellow-soft);
}

.hero h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(54px, 10vw, 116px);
  line-height: 0.95;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero__subtitle {
  margin: 24px auto 0;
  font-size: clamp(19px, 3vw, 31px);
  font-weight: 600;
  max-width: 760px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: #ffffff;
  color: var(--blue-dark);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.button--ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.section {
  padding: 88px 0;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
  text-align: center;
}

.section-kicker {
  color: var(--red);
}

h2 {
  margin: 0 0 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
}

p {
  font-size: 18px;
}

.intro {
  background: linear-gradient(180deg, #fff7df 0%, #fff0c5 100%);
}

.story {
  background: var(--paper);
}

.grid-two {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.story__text p:first-child {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
}

.photo-section {
  padding: 60px 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(231, 169, 40, 0.26), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(24, 91, 120, 0.18), transparent 32%),
    var(--bg);
}

.invitation-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  width: min(100%, 980px);
}

.details {
  background: var(--blue-dark);
  color: #ffffff;
}

.details .section-kicker {
  color: var(--yellow-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.card {
  min-height: 250px;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.card__label {
  display: inline-block;
  margin-bottom: 26px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 1.08;
}

.card p {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  color: var(--yellow-soft);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.form-section {
  background: linear-gradient(180deg, #fff7df 0%, #ffffff 100%);
}

.form-frame {
  margin: 34px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.form-frame iframe {
  width: 100%;
  height: 920px;
  border: 0;
  display: block;
}

.fallback {
  font-size: 15px;
  color: var(--muted);
}

.fallback a {
  color: var(--blue);
  font-weight: 800;
}

.footer {
  padding: 28px 0;
  background: #111111;
  color: #ffffff;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.footer p {
  margin: 0;
  font-size: 15px;
}

.footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 850px) {
  .hero {
    min-height: 760px;
  }

  .hero__bg {
    background-position: center top;
  }

  .section {
    padding: 64px 0;
  }

  .grid-two,
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .form-frame iframe {
    height: 980px;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 700px;
  }

  .hero__content {
    padding-top: 140px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .button {
    width: 100%;
  }

  p {
    font-size: 16px;
  }

  .footer .container {
    flex-direction: column;
  }
}
