import type { Metadata, Viewport } from "next";
import type { ReactNode } from "react";
// Order matters: the Tailwind CDN appended its styles after styles.css.
import "@/app/(site)/_styles/styles.css";
import "@/app/(site)/_styles/tailwind.css";

export const metadata: Metadata = {
  title: "Unionists Group",
};

export const viewport: Viewport = { width: "device-width", initialScale: 1 };

/** Root layout for the public website. The admin has its own: app/(admin)/layout.tsx. */
export default function SiteLayout({ children }: { children: ReactNode }) {
  return (
    <html lang="en">
      <head>
        <link rel="preconnect" href="https://fonts.googleapis.com" />
        <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
        {/* eslint-disable-next-line @next/next/no-page-custom-font -- same font loading as the static site */}
        <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;900&display=swap" rel="stylesheet" />
      </head>
      <body className="font-roboto text-ink bg-white antialiased overflow-x-hidden">{children}</body>
    </html>
  );
}
