/* https://adactio.com/journal/21896 */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

@font-face {
	font-family: Droid Serif;
	src: url("/assets/fonts/DroidSerif-Regular.woff") format("woff2");
	font-style: normal;
	font-weight: normal;
	text-rendering: optimizeLegibility;
}

@font-face {
	font-family: Droid Serif;
	src: url("/assets/fonts/DroidSerif-Bold.woff") format("woff2");
	font-weight: 700;
}

@font-face {
	font-family: Droid Serif;
	src: url("/assets/fonts/DroidSerif-Italic.woff") format("woff2");
	font-style: italic;
}

@font-face {
	font-family: Droid Serif;
	src: url("/assets/fonts/DroidSerif-BoldItalic.woff") format("woff2");
	font-weight: 700;
	font-style: italic;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family:
		Droid Serif,
		var(--pico-font-family-sans-serif);
}

html {
	background-image: url(/assets/img/grain-light.png);
	background-repeat: repeat;
	background-color: hsl(32, 32%, 95%);
	/* Background color of Helix `flatwhite` theme */

	@media (prefers-color-scheme: dark) {
		background-image: url(/assets/img/grain-dark.png);
		background-color: hsl(0, 0%, 13%);
	}
}

body > header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-block-end: 2rem;
}

body > main {
	--pico-block-spacing-vertical: 3rem;
}

nav li :where(a, [role="link"]) {
	margin: 0;
	padding: 0;
}

.logo {
	font-size: 1.2rem;
	font-weight: bold;
}

*:not(figure) > a:not(.button) {
	color: black;
	border-block-end: 0.25rem solid rgb(0 0 0 / 20%);
	border-radius: 0;
	transition: all 0.2s ease-in-out;
	text-decoration: none;

	&:hover {
		border-color: rgb(0 0 0 / 50%);
	}

	@media (prefers-color-scheme: dark) {
		color: white;
		border-color: rgb(255 255 255 / 20%);

		&:hover {
			border-color: rgb(255 255 255 / 50%);
		}
	}
}

body > footer {
	opacity: 0.5;
	margin-block-end: 3rem;
}
