:root {
  color-scheme: dark;
  --poster-ratio: 341 / 578;
  --wine: #310100;
  --ember: #801307;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
}

.launch {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 37%, rgba(158, 22, 9, .42), transparent 39%),
    linear-gradient(135deg, #230000, #4b0300 52%, #210000);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 42vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .28;
  filter: blur(90px);
  background: #b51e0d;
}

.ambient--one { top: -25%; left: -16%; }
.ambient--two { right: -18%; bottom: -30%; background: #e06a22; }

.poster {
  position: relative;
  width: min(100vw, calc(100svh * 341 / 578));
  aspect-ratio: var(--poster-ratio);
  overflow: hidden;
  background: #5b0803;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
  transform-origin: center;
}

.poster__base,
.poster__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.poster__base { object-fit: cover; }

.poster__layer {
  pointer-events: none;
  background: url("assets/azmar-coming-soon.jpeg") center / 100% 100% no-repeat;
  will-change: transform, opacity, filter;
}

.layer--logo { clip-path: inset(3.3% 33% 77.5% 33%); }
.layer--badge { clip-path: inset(25.2% 12.8% 53.5% 12.8%); }
.layer--hand { clip-path: inset(44.5% 0 43% 62%); }
.layer--cloche { clip-path: inset(46.5% 8% 25.5% 34%); transform-origin: 74% 47%; }
.layer--food { clip-path: inset(67% 7% 9.5% 6%); }
.layer--location { clip-path: inset(88.5% 3% 1.7% 3%); }

.light-sweep {
  position: absolute;
  top: 46%;
  left: 39%;
  width: 52%;
  height: 17%;
  opacity: 0;
  transform: rotate(-15deg) translateX(-100%);
  mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.42) 49%, transparent 67%);
  clip-path: ellipse(48% 46% at 50% 50%);
  pointer-events: none;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-aspect-ratio: 341/578) and (min-width: 700px) {
  .poster { border-radius: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .poster__layer, .light-sweep, .ambient { animation: none !important; transform: none !important; }
}
