html[data-theme] {
  --startup-surface: #161817;
  --startup-foreground: #deded2;
  background: var(--startup-surface);
  color-scheme: dark;
}

html[data-theme='light'] {
  --startup-surface: #fff;
  --startup-foreground: #161616;
  color-scheme: light;
}

.startup-loader {
  position: fixed;
  inset: 0;
  display: grid;
  inline-size: 100dvw;
  place-items: center;
  margin: 0;
  padding: 0;
  background: var(--startup-surface);
  color: var(--startup-foreground);
}

.startup-loader > span {
  box-sizing: border-box;
  inline-size: 24px;
  block-size: 24px;
  border: 2px solid color-mix(in srgb, currentColor 22%, transparent);
  border-block-start-color: currentColor;
  border-radius: 50%;
  animation: clarity-startup-spin 0.8s linear infinite;
}

@keyframes clarity-startup-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .startup-loader > span {
    animation: none;
  }
}
