:root {
  color-scheme: light dark;
  --boot-background: #f5f7f2;
  --boot-text: #152824;
  --boot-ring: #bfd7d0;
  --boot-accent: #1b6157;
}

body {
  margin: 0;
}

.boot-loader {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-content: center;
  place-items: center;
  gap: 1rem;
  padding: 1.5rem;
  box-sizing: border-box;
  color: var(--boot-text);
  background: var(--boot-background);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  text-align: center;
}

.boot-loader__mark {
  position: relative;
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
}

.boot-loader__mark::before {
  position: absolute;
  inset: 0;
  border: 0.1875rem solid var(--boot-ring);
  border-top-color: var(--boot-accent);
  border-radius: 50%;
  animation: boot-loader-spin 1s linear infinite;
  content: '';
}

.boot-loader__mark img {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.25rem rgb(20 65 58 / 18%);
}

.boot-loader p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.boot-loader__noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  color: #8a2424;
  text-align: center;
}

@keyframes boot-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --boot-background: #10201d;
    --boot-text: #edf5f1;
    --boot-ring: #315c54;
    --boot-accent: #d7a928;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-loader__mark::before {
    border-color: var(--boot-ring);
    animation: none;
  }
}
