import Link from "next/link";
import { cn } from "@/lib/utils";

/**
 * TECH-C lockup.
 *
 * Mirrors the prospectus masthead: the display wordmark with a signal-coloured
 * hyphen, then a monospaced descriptor. The descriptor is dropped on the narrow
 * rail so the mark never collides with the drawer's close control.
 */
export function Logo({
  href = "/",
  className,
  showTagline = true,
}: {
  href?: string;
  className?: string;
  showTagline?: boolean;
}) {
  return (
    <Link
      href={href}
      className={cn("inline-flex shrink-0 items-baseline gap-2.5", className)}
      aria-label="TECH-C Robotic & Coding"
    >
      <span className="ws-display text-[1.05rem] leading-none text-primary">
        TECH<span className="text-accent-500">-</span>C
      </span>
      {showTagline ? (
        <span className="ws-label hidden leading-none lg:block">Robotic &amp; Coding</span>
      ) : null}
    </Link>
  );
}
