type Fact = { label: string; value: string };

/** Label/value rows (a real <dl>) used for both the project and the company facts. */
export function FactList({ title, items }: { title: string; items: Fact[] }) {
  return (
    <>
      <h3 className="tracked text-xs font-medium uppercase tracking-[0.22em] text-mist">{title}</h3>
      <dl className="mt-3 border-t border-line">
        {items.map((item) => (
          <div
            key={item.label}
            className="flex flex-col gap-1 border-b border-line py-4 sm:flex-row sm:items-baseline sm:gap-6"
          >
            <dt className="text-sm text-mist sm:w-40 sm:shrink-0">{item.label}</dt>
            <dd className="text-lg text-bone">{item.value}</dd>
          </div>
        ))}
      </dl>
    </>
  );
}
