/* The display screen: one invitation, always on, filling the screen.
   The invitation itself is shown whole (contain); the space around it is a blurred, darkened
   copy of the same picture, so any shape of invitation looks right on any shape of screen. */
:root {
  --bg: #0d1015;
  --ink: #eee8dc;
  --gold: #d9b35b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font-family: "Frank Ruhl Libre", "David", "Times New Roman", serif; cursor: none; }

#screen { position: fixed; inset: 0; }

.invite { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.invite.on { opacity: 1; }
.invite .backdrop {
  position: absolute; inset: -5%;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(.45) saturate(1.1);
  transform: scale(1.05);
}
.invite img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 2vmin;
  filter: drop-shadow(0 1.5vmin 4vmin rgba(0, 0, 0, .55));
}

.empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1vmin; text-align: center;
}
.empty[hidden] { display: none; }
.empty .brand { font-size: 9vmin; font-weight: 700; color: var(--gold); }
.empty .sub { font-size: 3.5vmin; opacity: .7; }

@media (prefers-reduced-motion: reduce) { .invite { transition: none; } }
