@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&family=Parisienne&display=swap');

:root {
  --blue: #2018b8;
  --blue-deep: #141078;
  --violet: #7e2ab2;
  --violet-soft: #e7d3f2;
  --green: #78984a;
  --green-soft: #dfe8cf;
  --yellow: #f2cb45;
  --paper: #fffdf8;
  --cream: #f8f1e7;
  --ink: #27203f;
  --line: rgba(126, 42, 178, .38);
  --shadow: 0 24px 70px rgba(43, 29, 82, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(231, 211, 242, .55), transparent 25%),
    radial-gradient(circle at 90% 12%, rgba(242, 203, 69, .18), transparent 26%),
    radial-gradient(circle at 20% 88%, rgba(120, 152, 74, .14), transparent 22%),
    linear-gradient(180deg, #fff, var(--cream));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(126, 42, 178, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 42, 178, .025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.site-shell {
  width: min(1500px, calc(100% - 24px));
  margin: 10px auto 34px;
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(71, 45, 95, .12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.nav {
  min-height: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 4vw, 76px);
  padding: 18px 28px 10px;
  background: rgba(255, 253, 248, .88);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.nav::after {
  content: "✿";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--violet);
  font-size: 24px;
  text-shadow: -70px 2px 0 var(--line), 70px 2px 0 var(--line);
}

.nav a {
  color: var(--blue-deep);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: Cormorant Garamond, Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  padding: 7px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav a.active, .nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.framed {
  position: relative;
  border-top: 1px solid rgba(126, 42, 178, .15);
  border-bottom: 1px solid rgba(126, 42, 178, .15);
}

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, .9fr);
  align-items: center;
  gap: 46px;
  padding: clamp(44px, 6vw, 88px) clamp(26px, 7vw, 120px) 70px;
}

.corner-line {
  position: absolute;
  width: 146px;
  height: 146px;
  pointer-events: none;
  opacity: .95;
}

.corner-line::before,
.corner-line::after {
  content: "";
  position: absolute;
  border-color: var(--violet);
  border-style: solid;
}

.corner-line::before {
  inset: 0;
  border-width: 3px 0 0 3px;
  border-radius: 12px 0 0 0;
}

.corner-line::after {
  width: 118px;
  height: 118px;
  background:
    radial-gradient(circle at 10px 16px, transparent 0 4px, var(--violet) 4px 6px, transparent 6px),
    radial-gradient(circle at 34px 42px, transparent 0 4px, var(--violet) 4px 6px, transparent 6px),
    radial-gradient(circle at 62px 63px, transparent 0 4px, var(--violet) 4px 6px, transparent 6px);
  border-width: 0;
  transform: rotate(-18deg);
}

.top-left { top: 22px; left: 28px; }
.top-right { top: 22px; right: 28px; transform: scaleX(-1); }
.bottom-left { bottom: 22px; left: 28px; transform: scaleY(-1); }
.bottom-right { bottom: 22px; right: 28px; transform: scale(-1); }

.hero-copy {
  text-align: center;
}

.overline {
  margin: 0 0 8px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .22em;
}

h1 {
  margin: 0;
  color: var(--blue);
  font-family: Parisienne, "Brush Script MT", cursive;
  font-size: clamp(76px, 11vw, 158px);
  line-height: .86;
  font-weight: 400;
  letter-spacing: -.03em;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}

.date-line {
  margin: 26px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--green);
  font-family: Cormorant Garamond, Georgia, serif;
}

.date-line strong {
  font-size: clamp(34px, 4vw, 55px);
  font-weight: 600;
  letter-spacing: .08em;
}

.date-line span {
  width: 72px;
  height: 16px;
  background:
    radial-gradient(ellipse at left, var(--green) 0 4px, transparent 4px),
    linear-gradient(var(--green), var(--green));
  background-size: 18px 14px, 100% 1px;
  background-position: 0 0, center;
  background-repeat: repeat-x, no-repeat;
  opacity: .7;
}

.location {
  margin: 6px 0 14px;
  color: var(--blue);
  font-family: Cormorant Garamond, Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(16px, 1.4vw, 21px);
}

.promise, .handwritten {
  color: var(--blue);
  font-family: Parisienne, cursive;
  font-size: clamp(24px, 2vw, 31px);
}

.primary-button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  padding: 15px 28px;
  color: white;
  background: linear-gradient(180deg, #2820cb, var(--blue));
  box-shadow: 0 12px 28px rgba(32, 24, 184, .22);
  font-family: Cormorant Garamond, Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.primary-button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(32, 24, 184, .30);
}

.primary-button em,
button em {
  font-family: Parisienne, cursive;
  font-size: 22px;
  font-style: normal;
}

.hero-visual {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(520px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 203, 69, .20), transparent 62%),
    radial-gradient(circle at 70% 25%, rgba(231, 211, 242, .55), transparent 30%);
  filter: blur(2px);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 28px rgba(43, 29, 82, .15));
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(71, 45, 95, .12);
  border-bottom: 1px solid rgba(71, 45, 95, .12);
  background: rgba(255, 253, 248, .92);
}

