@font-face {
  font-family: Inter;
  src: url("./inter.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  color: #fbf4e7;
  background: #212b38;
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body { margin: 0; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 100vh;
  min-height: 100svh;
  text-align: center;
}

.key-art,
.key-art img,
.hero::before {
  position: absolute;
  inset: 0;
}

.key-art { z-index: -2; }

.key-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 61%;
}

.hero::before {
  z-index: -1;
  background: linear-gradient(180deg, rgba(21, 30, 44, .63), rgba(30, 39, 54, .29) 32%, transparent 61%);
  content: "";
  pointer-events: none;
}

.intro {
  margin: clamp(64px, 16.5svh, 144px) 20px 0;
  text-shadow: 0 1px 8px rgba(17, 28, 42, .74), 0 2px 22px rgba(17, 28, 42, .38);
}

.status {
  margin: 0;
  color: #fff5e2;
  font: 400 clamp(3rem, 5.4vw, 5.5rem) / 1 Georgia, "Times New Roman", serif;
  letter-spacing: -.048em;
}

.slogan {
  display: grid;
  justify-items: center;
  gap: 13px;
  margin: 16px 0 0;
  color: #fbf4e7;
  font-size: clamp(.8125rem, 1.2vw, 1.0625rem);
  line-height: 1.45;
  letter-spacing: .07em;
}

.slogan::before {
  width: 28px;
  height: 1px;
  background: #f2d6a7b3;
  content: "";
}

.error-page .hero {
  align-content: center;
  gap: 1rem;
  padding: 24px;
}

.error-page h1 { margin: 0; }

.error-page a {
  color: inherit;
  text-underline-offset: .25em;
}

@media (orientation: portrait) {
  .key-art img { object-position: 44% 58%; }

  .hero::before {
    background: radial-gradient(ellipse 65% 30% at 54% 20%, rgba(20, 31, 48, .36), transparent 100%);
  }

  .intro {
    margin-block-start: max(calc(16.5svh + env(safe-area-inset-top)), 76px);
    transform: translateX(clamp(12px, 5vw, 30px));
  }

  .status { font-size: clamp(2.5rem, 10.75vw, 4.8rem); }
  .slogan { font-size: clamp(.75rem, 3.4vw, 1.0625rem); }
}

@media (orientation: landscape) and (max-height: 460px) {
  .intro { margin-block-start: clamp(28px, 11svh, 56px); }
  .status { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
}
