:root {
  color-scheme: light;
  --paper: #f4dfc9;
  --ink: #050505;
  background: var(--paper);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button {
  font: inherit;
}

.invitation {
  width: min(100%, 864px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) clamp(24px, 8vw, 88px) 56px;
  background: var(--paper);
  text-align: center;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 900;
}

h1 {
  font-size: clamp(54px, 10.4vw, 92px);
  line-height: 0.96;
}

h1 span {
  display: inline-block;
  padding: 0 0.16em;
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.tagline,
.rsvp p,
.detail-row p {
  font-weight: 700;
  line-height: 1.52;
}

.tagline {
  margin-top: clamp(74px, 10vw, 102px);
  font-size: clamp(18px, 3.8vw, 31px);
}

.toast-video {
  display: block;
  width: 100vw;
  max-width: none;
  height: auto;
  margin-top: clamp(58px, 8vw, 76px);
  margin-right: 0;
  margin-bottom: clamp(80px, 11vw, 112px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.detail-icon,
.detail-icon * {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rsvp,
.details {
  border-top: 1.5px solid var(--ink);
}

.rsvp {
  padding: 38px 0 28px;
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
}

.rsvp h2,
.details h2 {
  font-size: clamp(36px, 6.6vw, 47px);
  line-height: 1;
}

.rsvp-intro p {
  margin-top: 11px;
  font-size: clamp(10px, 2.8vw, 21px);
  white-space: nowrap;
}

.rsvp-toggle {
  display: inline-grid;
  place-items: center;
  width: min(100%, 336px);
  min-height: 90px;
  margin-top: 31px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(20px, 4.2vw, 32px);
  font-weight: 500;
  cursor: default;
}

.rsvp-toggle,
.rsvp-form button {
  appearance: none;
}

.rsvp-slider {
  position: relative;
  min-height: 204px;
}

.rsvp-slide {
  width: 100%;
  transition: transform 420ms ease, opacity 420ms ease;
}

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

.rsvp-panel {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 490px);
  margin: 0;
  text-align: left;
  opacity: 0;
  transform: translateX(-150%);
  pointer-events: none;
}

.rsvp.is-entering .rsvp-intro {
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.rsvp.is-entering .rsvp-panel {
  opacity: 1;
  transform: translateX(-50%);
  pointer-events: auto;
}

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

.rsvp-form + .rsvp-form,
.rsvp-form[hidden] {
  display: none;
}

.rsvp-form label,
.rsvp-match,
.rsvp-message {
  font-size: clamp(15px, 3vw, 18px);
  font-weight: 700;
  line-height: 1.35;
}

.rsvp-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.rsvp-form input,
.rsvp-form select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 0 12px;
}

.rsvp-form button {
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0 14px;
}

.rsvp-actions {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 10px;
}

.rsvp-message {
  min-height: 1.4em;
  margin-top: 16px;
  text-align: center;
}

.rsvp-message:empty {
  display: none;
}

.rsvp-message[data-tone="error"] {
  text-align: left;
}

.rsvp-message[data-tone="success"] {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(24px, 5vw, 34px);
  text-align: center;
}

button:disabled,
input:disabled,
select:disabled {
  opacity: 0.62;
}

.details {
  padding: 48px 0 50px;
  border-bottom: 1.5px solid var(--ink);
}

.details h2 {
  margin-bottom: 42px;
}

.detail-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  width: min(100%, 490px);
  margin: 0 auto;
  text-align: left;
}

.detail-row + .detail-row {
  margin-top: 42px;
}

.detail-icon {
  width: 64px;
  height: 64px;
  justify-self: center;
  stroke-width: 3.5;
}

.detail-row h3 {
  margin-bottom: 7px;
  font-size: clamp(18px, 3.4vw, 22px);
  line-height: 1;
}

.detail-row p {
  font-size: clamp(16px, 3.1vw, 21px);
}

@media (max-width: 430px) {
  .invitation {
    padding-top: 56px;
  }

  h1 {
    font-size: 48px;
  }

  .tagline {
    margin-top: 58px;
  }

  .toast-video {
    margin-top: 48px;
    margin-bottom: 68px;
  }

  .detail-row {
    grid-template-columns: 64px 1fr;
    gap: 18px;
  }

  .rsvp-toggle {
    min-height: 72px;
  }

  .rsvp-inline,
  .rsvp-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-slide {
    transition: none;
  }
}
