import { cn } from "cn";

type HeroHeadlineProps = { start: string; highlight?: string; className?: string };

/**
 * Big page headline (Career pages, not-found page) (Figma: Outfit ExtraBold 72px / 74.16px, -1.8px; the second line in the brand gradient, 10px below).
 * Phone & tablet follow the Home hero: 40px / 50px.
 */
export function HeroHeadline({ start, highlight, className }: HeroHeadlineProps) {
  return (
    <h1
      className={cn(
        "flex flex-col gap-2.5 font-heading text-[40px] leading-[50px] font-extrabold tracking-[-1.8px] text-white lg:text-[72px] lg:leading-[74.16px]",
        className,
      )}
    >
      <span>{start}</span>
      {/* A space so the two lines are read as two words (flex ignores it visually). */}
      {highlight && " "}
      {highlight && <span className="text-gradient-brand">{highlight}</span>}
    </h1>
  );
}
