/* Bailiwick holding page. Colours follow the app's design system (D34). */

@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
	color-scheme: light dark;
	--background: #faf9f6;
	--foreground: #11181c;
	--muted-foreground: #575e63;
	--border: #e3e1da;
	--brand: #0f766e;
	--brand-mark: #0d9488;
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #0e1113;
		--foreground: #f1f3f5;
		--muted-foreground: #a2abb2;
		--border: #272e33;
		--brand: #2dd4bf;
		--brand-mark: #2dd4bf;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	/* The content sits a little above the middle, which reads as centred. */
	grid-template-rows: 2fr auto 3fr;
	padding-inline: 16px;
	background: var(--background);
	color: var(--foreground);
	font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main,
footer {
	width: 100%;
	max-width: 36rem;
	margin-inline: auto;
}

main {
	grid-row: 2;
	padding-block: 48px;
}

h1 {
	margin: 0;
	line-height: 0;
}

.wordmark {
	display: block;
	height: 32px;
	width: auto;
	color: var(--foreground);
}

.wordmark .dot {
	fill: var(--brand-mark);
}

.lede {
	margin: 24px 0 0;
	font-size: 1.125rem;
	line-height: 1.5;
	text-wrap: balance;
}

.note {
	margin: 8px 0 0;
	color: var(--muted-foreground);
}

footer {
	grid-row: 3;
	align-self: end;
	padding-block: 24px 32px;
	border-top: 1px solid var(--border);
	color: var(--muted-foreground);
	font-size: 0.875rem;
}

footer p {
	margin: 0;
}

/* The rule sits midway, matching the gap under the wordmark. */
.elsewhere {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	color: var(--muted-foreground);
}

.elsewhere h2 {
	margin: 0;
	color: var(--foreground);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
}

.elsewhere p {
	margin: 8px 0 0;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	overflow-wrap: anywhere;
}

a {
	color: var(--brand);
	text-underline-offset: 0.2em;
}

a:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 2px;
	border-radius: 2px;
}

@media (min-width: 640px) {
	body {
		padding-inline: 32px;
	}

	.wordmark {
		height: 40px;
	}

	.lede {
		margin-top: 32px;
		font-size: 1.25rem;
	}

	.elsewhere {
		margin-top: 32px;
		padding-top: 32px;
	}
}
