/* What every page shares: the colour tokens for light and dark, the box model, the page body, and
   the skip link and visually hidden text. Each page's own stylesheet comes after it, and nav.css
   (the top bar) last. */
:root {
	color-scheme: light;
	font-family: system-ui, sans-serif;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	--ink: #111;
	--paper: #fff;
	--muted: #555;
	--line: #d8d8d8;
	accent-color: var(--ink);
}

:root[data-theme='dark'] {
	color-scheme: dark;
	--ink: #ececec;
	--paper: #111;
	--muted: #a6a6a6;
	--line: #3a3a3a;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
	min-width: 320px;
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	color: var(--ink);
	background: var(--paper);
}

a, button, input { font: inherit; }

.skip-link, .visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 2;
	width: auto;
	height: auto;
	padding: 10px 14px;
	margin: 0;
	clip: auto;
	clip-path: none;
	color: var(--ink);
	background: var(--paper);
	outline: 2px solid var(--ink);
}
