/* 404 / 500 */

.error-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #0b0d0c;
  color: #f2f1ea;
}

.error-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.error-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.8) contrast(1.08);
}

.error-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 13, 12, 0.72) 0%, rgba(11, 13, 12, 0.9) 55%, rgba(11, 13, 12, 1) 100%);
}

.error-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}

.error-top .brand {
  color: #f2f1ea;
}

.error-top .brand-word-accent {
  color: #ffb435;
}

.error-main {
  display: grid;
  place-items: center;
  flex: 1;
  padding-block: 40px 60px;
  text-align: center;
}

.error-main-inner {
  max-width: 720px;
}

.error-code {
  color: var(--color-brand);
  font-family: var(--font-mono);
  font-size: clamp(7rem, 20vw, 15rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.error-eyebrow {
  display: block;
  margin-top: 24px;
  color: #ffb435;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-main h1 {
  margin-top: 12px;
  color: #f2f1ea;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}

.error-text {
  max-width: 46ch;
  margin: 14px auto 0;
  color: #c1c7bf;
  font-size: 0.96rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.error-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid rgba(242, 241, 234, 0.14);
  color: rgba(242, 241, 234, 0.45);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.error-footer a {
  color: rgba(242, 241, 234, 0.62);
}

.error-footer a:hover {
  color: #ffb435;
}

@media (max-width: 600px) {
  .error-code {
    font-size: clamp(6rem, 28vw, 9rem);
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}
