*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

.site {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.site__logo {
  display: block;
  width: clamp(6.75rem, 11vw, 10rem);
  height: auto;
}

.site--not-found {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  text-align: center;
}

.site__logo--small {
  width: clamp(5rem, 8vw, 6.5rem);
  margin-bottom: 1.75rem;
}

.error-code,
.error-message {
  margin: 0;
}

.error-code {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.error-message {
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 62%);
  font-size: 0.875rem;
}

.home-link {
  margin-top: 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  text-underline-offset: 0.25em;
}

.home-link:focus-visible {
  border-radius: 0.125rem;
  outline: 0.125rem solid #fff;
  outline-offset: 0.25rem;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  color: rgb(255 255 255 / 58%);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer small {
  font: inherit;
}

@media (max-width: 30rem) {
  .site__logo {
    width: clamp(6.25rem, 30vw, 7.5rem);
  }

  .site__logo--small {
    width: 5rem;
  }

  .site-footer {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }
}