.mini-card {
  position: relative;
  min-height: 245px;
  padding: 28px clamp(18px, 3vw, 42px);
  text-align: center;
  overflow: hidden;
  border-right: 1px solid rgba(71, 45, 95, .12);
}

.mini-card:last-child { border-right: 0; }

.mini-card::after {
  content: "✿";
  position: absolute;
  right: 18px;
  bottom: -2px;
  color: var(--violet-soft);
  font-size: 76px;
  transform: rotate(-20deg);
}

.mini-card h2,
.rsvp-section h2,
.venue-text h2 {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: Parisienne, cursive;
  font-size: clamp(36px, 3vw, 52px);
  font-weight: 400;
}

.schedule {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.schedule p {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  margin: 9px 0;
  font-size: 15px;
}

.schedule time {
  color: var(--blue);
  font-weight: 800;
}

.tiny-icon, .sprig {
  color: var(--green);
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.mini-card p {
  line-height: 1.55;
  margin: 0 auto 18px;
  max-width: 250px;
}

.mini-card a,
.text-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.venue-section {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  align-items: stretch;
  background: #17100d;
  color: #fff7ef;
}

.venue-photo {
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.venue-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.16), transparent 52%, rgba(0,0,0,.2)),
    linear-gradient(0deg, rgba(0,0,0,.30), transparent 42%);
}

.venue-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.03);
}

.venue-text {
  padding: clamp(42px, 6vw, 82px);
  display: flex;
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 20%, rgba(242,203,69,.18), transparent 26%),
    linear-gradient(135deg, rgba(126,42,178,.24), transparent 42%);
}

.venue-text h2 {
  color: #fff;
  font-size: clamp(44px, 5vw, 78px);
  line-height: .92;
}

.venue-text p:not(.overline) {
  max-width: 440px;
  line-height: 1.7;
  font-size: 17px;
}

.venue-text .text-link {
  color: #fff;
  font-size: 16px;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  min-height: 330px;
  background: rgba(255, 253, 248, .92);
}

.photo {
  position: relative;
  margin: 0;
  min-height: 330px;
  overflow: hidden;
  border-right: 2px solid rgba(255,255,255,.88);
  background: var(--paper);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.photo:hover img {
  transform: scale(1.04);
}

.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.48), rgba(0,0,0,.02) 58%);
}

.photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: white;
  font-family: Cormorant Garamond, Georgia, serif;
  font-weight: 700;
  font-size: 25px;
  text-shadow: 0 2px 12px rgba(0,0,0,.42);
}

.floral-card {
  display: grid;
  place-items: center;
}

.floral-card img {
  width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(43, 29, 82, .16));
}

.floral-card::after {
  background: linear-gradient(to top, rgba(32,24,184,.22), transparent 52%);
}

.rsvp-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 6vw, 76px);
  padding: clamp(44px, 6vw, 78px) clamp(26px, 8vw, 150px);
  background:
    radial-gradient(circle at 10% 15%, rgba(231, 211, 242, .32), transparent 26%),
    radial-gradient(circle at 94% 72%, rgba(242, 203, 69, .18), transparent 20%),
    rgba(255, 253, 248, .95);
}

.rsvp-intro {
  align-self: center;
}

.rsvp-intro p {
  max-width: 500px;
  line-height: 1.68;
}

.rsvp-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(126, 42, 178, .18);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 16px 38px rgba(43, 29, 82, .07);
}

.rsvp-form label {
  display: grid;
  gap: 8px;
}

.rsvp-form label span {
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: Cormorant Garamond, Georgia, serif;
  font-weight: 800;
  font-size: 13px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(74, 49, 104, .18);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(32, 24, 184, .10);
}

textarea { resize: vertical; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rsvp-form button {
  width: min(340px, 100%);
  justify-self: center;
  margin-top: 6px;
}

#form-status {
  margin: 0;
  min-height: 24px;
  color: var(--blue);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1050px) {
  .hero,
  .rsvp-section,
  .venue-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    width: min(560px, 100%);
    margin: -30px auto 0;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .venue-text p:not(.overline) {
    margin-left: auto;
    margin-right: auto;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .wide-photo {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: calc(100% - 12px);
    margin-top: 6px;
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 26px;
  }

  .hero {
    padding: 54px 22px 34px;
    min-height: unset;
  }

  h1 {
    font-size: 82px;
  }

  .date-line span {
    width: 34px;
  }

  .hero-visual {
    min-height: unset;
  }

  .quick-grid,
  .photo-strip,
  .rsvp-section,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .wide-photo {
    grid-column: auto;
  }

  .mini-card {
    border-right: 0;
    border-bottom: 1px solid rgba(71, 45, 95, .12);
  }

  .venue-photo {
    min-height: 340px;
  }

  .corner-line {
    width: 94px;
    height: 94px;
  }
}
