/* johngrandt.dk – fullscreen 404 */

:root {
  --blue: #2877c7;
  --blue-hover: #3b8ee1;
  --dark: #0b0d10;
  --text: #ffffff;
}

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

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--dark);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.error-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--dark);
}

.error-page__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.home-button {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 69%;
  transform: translate(-50%, -50%);
  min-width: 235px;
  padding: 15px 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  background: rgba(29, 102, 174, .94);
  color: var(--text);
  font: 700 15px/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-button:hover,
.home-button:focus-visible {
  background: var(--blue-hover);
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.42);
}

.home-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

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

@media (max-width: 1000px) {
  .error-page__background {
    object-position: 48% center;
  }

  .home-button {
    top: 72%;
    min-width: 210px;
  }
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .error-page {
    position: relative;
    min-height: 100dvh;
  }

  .error-page__background {
    object-position: 52% center;
  }

  .home-button {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 24px;
    width: min(88vw, 330px);
    min-width: 0;
    transform: translateX(-50%);
  }

  .home-button:hover,
  .home-button:focus-visible {
    transform: translateX(-50%) translateY(-2px);
  }
}
