:root {
  color-scheme: dark;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #101113;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid #b9ccff;
  outline-offset: 6px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 20px 40px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.error-scene {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #17243b;
  min-height: calc(100svh - 80px);
}
.error-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 15, 30, 0.25), rgba(7, 15, 30, 0.6)),
    radial-gradient(ellipse at 50% 42%, rgba(7, 15, 30, 0.65), transparent 78%),
    url("/images/not-found-landscape.webp") center / cover no-repeat;
}
.error-copy {
  align-self: center;
  text-align: center;
  width: min(840px, calc(100% - 48px));
  margin-inline: auto;
  padding: 64px 0 48px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}
h1 {
  margin: 0 0 26px;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.14;
}
.mobile-break {
  display: none;
}
.description {
  max-width: 550px;
  margin: 0 auto 30px;
  color: #edf1f8;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 5px;
  background: #fff;
  color: #14213b;
  font-size: 16px;
  font-weight: 650;
  text-shadow: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.home-button:hover {
  background: #e9effc;
}
.error-code {
  width: fit-content;
  margin: 56px auto 0;
  padding: 10px 0 10px 16px;
  border-left: 2px solid #98b0f3;
  color: #edf1f8;
  font-size: 14px;
  letter-spacing: 0.7px;
}
.error-code span {
  font-weight: 700;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  color: #d1dae9;
  font-size: 12px;
}
footer nav {
  display: flex;
  gap: 22px;
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  .site-header {
    min-height: 72px;
    padding: 18px 22px;
  }
  .error-scene {
    min-height: calc(100svh - 72px);
  }
  .error-copy {
    width: calc(100% - 40px);
    padding-block: 64px 40px;
  }
  .mobile-break {
    display: block;
  }
  h1 {
    font-size: clamp(36px, 10vw, 52px);
    margin-bottom: 24px;
  }
  .description {
    max-width: 320px;
  }
  .error-code {
    margin-top: 40px;
  }
  footer {
    justify-content: center;
    padding: 18px 20px;
    text-align: center;
  }
}

.brand-text { font-size: 22px; font-weight: 650; letter-spacing: -0.04em; }
.brand-dot { color: #98b0f3; }
