body {
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: scroll;
}

/* boot screen: the 3x3 tile mark of the landing and sign-in pages, setting itself */
#loading-bg {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #09090a;
  block-size: 100%;
  gap: 22px;
  inline-size: 100%;
}

.loading-mark {
  display: grid;
  block-size: 46px;
  gap: 4px;
  grid-template-columns: repeat(3, 1fr);
  inline-size: 46px;
}

.loading-mark i {
  display: block;
  animation: tile 1.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) infinite;
  background: #e9d8bf;
  opacity: 0;
}

.loading-mark i:nth-child(1) { animation-delay: 0s; }
.loading-mark i:nth-child(2) { animation-delay: 0.08s; }
.loading-mark i:nth-child(3) { animation-delay: 0.16s; }
.loading-mark i:nth-child(4) { animation-delay: 0.24s; }
.loading-mark i:nth-child(5) { animation-delay: 0.32s; }
.loading-mark i:nth-child(6) { animation-delay: 0.4s; }
.loading-mark i:nth-child(7) { animation-delay: 0.48s; }
.loading-mark i:nth-child(8) { animation-delay: 0.56s; }
.loading-mark i:nth-child(9) { animation-delay: 0.64s; }

/* bright tiles of the mark: 1, 3, 5, 9 */
.loading-mark i:nth-child(1),
.loading-mark i:nth-child(3),
.loading-mark i:nth-child(5),
.loading-mark i:nth-child(9) {
  --peak: 0.95;

  background: #c9a35c;
}

.loading-name {
  color: #a8997f;
  font-family: "DM Mono", ui-monospace, menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@keyframes tile {
  0% {
    opacity: 0;
    transform: scale(1.7) rotate(25deg);
  }

  25%,
  70% {
    opacity: var(--peak, 0.25);
    transform: none;
  }

  100% {
    opacity: 0;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-mark i {
    animation: none;
    opacity: var(--peak, 0.25);
  }
}
