---
interface Props {
	title: string;
	description?: string;
}

const { title, description = '' } = Astro.props;
---

<!doctype html>
<html lang="de">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>{title}</title>
		{description && <meta name="description" content={description} />}
		<link rel="preconnect" href="https://fonts.googleapis.com" />
		<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
		<link
			href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
			rel="stylesheet"
		/>
		<style>
			body {
				font-family:
					'Inter',
					system-ui,
					-apple-system,
					sans-serif;
				background-color: var(--color-background-page);
				color: var(--color-text-primary);
				margin: 0;
				min-height: 100vh;
			}
		</style>
	</head>
	<body>
		<slot />
	</body>
</html>
