@font-face {
  font-family: "UNACC Editorial";
  src: local("Baskerville"), local("Libre Baskerville"), local("Georgia");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #0b1e17;
  color: #f8f7f1;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; }
body { overflow: hidden; }

.upgrade-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  padding: 12rem 2rem 7rem;
}

.slideshow, .slide, .dark-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slideshow { z-index: -3; background: #0b1e17; }
.slide {
  object-fit: cover;
  object-position: var(--photo-position, center);
  opacity: 0;
  transition: opacity 1800ms ease-in-out;
  transform: scale(1.025);
  will-change: opacity;
}
.slide.is-active { opacity: 1; }

.dark-overlay {
  z-index: -2;
  background: linear-gradient(180deg, rgb(3 12 8 / 52%) 0%, rgb(4 14 10 / 56%) 48%, rgb(3 12 8 / 66%) 100%);
}

.brand-logo {
  position: absolute;
  top: max(2.25rem, env(safe-area-inset-top));
  left: max(2.8rem, env(safe-area-inset-left));
  width: clamp(110px, 10.8vw, 165px);
  height: auto;
  /* The white-background original becomes a clean, white logo over the photo. */
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  opacity: .98;
}

.upgrade-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.65rem;
}

.construction-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgb(238 211 162 / 42%);
  border-radius: 50%;
  color: #eed3a2;
  background: rgb(9 25 18 / 16%);
  box-shadow: 0 0 38px rgb(238 211 162 / 7%);
}

.construction-mark svg { display: block; width: 43px; height: 43px; }

h1 {
  margin: 0;
  max-width: 1050px;
  color: #f8f7f1;
  font-family: "UNACC Editorial", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.45rem, 7.5vw, 7.8rem);
  letter-spacing: -.045em;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgb(0 0 0 / 12%);
}

@media (max-width: 600px) {
  .upgrade-screen { padding: 10rem 1.3rem 7rem; }
  .brand-logo { top: max(1.65rem, env(safe-area-inset-top)); left: max(1.4rem, env(safe-area-inset-left)); width: 118px; }
  .upgrade-message { gap: 1.3rem; }
  .construction-mark { width: 64px; height: 64px; }
  .construction-mark svg { width: 36px; height: 36px; }
  h1 { font-size: clamp(2.5rem, 10.8vw, 4.25rem); line-height: 1.08; letter-spacing: -.04em; }
}

@media (max-height: 500px) and (min-width: 601px) {
  .upgrade-screen { padding: 5rem 1.5rem 2rem; }
  .brand-logo { width: 90px; top: 1rem; left: 1.6rem; }
  .upgrade-message { gap: 1rem; }
  .construction-mark { width: 52px; height: 52px; }
  .construction-mark svg { width: 30px; height: 30px; }
  h1 { font-size: clamp(3rem, 8vw, 4.8rem); }
}

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