#home-entrance {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(1.5rem, 6vw, 4rem);
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--swatch--teal);
  color: var(--swatch--almost-white);
}

:root[data-home-entrance] {
  overflow: hidden;
}

:root[data-home-entrance="pending"] #home-entrance,
#home-entrance[open] {
  display: grid;
  place-items: center;
}

#home-entrance::backdrop {
  background: transparent;
}

#home-entrance::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 39% 35%, var(--swatch--light-teal), transparent 68%);
  opacity: .28;
}
.home-entrance-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  margin: auto;
}

.home-entrance-sun {
  width: clamp(4.25rem, 7.5vw, 6.5rem);
  height: auto;
  margin-bottom: clamp(1.25rem, 2.2vw, 1.875rem);
}

#home-entrance-title {
  max-width: 16ch;
  margin: 0;
  color: inherit;
  font: 400 clamp(2.55rem, 5.4vw, 4.5rem)/1.04 "Value Serif", Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
  outline: none;
}

#home-entrance-title em {
  display: block;
  font-weight: inherit;
}



@media (prefers-reduced-motion: no-preference) {
  #home-entrance[open] .home-entrance-sun { animation: arrival-sun 1050ms cubic-bezier(.2,.7,.3,1) both; }
  #home-entrance[open] #home-entrance-title { animation: arrival-title 850ms ease-out both; }
}
@keyframes arrival-sun {
  from { transform: scale(.93) rotate(-4deg); }
  to { transform: scale(1.035) rotate(1deg); }
}
@keyframes arrival-title {
  from { opacity: .76; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
