/* Sakeena is 28 — one-page RSVP.
   Mobile-first: every size below is the phone size; the 720px column is the
   desktop courtesy layout and nothing reflows between them. */

/* Anton (wordmark + headings) and Space Grotesk (everything else), self-hosted.
   Both are SIL Open Font License. font-display:swap so type is readable immediately. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/anton-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #FFF0F4;
  color: #14101A;
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

a { color: #14101A; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #E10C79; }
input, textarea, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #1E3CFF; outline-offset: 3px; }
::selection { background: #FFD400; }
[hidden] { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- shell ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 64px;
  position: relative;
}

/* The 3D layers span the full viewport width and the whole document height. The star
   and balloon layer sits ON TOP of the sections — hit-testing happens in fx.js, so taps
   still reach the buttons underneath. Both are hidden until the scene is running. */
.fx {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  transition: opacity 900ms ease;
}

/* Confetti layer: behind the sections, above the page background. Text always wins,
   so chips can fall the full height of the page without hurting a single word — and
   they pass out of sight behind the dark parking card, which reads as depth. */
.fx-back { z-index: 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  padding: 22px 20px 8px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pink { color: #E10C79; }
.green { color: #0E7C4A; }

/* Glossier-style crop: the wordmark is set slightly too big for the frame and the
   overflow is clipped rather than wrapped. */
.wordmark-crop { position: relative; margin: 26px 0 0; overflow: hidden; }

.wordmark {
  position: relative;
  z-index: 2;
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-weight: 400;
  margin: 0;
  line-height: 0.8;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark span {
  display: block;
  font-size: clamp(52px, 25.5vw, 178px);
  margin-left: -0.045em;
}

.when {
  display: grid;
  gap: 2px;
  margin-top: 22px;
  font-size: clamp(19px, 5.2vw, 26px);
  font-weight: 700;
  line-height: 1.24;
}

.dress { margin: 16px 0 0; font-size: 17px; line-height: 1.5; max-width: 34ch; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.swatches span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(20, 16, 26, .18);
  display: inline-block;
}

/* ---------- actions ---------- */

.actions { padding: 26px 20px 6px; position: relative; z-index: 3; }
.actions-grid { display: grid; gap: 10px; }

.btn-solid,
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.btn-solid { background: #14101A; color: #FFF0F4; border: none; cursor: pointer; }
.btn-solid:hover { background: #E10C79; }

.btn-outline { background: #FFF0F4; color: #14101A; border: 2px solid #14101A; }
.btn-outline:hover { background: #1E3CFF; border-color: #1E3CFF; color: #FFF0F4; }

.arrow { font-size: 15px; opacity: .7; }

/* ---------- parking ---------- */
/* The block people re-open standing outside the building at 7PM: highest contrast
   on the page, no decoration in the way, ranked 1-2-3 rather than a flat list. */

.parking { padding: 26px 20px 0; position: relative; z-index: 3; }

.parking-card {
  background: #14101A;
  color: #FFF0F4;
  border-radius: 18px;
  padding: 22px 20px 24px;
}

.parking-title {
  margin: 0 0 4px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 34px;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 1;
}

.parking-kicker {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFD400;
}

.parking-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.parking-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.rank {
  font-family: Anton, Impact, sans-serif;
  font-size: 30px;
  line-height: 0.9;
  color: #FFD400;
}
.rank-text { font-size: 18px; line-height: 1.4; }

.parking-address {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 244, 232, .25);
  display: grid;
  gap: 6px;
  font-size: 17px;
  line-height: 1.4;
}
.parking-address strong { font-weight: 700; }
.parking-address .muted { color: rgba(255, 244, 232, .7); }
.parking-address .apartment { margin-top: 6px; font-size: 21px; font-weight: 700; }

/* ---------- rsvp ---------- */

.rsvp { padding: 30px 20px 0; position: relative; z-index: 3; }

.rsvp-title {
  margin: 0 0 18px;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(46px, 15vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.form { display: grid; gap: 18px; }

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

.field { display: grid; gap: 8px; }
.field label,
.field-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #FFFBFC;
  border: 2px solid #14101A;
  border-radius: 12px;
  font-size: 18px;
}
.field input { min-height: 54px; }
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: #1E3CFF; }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* shared button base — every tap target clears 44px */
.btn-choice,
.btn-submit,
.btn-small {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid #14101A;
  /* Opaque, not transparent: the confetti layer sits behind the sections, and a chip
     showing through the middle of a button reads as a glitch. Same colour as the page,
     so nothing looks different. */
  background: #FFF0F4;
  color: #14101A;
}

.btn-choice.is-yes { background: #0E7C4A; border-color: #0E7C4A; color: #FFF0F4; }
.btn-choice.is-no { background: #14101A; border-color: #14101A; color: #FFF0F4; }

.btn-submit {
  min-height: 60px;
  font-size: 20px;
  background: #E10C79;
  border-color: #E10C79;
  color: #FFF0F4;
}
.btn-submit:disabled {
  background: #ECDEE3;                 /* rgba(20,16,26,.08) flattened onto the page */
  border-color: rgba(20, 16, 26, .2);
  color: rgba(20, 16, 26, .45);
  cursor: not-allowed;
}

.prefs {
  display: grid;
  gap: 16px;
  padding: 20px 18px 22px;
  border: 2px solid #14101A;
  border-radius: 16px;
  animation: rise 300ms ease both;
}
.prefs-head { display: grid; gap: 4px; }
.prefs-head h3 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.prefs-head p { margin: 0; font-size: 15px; line-height: 1.4; color: rgba(20, 16, 26, .7); }

#message-field { animation: rise 300ms ease both; }

.error { margin: 0; font-size: 16px; line-height: 1.4; color: #A8071A; }
.noscript { margin: 0; font-size: 16px; line-height: 1.45; }

/* ---------- confirmation ---------- */

.done {
  border: 3px solid #14101A;
  border-radius: 18px;
  padding: 24px 20px;
  animation: rise 320ms ease both;
}
.done-title {
  margin: 0 0 10px;
  font-family: Anton, Impact, sans-serif;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
}
.done-body { margin: 0; font-size: 18px; line-height: 1.5; }

.done-actions { display: grid; gap: 8px; margin-top: 20px; }
.btn-small {
  min-height: 48px;
  font-size: 15px;
  background: #14101A;
  border-color: #14101A;
  color: #FFF0F4;
  text-decoration: none;
}
.btn-small:hover { background: #E10C79; border-color: #E10C79; color: #FFF0F4; }

/* ---------- footer ---------- */

footer {
  padding: 40px 20px 0;
  position: relative;
  z-index: 3;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(20, 16, 26, .55);
}
