/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Site styles: sizing and readability only */

html {
	color-scheme: light dark;
	/* System colours: follow light/dark mode and let tools measure contrast */
	background-color: Canvas;
	color: CanvasText;
	font-family: system-ui, sans-serif;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	max-width: 42rem;
	margin: 0 auto;
	padding: 1rem;
	line-height: 1.5;
}

/* Keep the footer at the bottom of the window on short pages */
body {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	min-height: 100vh;
	min-height: 100dvh;
}
main {
	flex: 1;
}

h1, h2, h3 {
	margin-block: 1.5em 0.5em;
	font-weight: bold;
	line-height: 1.2;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p, ul, ol, pre, blockquote {
	margin-block: 1em;
}

/* The reset removes list markers, which also hides lists from VoiceOver in Safari */
main ul, main ol {
	padding-inline-start: 1.5em;
}
main ul { list-style: disc; }
main ol { list-style: decimal; }

strong, b { font-weight: bold; }
em, i, cite { font-style: italic; }

code, pre {
	font-family: ui-monospace, monospace;
}
pre {
	overflow-x: auto;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Home page: portrait with the name underneath */
.intro {
	margin-block: 1.5rem;
}
.intro img {
	display: block;
}
.intro h1 {
	margin: 0.75rem 0 0;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

footer {
	margin-top: 3rem;
}

.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
