/* Geist tokens (vercel.com/geist, read 2026-11-24): backgrounds, grays, blue-700 focus,
   6px radius, large button 40px / text-button-16, heading-48/32, copy-20/18, label-13. */
@font-face {
	font-family: "Erica One";
	src: url("fonts/erica-one-1.003/EricaOne-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Geist";
	src: url("fonts/geist-1.9.2/Geist-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
:root {
	color-scheme: light dark;
	--background-100: hsl(0, 0%, 100%);
	--background-200: hsl(0, 0%, 98%);
	--gray-100: hsl(0, 0%, 95%);
	--gray-400: hsl(0, 0%, 92%);
	--gray-900: hsl(0, 0%, 30%);
	--gray-1000: hsl(0, 0%, 9%);
	--blue-700: hsl(212, 100%, 48%);
	--radius: 6px;
	--radius-lg: 8px;
	--gray-500: hsl(0, 0%, 79%);
	/* The wordmark: outlines at the text colour, grid at 45% of its contrast (light theme). */
	--wm-ink: var(--gray-1000);
	--wm-grid: hsl(0, 0%, 59%);
}
@media (prefers-color-scheme: dark) {
	:root {
		--background-100: hsl(0, 0%, 4%);
		--background-200: hsl(0, 0%, 0%);
		--gray-100: hsl(0, 0%, 10%);
		--gray-400: hsl(0, 0%, 18%);
		--gray-500: hsl(0, 0%, 27%);
		--gray-900: hsl(0, 0%, 63%);
		--gray-1000: hsl(0, 0%, 93%);
		--wm-grid: hsl(0, 0%, 44%);
	}
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--background-100);
	color: var(--gray-1000);
	font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 96px 24px;
}
/* The wordmark: the h1 holds only the text "worldkit" (visually hidden); the drawing beside it is aria-hidden.
   96 px type on desktop (the drawing is 4.98 em wide), narrower on a phone to fit one line. */
.wordmark { margin: 0; line-height: 0; }
.wordmark .sr { margin: 0; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wordmark svg { display: block; width: min(478.1px, calc(100vw - 32px)); height: auto; aspect-ratio: 5.7907; overflow: visible; }
p.what { margin: 24px 0 0; font-size: 20px; line-height: 36px; color: var(--gray-900); max-width: 34em; }
/* Demos: an h2 at Geist's heading-32, then a grid of cards (one column on phones). */
h2 { margin: 72px 0 0; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -1.28px; }
.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
	background: var(--background-100);
	border: 1px solid var(--gray-400);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: border-color 150ms ease-in-out, background 150ms ease-in-out;
}
.card:hover { border-color: var(--gray-500); background: var(--background-200); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--gray-400); }
.card .body { padding: 16px; }
.card h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.card p { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--gray-900); }
a:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--background-100), 0 0 0 4px var(--blue-700); }
footer a:focus-visible { border-radius: var(--radius); }
footer { border-top: 1px solid var(--gray-400); }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; max-width: 720px; margin: 0 auto; padding: 24px; font-size: 13px; line-height: 16px; }
footer a { color: var(--gray-900); text-decoration: none; }
footer a:hover { color: var(--gray-1000); text-decoration: underline; }
@media (max-width: 480px) {
	main { padding: 64px 16px; }
	p.what { font-size: 18px; line-height: 28px; }
	footer ul { padding: 20px 16px; }
}
