:root {
  color-scheme: dark;
  background: #06070d;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #1f1830, #06070d 72%);
  font-family: arial, sans-serif;
}

main {
  box-sizing: border-box;
  width: 100%;
  padding: 2rem 1rem;
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  text-align: center;
}

h1 {
  margin: 0;
  color: #f4faff;
  font: italic 900 clamp(0.75rem, calc(4.75rem + 11vw), 12.5rem) / 1.1 arial, sans-serif;
  letter-spacing: -0.07em;
  text-shadow: -0.045em 0 #00ecff, 0.045em 0.035em #ff248c,
    0 0 0.35em #ff248c88;
  opacity: 0.8;
}

p {
  max-width: 34ch;
  margin: 0;
  color: #c1b2d4;
  font: clamp(0.875rem, calc(0.75rem + 0.55vw), 1rem) / 1.6 arial, sans-serif;
  text-wrap: balance;
  line-height: 0.9;
}

img {
  display: block;
  box-sizing: border-box;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid #ff248c;
  box-shadow: 0 0 2.5rem #ff248c40;
  opacity: 0.8;
}

.error-status {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 2.5vw, 1.5rem);
  margin: 0;
  font-family: monospace;
}

.error-code {
  color: #d5d9e1;
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-style: bold;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

@supports (background-clip: text) {
  .error-code {
    background: linear-gradient(180deg, #f7f8fb 15%, #d5d9e1 55%, #939dad 90%);
    background-clip: text;
    color: transparent;
  }
}

.error-message {
  border-inline-start: 1px solid #aab2bf;
  padding: 0.4em 0 0.4em clamp(0.625rem, 2.5vw, 1.5rem);
  color: #f4faff;
  font-size: clamp(0.875rem, calc(0.75rem + 0.8vw), 1.25rem);
  font-weight: 400;
  text-align: start;
}
