/* =========================================
   UNDEFINEDVERSEOFFICIAL
   File: css/errors.css
   Purpose: 404 and error page presentation
   ========================================= */

.error-page {
  display: grid;
  place-items: center;
  min-height: 75vh;
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}

.error-page__content {
  width: min(100%, 680px);
  margin-inline: auto;
}

.error-page__code {
  display: block;
  color: var(--color-text-subtle);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: var(--font-bold);
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.error-page__title {
  margin-top: var(--space-5);
  color: var(--color-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: var(--font-semibold);
  letter-spacing: -0.045em;
}

.error-page__description {
  max-width: 500px;
  margin: var(--space-4) auto 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.error-page__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.error-page__visual {
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto var(--space-5);
  overflow: hidden;
}

.error-page__visual svg {
  display: block;
  width: 100%;
  height: 100%;
}

.error-boundary {
  padding: var(--space-5);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.error-boundary__title {
  margin: 0;
  color: var(--color-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

.error-boundary__message {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.error-boundary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 600px) {
  .error-page {
    min-height: 70vh;
  }

  .error-page__actions,
  .error-boundary__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .error-page__actions .button,
  .error-boundary__actions .button {
    width: 100%;
  }
}