:root {
  --paper: #fbfbf7;
  --ink: #101010;
  --line: rgba(16, 16, 16, 0.16);
  --muted: rgba(16, 16, 16, 0.62);
  --white: #ffffff;
  --purple: #6d28ff;
  --orange: #ff6a00;
  --green: #b6ff00;
  --pink: #ff4fb8;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  pointer-events: none;
}

.mark,
.language-switch {
  pointer-events: auto;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
  text-decoration: none;
  font-family: Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.lang-button {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lang-button.is-active {
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 780px;
  max-height: 1040px;
  height: 96vh;
  overflow: hidden;
  background: #72b5dd;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.01) 38%),
    linear-gradient(90deg, rgba(16, 16, 16, 0.12), transparent 34%, rgba(16, 16, 16, 0.1));
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero-label {
  position: absolute;
  left: 50%;
  top: clamp(88px, 12vh, 136px);
  z-index: 2;
  display: grid;
  gap: 18px;
  width: min(1040px, calc(100% - 44px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
  padding: clamp(18px, 2.8vw, 34px);
  text-align: center;
  text-wrap: balance;
}

.eyebrow,
.section-index,
.footer {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-label h1 {
  margin: 0;
  font-family: Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-cap {
  display: inline-block;
  font-family: "Great Vibes", cursive;
  font-size: 1.04em;
  font-style: normal;
  font-weight: 400;
  line-height: 0;
  transform: translateY(0.03em);
}

.hero-amp {
  display: inline-block;
  font-family: "Monsieur La Doulaise", cursive;
  font-size: 1.22em;
  font-style: normal;
  font-weight: 700;
  line-height: 0;
  transform: translateY(0.06em);
}

.hero-copy {
  display: grid;
  gap: 5px;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.72);
  font-family: Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.75vw, 1.74rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy span:first-child,
.hero-copy span:nth-child(2) {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(0.72rem, 0.85vw, 0.86rem);
  font-weight: 850;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(56px, 0.14fr) minmax(0, 0.95fr) minmax(430px, 0.74fr);
  gap: 34px;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-index {
  color: var(--purple);
  padding-top: 8px;
}

.section-index-accent {
  color: var(--orange);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple);
}

.intro h2,
.rsvp-heading h2 {
  margin: 0;
  max-width: 920px;
  font-family: Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  font-size: 3.35rem;
  font-weight: 400;
  line-height: 1;
}

.intro-copy {
  border-left: 8px solid var(--green);
  padding-left: 28px;
}

.fact-panel {
  align-self: start;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.fact-panel dl {
  margin: 0;
}

.fact-panel div {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.fact-panel div:last-child {
  border-bottom: 0;
}

.fact-panel dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.fact-panel dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 680;
}

.rsvp {
  align-items: start;
  padding-bottom: 92px;
}

.rsvp-heading p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
}

.rsvp-form {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 14px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 79, 184, 0.12), transparent 42%),
    var(--paper);
  box-shadow: 8px 8px 0 var(--green);
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span,
.attendance-field legend {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 14px 13px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 255, 0.16);
}

.attendance-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.segmented label {
  position: relative;
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
}

.segmented input:checked + span {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

.segmented input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(109, 40, 255, 0.2);
}

.guest-count {
  grid-column: 2;
  grid-row: 1;
}

.attendance-field,
.note-field,
.submit-button,
.form-status {
  grid-column: 1 / -1;
}

.submit-button {
  min-height: 54px;
  border: 1px solid var(--orange);
  border-radius: 0;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--purple);
  font-size: 0.92rem;
  font-weight: 760;
}

.footer {
  display: flex;
  justify-content: center;
  padding: 34px 22px 44px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero {
    min-height: 720px;
    height: 88vh;
  }

  .hero-label h1 {
    font-size: clamp(3.1rem, 9vw, 5.2rem);
  }

  .section-grid {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .fact-panel,
  .rsvp-form {
    grid-column: 2;
  }

  .intro h2,
  .rsvp-heading h2 {
    font-size: 2.55rem;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 12px;
  }

  .mark {
    width: 48px;
  }

  .hero {
    min-height: 720px;
    height: 94vh;
  }

  .hero-image {
    object-position: center bottom;
  }

  .hero-label {
    top: 74px;
    width: calc(100% - 24px);
    gap: 14px;
    padding: 18px 14px;
  }

  .hero-label h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
    line-height: 0.9;
  }

  .hero-copy {
    gap: 4px;
    padding-top: 12px;
    font-size: 1.1rem;
    line-height: 1.08;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 24px);
    padding: 56px 0;
  }

  .section-index,
  .fact-panel,
  .rsvp-form {
    grid-column: 1;
  }

  .intro-copy {
    border-left-width: 6px;
    padding-left: 18px;
  }

  .intro h2,
  .rsvp-heading h2 {
    font-size: 2.05rem;
  }

  .fact-panel div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
    box-shadow: 5px 5px 0 var(--green);
  }

  .guest-count {
    grid-column: 1;
    grid-row: auto;
  }
}
