/* ═══════════════════════════════════════════
   Error Pages — Warm, friendly, standalone
   ═══════════════════════════════════════════ */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sc-cream);
  padding: 40px 24px;
  position: relative;
}

.error-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(184, 96, 63, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(107, 127, 94, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.error-page__content {
  text-align: center;
  max-width: 460px;
  position: relative;
}

.error-page__logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(90, 64, 50, 0.1);
}

.error-page__code {
  font-family: var(--sc-font-display);
  font-size: 6rem;
  font-weight: 400;
  color: var(--sc-sand);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.error-page__title {
  font-family: var(--sc-font-display);
  font-size: 1.5rem;
  color: var(--sc-charcoal);
  margin-bottom: 12px;
  line-height: 1.3;
}

.error-page__desc {
  font-family: var(--sc-font-body);
  font-size: 0.95rem;
  color: var(--sc-text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.error-page__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.error-page__actions .btn { min-width: 130px; }

.error-page__hint {
  font-family: var(--sc-font-ui);
  font-size: 0.78rem;
  color: var(--sc-text-tertiary);
}

/* 500 variant */
.error-page--500 .error-page__code {
  color: var(--sc-rust-soft);
  opacity: 0.4;
}

/* 403 variant */
.error-page--403 .error-page__code {
  color: var(--sc-bark-faint);
  opacity: 0.3;
}

@media (max-width: 480px) {
  .error-page { padding: 24px 16px; }
  .error-page__code { font-size: 4.5rem; }
  .error-page__title { font-size: 1.3rem; }
  .error-page__logo { width: 52px; height: 52px; border-radius: 12px; }
}
