/* ===================================================================
   404 PAGE — standalone, no header/footer.
   Relies on the :root variables + .spine / .btn-* classes already
   defined in style.css (loaded before this file in 404.html).
=================================================================== */


.error-page {
  /* margin: 80px auto; */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

/* Reuse the hero "spine stack" signature, but one spine has toppled over */
.error-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.9rem;
  height: 220px;
  margin-bottom: 2.5rem;
}

.error-visual .spine {
  width: 52px;
}

.error-visual .spine-fallen {
  transform: rotate(78deg) translate(18px, 8px);
  height: 220px !important;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--oxblood);
  line-height: 1;
  margin: 0 0 0.5rem;
}

.error-page h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.85rem;
}

.error-sub {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 2.25rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.error-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.88rem;
}

.error-links a {
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.error-links span {
  color: var(--line);
}



/* ===================== RESPONSIVE ===================== */

@media (max-width: 480px) {
  .error-visual {
    height: 160px;
  }

  .error-visual .spine-fallen {
    height: 160px !important;
  }
}