:root {
  --purple: #d988fb;
  --magenta: #fe3bf1;
  --magenta-2: #ff3bf1;
  --red: #ff0000;
  --white: #ffffff;
  --input-pink: #feabf8;
  --navy: #3a3a8c;

  --f-display: 'Anton', sans-serif;
  --f-condensed: 'Oswald', sans-serif;
  --f-body: 'Mulish', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--purple);
  color: var(--navy);
  font-family: var(--f-body);
  overflow-x: hidden;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  container-type: inline-size;
}

[hidden] { display: none !important; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 10cqw 6cqw 4cqw;
  overflow: hidden;
  isolation: isolate;
}

.tile-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.55;
}

.tile {
  position: absolute;
  width: 58%;
  height: auto;
  object-fit: cover;
}
.tile--1 { top: -8%; left: -22%; }
.tile--2 { top: -8%; right: -22%; }
.tile--3 { top: 46%; left: -22%; }
.tile--4 { top: 46%; right: -22%; }

.glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 90%;
  z-index: -1;
  background: linear-gradient(to bottom, var(--magenta-2) 0%, transparent 85%);
  pointer-events: none;
}

.logotype {
  font-family: var(--f-display);
  color: var(--red);
  text-align: center;
  line-height: 0.85;
  margin: 0 0 0.1em;
  font-size: clamp(64px, 24cqw, 128px);
  letter-spacing: 0.01em;
}

.tagline {
  font-family: var(--f-display);
  color: var(--red);
  text-align: center;
  line-height: 1.08;
  margin: 0.3em 0;
  font-size: clamp(16px, 6.2cqw, 24px);
}

.tagline--pair { margin-bottom: 1em; }

.collage {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ---------- Form ---------- */

.rsvp-form {
  position: relative;
  padding: 8cqw 6cqw 14cqw;
  text-align: center;
}

.form-title {
  font-family: var(--f-display);
  color: var(--red);
  font-size: clamp(22px, 7.5cqw, 30px);
  margin: 0 0 1.1em;
}

.field {
  display: block;
  margin: 0 0 1em;
  text-align: center;
}

.field-label {
  display: block;
  font-family: var(--f-display);
  color: var(--white);
  font-size: clamp(13px, 3.6cqw, 16px);
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
}

.field input {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--input-pink);
  padding: 0.95em 1.3em;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--navy);
  outline-offset: 2px;
}

.field input::placeholder { color: rgba(58, 58, 140, 0.45); }

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.companions { margin: 0; }

.companion {
  margin: 1.6em 0 1.4em;
  padding-top: 1.4em;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.companion-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-bottom: 1em;
}

.companion-title {
  font-family: var(--f-display);
  color: var(--white);
  font-size: clamp(14px, 4cqw, 17px);
  letter-spacing: 0.03em;
}

.companion-remove {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}

.btn-add-companion {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0.4em auto 0;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: transparent;
  padding: 0.85em 1em;
  cursor: pointer;
  font-family: var(--f-display);
  color: var(--white);
  font-size: clamp(13px, 3.8cqw, 16px);
  letter-spacing: 0.02em;
}

.form-error {
  color: var(--red);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  margin: 0.5em 0 1em;
}

.btn-confirm {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 1.4em auto 0;
  border: none;
  border-radius: 999px;
  background: var(--red);
  padding: 1.1em 1em;
  cursor: pointer;
}

.btn-confirm:disabled { opacity: 0.6; cursor: wait; }

.btn-label {
  font-family: var(--f-display);
  color: var(--white);
  font-size: clamp(16px, 4.6cqw, 20px);
  letter-spacing: 0.02em;
}

/* ---------- Confirmed view ---------- */

#view-confirmed { padding-bottom: 10cqw; }

.logotype--title {
  padding: 14cqw 6cqw 2cqw;
  font-size: clamp(38px, 12.5cqw, 60px);
  color: var(--white);
}

.lead {
  font-family: var(--f-condensed);
  font-weight: 700;
  color: var(--red);
  text-align: center;
  font-size: clamp(16px, 4.6cqw, 21px);
  line-height: 1.3;
  margin: 0 8cqw 7cqw;
}

.event-strip {
  background: var(--red);
  padding: 1em 6cqw;
  margin-bottom: 0;
}

.event-strip p {
  margin: 0;
  font-family: var(--f-display);
  color: #ff85f6;
  text-align: center;
  font-size: clamp(13px, 3.6cqw, 17px);
  line-height: 1.5;
}

.band--magenta {
  background: var(--magenta);
  padding: 7cqw 7cqw 9cqw;
}

.caption {
  font-family: var(--f-condensed);
  font-style: italic;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  text-align: center;
  font-size: clamp(14px, 4.2cqw, 18px);
  margin: 0 0 1.2em;
}

.dress-code {
  display: block;
  width: min(90%, 320px);
  height: auto;
  margin: 0 auto 1.4em;
}

.body-copy {
  color: var(--navy);
  font-size: clamp(13.5px, 3.6cqw, 15px);
  line-height: 1.6;
  text-align: center;
}

.body-copy p { margin: 0 0 1.4em; }
.body-copy p:last-child { margin-bottom: 0; }

.body-copy .heavy { font-weight: 800; }
.body-copy .bold { font-weight: 700; }

.body-copy a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-skip-ink: none;
  word-break: break-word;
}

.section-title {
  font-family: var(--f-display);
  color: var(--white);
  text-align: center;
  font-size: clamp(26px, 9cqw, 42px);
  margin: 10cqw 6cqw 0.3em;
  line-height: 1.05;
}

.section-title--red { color: var(--red); margin-top: 0; }

#view-confirmed .band--magenta .section-title {
  margin-top: 0;
}

#view-confirmed > .caption:first-of-type { margin-top: 0; }
