/* 27-cohort-1 RSVP page. Visual language lifted from 27-cohort v1 (fresco/red),
   re-laid-out responsively so the form is usable on phones. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #fbf7f0; }
img { display: block; }

:root {
  --red: #de3914;
  --cream: #fbf7f0;
  --ink: #1e1e1e;
  --wine: #4c0000;
  --wine-card: #720202;
  --tan: #bc8f68;
}

/* ================================================================= hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px 96px;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero-inner {
  position: relative; width: 100%; max-width: 1098px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-mark { width: 71px; height: auto; }
.hero-eyebrow {
  margin-top: 56px;
  font-family: 'Alata', sans-serif; font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.5; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--red);
}
.hero-headline { margin-top: 28px; width: min(100%, 1098px); height: auto; }
.hero-lede {
  margin-top: 48px; max-width: 504px;
  font-family: 'Sora', sans-serif; font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5; letter-spacing: -0.011em; color: var(--red);
}
.hero-lede p + p { margin-top: 14px; }
.hero-convened {
  margin-top: 72px;
  font-family: 'Sora', sans-serif; font-size: 13.4px; line-height: 1.5;
  letter-spacing: -0.019em; color: var(--red);
}
.hero-lockup { margin-top: 10px; width: 170px; height: auto; }
.hero-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: 'Sora', sans-serif; font-size: 22px; color: var(--red);
  text-decoration: none;
}

/* ================================================================= rsvp */
.rsvp { position: relative; overflow: hidden; background: var(--wine); }
.rsvp-texture {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; mix-blend-mode: multiply; opacity: .9;
}
.rsvp-watermark {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  opacity: .5; pointer-events: none;
}
.rsvp-watermark img {
  width: 180%; max-width: none; transform: rotate(-90deg); flex: none;
}
.rsvp-inner {
  position: relative; max-width: 620px; margin: 0 auto;
  padding: 96px 24px 110px;
}
.rsvp-heading {
  font-family: 'Alata', sans-serif; font-weight: 400;
  font-size: clamp(32px, 5vw, 45px); line-height: 1.31;
  letter-spacing: -0.011em; text-transform: uppercase; color: var(--cream);
}
.rsvp-sub {
  margin-top: 18px; max-width: 460px;
  font-family: 'Sora', sans-serif; font-size: 15px; line-height: 1.5;
  letter-spacing: -0.011em; color: var(--cream);
}

#rsvp-form { margin-top: 48px; }
.field-row { display: flex; gap: 18px; }
.field-row .field { flex: 1; }
.field { margin-bottom: 26px; }
.field label, .prefs legend {
  display: block;
  font-family: 'Alata', sans-serif; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cream); margin-bottom: 9px;
}
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; padding: 13px 14px;
  background: rgba(251, 247, 240, .04);
  border: 1px solid rgba(251, 247, 240, .35); border-radius: 0;
  font-family: 'Sora', sans-serif; font-size: 16px; letter-spacing: -0.011em;
  color: var(--cream); outline: none;
  transition: border-color .15s;
}
.field input:focus { border-color: var(--red); }
.field input.invalid { border-color: var(--red); background: rgba(222, 57, 20, .12); }

.prefs { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; padding: 11px 20px;
  border: 1px solid var(--red);
  font-family: 'Sora', sans-serif; font-size: 14px; letter-spacing: -0.011em;
  color: var(--cream);
  transition: background .15s, color .15s;
}
.chip input:checked + span { background: var(--red); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }

.form-error {
  margin: -6px 0 20px;
  font-family: 'Sora', sans-serif; font-size: 13.5px; line-height: 1.5;
  color: #ffb4a1;
}

.rsvp-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 25px; background: var(--red); border: 0; cursor: pointer;
  transition: filter .15s;
}
.rsvp-button:hover { filter: brightness(1.08); }
.rsvp-button:disabled { filter: grayscale(.4) brightness(.8); cursor: default; }
.rsvp-button img { width: 42.6px; height: 15.6px; transform: scaleX(-1); }
.rsvp-button span {
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px;
  line-height: 1.05; color: #fff;
}

.rsvp-done { margin-top: 48px; }
.rsvp-done h3 {
  font-family: 'Alata', sans-serif; font-weight: 400; font-size: 28px;
  line-height: 1.3; letter-spacing: -0.011em; text-transform: uppercase;
  color: var(--cream);
}
.rsvp-done p {
  margin-top: 14px; max-width: 460px;
  font-family: 'Sora', sans-serif; font-size: 15px; line-height: 1.5;
  letter-spacing: -0.011em; color: var(--cream);
}

/* =============================================================== footer */
.footer {
  background: var(--tan);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; padding: 90px 49px 50px;
}
.footer-lockup { width: 210px; height: auto; flex: none; }
.footer-copy {
  max-width: 706px;
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 15px;
  line-height: 1.5; letter-spacing: -0.011em; color: var(--ink);
}

@media (max-width: 640px) {
  .field-row { flex-direction: column; gap: 0; }
  .footer { flex-direction: column; align-items: flex-start; padding: 56px 24px 40px; }
  .rsvp-inner { padding: 72px 20px 88px; }
}
