/* Invite page only. Loaded after styles.css, so the dashboards keep the shared look.
   Colours follow Ali's save-the-date card: wine red on pale blue. */
:root {
  --wine: #5a0614;
  --wine-soft: #9e1b20;
  --sky: #e3effc;
  --line-soft: #d8c4c7;
  --text: #2e1a1d;
}

body { background: var(--sky); color: var(--text); }

.invitation,
.invitation input,
.invitation textarea,
.invitation button { font-family: "Instrument Sans", Arial, sans-serif; }

.invitation {
  width: min(720px, 100%);
  border-radius: 6px;
  box-shadow: none;
  border: 1px solid #c9d9ee;
  padding: clamp(16px, 3vw, 28px) clamp(18px, 5vw, 52px) clamp(32px, 6vw, 56px);
}
.invitation:before, .masthead { display: none; }

.save-the-date { display: block; width: 100%; height: auto; border-radius: 4px; }

.title-block { margin: 36px 0 26px; }
.invitation .kicker {
  font: 600 12px/1.4 "Instrument Sans", sans-serif;
  letter-spacing: .16em;
  color: var(--wine-soft);
  margin-bottom: 10px;
}
.invitation h1 {
  font-family: "Syne", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 8vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: none;
  color: var(--wine);
}
.invitation h1 em { color: var(--wine-soft); font-style: normal; font-weight: 600; }

.facts { grid-template-columns: 1fr 1fr; gap: 6px; border: 0; }
.facts > div,
.facts > div + div {
  background: var(--wine);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 16px 18px;
  min-width: 0;
}
.fact-label {
  font: 600 10px "Instrument Sans", sans-serif;
  letter-spacing: .16em;
  color: #f0c9ce;
}
.facts strong { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.45; }
.location-link { color: inherit; text-decoration-color: #f0c9ce; text-underline-offset: 3px; }

.details { margin: 30px 0 10px; max-width: 600px; color: var(--text); font-size: 16px; line-height: 1.62; }
.details p { margin: 0 0 14px; }

#rsvp-form {
  position: relative;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 2px solid var(--wine);
}
.form-heading {
  position: absolute;
  top: -13px;
  left: 0;
  margin: 0;
  padding: 0 12px 0 0;
  background: #fff;
  font: 800 20px/1 "Syne", sans-serif;
  letter-spacing: -.01em;
  color: var(--wine);
}

#rsvp-form label, #rsvp-form legend { color: var(--wine); font-weight: 600; }
#rsvp-form legend { font-size: 15px; line-height: 1.4; }
.email-note, .note-label small { color: #866b70; font-size: 12px; font-weight: 400; }
.note-label > span { color: inherit; font-weight: inherit; }
.note-label { margin-bottom: 22px; }

#rsvp-form input:not([type="radio"]),
#rsvp-form textarea {
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fff;
  padding: 11px 12px;
}
#rsvp-form input:focus, #rsvp-form textarea:focus {
  outline: 2px solid #9e1b2033;
  border-color: var(--wine-soft);
}

.choices { gap: 6px; flex-wrap: nowrap; }
.choices label {
  flex: 1 1 0;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 500;
  white-space: nowrap;
}
.choices label:hover { border-color: var(--wine-soft); }
.choices input { accent-color: var(--wine); margin: 0; }
#rsvp-form .choices label:has(input:checked) { background: var(--wine); border-color: var(--wine); color: #fff; }
.choices label:has(input:checked) input { accent-color: #fff; }

#rsvp-form button {
  border-radius: 4px;
  background: var(--wine);
  padding: 14px 26px;
  font-weight: 600;
  font-size: 15px;
}
#rsvp-form button:hover { background: var(--wine-soft); }

.thank-you h2 { font-family: "Syne", sans-serif; font-weight: 800; color: var(--wine); letter-spacing: -.02em; }

@media (max-width: 620px) {
  .page { padding: 12px 10px; }
  .invitation { min-height: 0; padding: 12px 14px 28px; }
  .facts > div, .facts > div + div { padding: 13px 13px; }
  .facts strong { font-size: 13px; }
  .two-col { grid-template-columns: 1fr; }
  .choices { gap: 5px; }
  .choices label { gap: 6px; padding: 9px 6px; font-size: 12.5px; }
  #rsvp-form button { width: 100%; }
}
