'use client';

import { Link } from '$shared/ui';

/**
 * Route-level error boundary — shown when an unhandled error escapes
 * the [[...slug]] segment. Mirrors the not-found layout.
 */
export default function ErrorPage() {
  return (
    <main className="flex-1 flex flex-col items-center justify-center gap-6">
      <h1 className="font-heading text-[clamp(8rem,20vw,18rem)] leading-none">500</h1>
      <Link href="/">Back to main</Link>
    </main>
  );
}
