/* Critical startup styles are independent of application bundles and web fonts. */
html {
  background: #fff9ef;
  color: #323030;
}
html[data-theme='dark'] {
  background: #242221;
  color: #fff3dd;
}
#boot-loader {
  display: none;
}
html[data-boot='loading'] #root {
  visibility: hidden;
}
html[data-boot='loading'] #boot-loader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #fff9ef;
  color: #323030;
  font-family: system-ui, sans-serif;
}
html[data-theme='dark'] #boot-loader {
  background: #242221;
  color: #fff3dd;
}
.boot-mark {
  font:
    700 48px/1.1 system-ui,
    sans-serif;
  letter-spacing: -3px;
}
.boot-mark img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 24px;
}
.boot-caption {
  font-size: 14px;
  letter-spacing: 0.05em;
}
.boot-progress {
  width: 120px;
  height: 3px;
  border-radius: 4px;
  overflow: hidden;
  background: #e9dfd2;
}
.boot-progress::after {
  content: '';
  display: block;
  width: 45%;
  height: 100%;
  background: #bc4336;
  animation: boot-progress 1.3s ease-in-out infinite;
}
.boot-retry {
  display: none;
  color: inherit;
  border: 1px solid #bc4336;
  border-radius: 14px;
  padding: 12px 24px;
  font: inherit;
  text-decoration: none;
}
html[data-boot='failed'] #root {
  visibility: visible;
}
html[data-boot='failed'] #boot-loader {
  display: flex;
  padding: 24px;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: system-ui, sans-serif;
}
html[data-boot='failed'] .boot-progress {
  display: none;
}
html[data-boot='failed'] .boot-retry {
  display: inline-flex;
}
.seo-intro {
  max-width: 960px;
  margin: 40px auto;
  padding: 24px;
  font:
    16px/1.7 system-ui,
    sans-serif;
}
.seo-intro a {
  color: #bc4336;
}
@keyframes boot-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(330%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .boot-progress::after {
    animation: none;
    width: 100%;
  }
}

html[data-theme='dark'] .boot-mark span {
  color: #edaa8c;
}
