@font-face {
  font-family: "Michroma";
  src: url("./assets/fonts/Michroma-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --shell: #f5f4f0;
  --ink: #111216;
  --red: #f01824;
  --line: #d7d6d1;
  --light-bezel: #55575a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--shell);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  position: fixed;
  inset: clamp(0.65rem, 2vw, 1.5rem);
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: clamp(1rem, 3vw, 2rem);
  content: "";
  pointer-events: none;
}

.console {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.65rem, 4vw, 3.4rem);
  place-items: center;
}

.hero {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vh, 1.2rem);
  text-align: center;
}

.logo-stage {
  position: relative;
  display: grid;
  width: min(86vw, 64rem, calc((100svh - 9rem) * 1.969));
  min-width: 15rem;
  aspect-ratio: 1024 / 520;
  place-items: center;
}

.logo {
  position: absolute;
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.logo-mono {
  z-index: 1;
  animation: boot-outline 900ms ease-out both;
}

.logo-light,
.logo-dark {
  animation: boot-color 900ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.logo-dark {
  display: none;
}

.announcement {
  margin: clamp(-2.5rem, -3vw, -1rem) 0 0;
  font-family: "Michroma", "Eurostile", "Microgramma", sans-serif;
  font-size: clamp(1.15rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.2;
}

.power-light {
  position: absolute;
  bottom: clamp(1.75rem, 4vw, 3.45rem);
  left: clamp(1.75rem, 4vw, 3.45rem);
  width: 0.65rem;
  height: 0.45rem;
  border-radius: 0.1rem;
  background: var(--red);
  box-shadow:
    0 0 0 0.18rem var(--light-bezel),
    0 0 0.75rem rgb(240 24 36 / 55%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes boot-outline {
  0%,
  35% {
    opacity: 0.85;
    transform: scale(0.985);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes boot-color {
  0%,
  30% {
    opacity: 0;
    filter: saturate(0.25);
    transform: scale(0.985);
  }

  100% {
    opacity: 1;
    filter: saturate(1);
    transform: scale(1);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --shell: #0b0d10;
    --ink: #f5f4f0;
    --line: #2a2d32;
    --light-bezel: #3a3d41;
  }

  .logo-light {
    display: none;
  }

  .logo-dark {
    display: block;
  }
}

:root[data-darkreader-scheme="dark"] {
  --shell: #0b0d10;
  --ink: #f5f4f0;
  --line: #2a2d32;
  --light-bezel: #3a3d41;
}

:root[data-darkreader-scheme="dark"] .logo-light {
  display: none;
}

:root[data-darkreader-scheme="dark"] .logo-dark {
  display: block;
}

:root[data-darkreader-scheme="light"] {
  --shell: #f5f4f0;
  --ink: #111216;
  --line: #d7d6d1;
  --light-bezel: #55575a;
}

:root[data-darkreader-scheme="light"] .logo-light {
  display: block;
}

:root[data-darkreader-scheme="light"] .logo-dark {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .logo-mono {
    display: none;
  }

  .logo-light,
  .logo-dark {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 34rem) {
  .console {
    padding: 1.65rem 1.4rem;
  }
}
