:root {
  color-scheme: dark;
  --background: #08090b;
  --paper: #f4ebd9;
  --muted: #b8ab94;
  --gold: #d6b774;
  --dark-ink: #2a1b11;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #f7dba0; outline-offset: 5px; }
button, a { -webkit-tap-highlight-color: transparent; }
.film {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 950ms ease;
}
.film.passed { opacity: 0; pointer-events: none; z-index: -1; }
.film video { display: block; width: 100%; height: 100%; object-fit: contain; }
.boarding {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #17130c, #070604 47%, #000 76%);
  padding: 1.5rem;
}
.boarding__content { text-align: center; padding-block: 1.75rem; }
.boarding__rail { display: flex; justify-content: center; gap: .22rem; margin-bottom: 1.2rem; }
.boarding__rail span {
  display: block; width: 3px; height: 1.3rem; border-radius: 2px; background: var(--gold); transform: skew(-17deg);
}
.boarding__rail span:nth-child(2) { height: 1.65rem; margin-top: -.175rem; }
.overline {
  margin: 0;
  color: var(--gold);
  font-size: .65rem;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: .23em;
  font-weight: 650;
}
.button {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .7rem 1.5rem;
  border-radius: 4px;
  line-height: 1.15;
  font-size: .87rem;
  font-weight: 680;
  transition: background-color 180ms, transform 180ms, box-shadow 180ms;
}
.button--gold {
  color: var(--dark-ink);
  border-color: #f1d696;
  background: linear-gradient(180deg, #e5c780, #c3a064);
  box-shadow: 0 5px 23px #0006;
}
.button--gold:not(:disabled):hover { background: #edce87; transform: translateY(-1px); }
.boarding__start { margin-top: 1.3rem; }
.boarding__hint { margin: .85rem 0 .55rem; color: var(--muted); font-size: .77rem; }
.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .65rem .2rem;
  text-decoration: underline;
  text-underline-offset: .22em;
  font-size: .76rem;
}
.text-button:hover { color: var(--paper); }
.film__controls {
  position: absolute;
  display: flex;
  gap: .42rem;
  align-items: center;
  inset: auto 0 0;
  padding: 3rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background: linear-gradient(transparent, #000a);
}
.control {
  color: #f7edda;
  background: #101014d9;
  border: 1px solid #e3d3a745;
  border-radius: 4px;
  padding: .55rem .7rem;
  min-height: 38px;
  font-size: .73rem;
  white-space: nowrap;
}
.control--skip { margin-left: auto; }
.invite {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background:
    radial-gradient(ellipse at 50% 9%, #241b13, transparent 60%),
    radial-gradient(ellipse at 50% 95%, #161119, transparent 55%),
    var(--background);
}
.invite__frame {
  position: relative;
  width: min(100%, 44rem);
  padding: clamp(1.3rem, 5.5vw, 3.2rem) clamp(.8rem, 4vw, 2.8rem) 1rem;
  text-align: center;
}
.invite__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #d9b9712c;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000, #0008 73%, transparent);
}
.invite__mark { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold); margin-bottom: 1rem; font-size: 1rem; }
.invite__mark span { width: 2.7rem; height: 1px; background: linear-gradient(90deg, transparent, #b88e50); }
.invite__mark span:last-child { transform: rotate(180deg); }
.invite h1, .invite h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.invite h1 {
  font-size: clamp(2.05rem, 8.5vw, 5.05rem);
  line-height: .98;
  letter-spacing: -.05em;
  margin: .68rem 0 .8rem;
  color: #fff2d6;
  text-wrap: balance;
}
.venue {
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin: 0;
  font-size: .84rem;
}
.venue span { width: 3px; height: 3px; transform: rotate(45deg); background: var(--gold); }
.invite__ticket { margin-top: clamp(1.7rem, 6vw, 3rem); }
.invite h2 { font-size: clamp(1.35rem, 5vw, 2rem); margin: 0 0 .3rem; color: var(--paper); }
.welcome { color: var(--muted); margin: 0 0 1.05rem; font-size: .9rem; }
.ticket-help { color: var(--muted); margin: .72rem 0 1.05rem; font-size: .77rem; }
.confirm { width: min(100%, 17rem); }
.confirm span { padding-left: .42rem; }
.confirm:disabled { opacity: .8; }
.rsvp-status { min-height: 1.2em; font-size: .8rem; margin: .6rem auto 0; color: #d5e0bb; }
.rsvp-status[data-error] { color: #ffc1b0; }
.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.music { margin-top: .35rem; }
.no-script { position: fixed; inset: auto 1rem 1rem; z-index: 20; padding: .7rem; background: #1d1912; }
.invite.is-playing [data-reveal] { animation: enter 900ms both; }
.invite.is-playing [data-reveal="2"] { animation-delay: 1050ms; }
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 720px) {
  .film video { width: auto; max-width: 100%; height: 100%; }
  .film__controls { max-width: 31rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
