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

html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	color-scheme: light dark;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin-block-end: 0;
}

ul,
ol {
	&[role="list"] {
		list-style: none;
	}
}

body {
	min-height: 100vh;
	line-height: 1.5;
	display: flex;
	justify-content: center;
}

main {
	width: 100%;
	padding: 0.2rem;

	@media screen and (width > 900px) {
		width: 900px;
	}
}

header {
	margin: 3rem 0;
	display: flex;
	justify-content: space-between;
	align-items: end;
}

section {
	&.home {
		& ul {
			list-style: none;
			margin: 0px;
			padding: 0px;
		}
	}
}

article {
	> div {
		display: flex;
		justify-content: space-between;
		align-items: end;
	}
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-block: 2rem;
}

h1,
h2,
h3,
h4,
button,
input,
label {
	line-height: 1.1;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

h1 {
	font-size: 1.5rem;
}

h2 {
	font-size: 1.3rem;
}

p {
	font-size: 1.2rem;
}

hr {
	border-color: rgba(0, 0, 0, 0.1);
}

a {
	text-underline-offset: 3px;

	&:visited {
		color: LinkText;
	}
}

img,
picture {
	max-width: 100%;
	display: block;
}

pre {
	padding: 1rem;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

code {
	font-size: 0.8rem;
	overflow-wrap: anywhere;

	&:not(pre > code) {
		padding: 0.2em 0.3em;
		background: light-dark(rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
	}
}

input,
button,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

textarea {
	&:not([rows]) {
		min-height: 10em;
	}
}

:target {
	scroll-margin-block: 5ex;
}
