html * {
	box-sizing: border-box;
}
:root {
	--primary-color: #7b3053;
	--secondary-color: #fff9ea;
	--tertiary-color: #ffa2a5;
	--darken4: #0004;
	--primary-color-darkmode: #170049;
	--secondary-color-darkmode: #c8c8e0;
	--tertiary-color-darkmode: #f7cff7;
	--lighten4: #fff4;
	--lighten8: #fff8;
}
body {
	font-family: system-ui, sans-serif;
	font-size: 100%;
	line-height: 135%;
	background-color: var(--primary-color);
	color: var(--secondary-color);
}
h1 {
	text-align: center;
	position: relative;
	animation: arrive 0.25s both;
	font-size: 400%;
}
ul.topnav {
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
}
ul.topnav>li {
	animation: arrive 0.25s 0.25s both;
	position: relative;
}
.topnav a {
	transition: all 0.25s ease-out;
	display: inline-block;
}
.topnav a:link {
	padding: 0.5em 2em;
	background-color: var(--darken4);
}
.topnav a:hover {
	background-color: var(--lighten4);
	text-shadow: 2px 2px var(--darken4);
	transform: scale(120%);
}
a {
	color: var(--tertiary-color);
}
main {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
	gap: 3em;
}
main section {
	position: relative;
}
section.first {
	animation: arrive 0.25s 0.5s both;
}
section.second {
	animation: arrive 0.25s 0.75s both;
}
section.third {
	animation: arrive 0.25s 1s both;
}
@keyframes arrive {
	from {
		opacity: 0;
		top: 2em;
	}
	to {
		opacity: 1;
		top: 0;
	}
}
@media (prefers-color-scheme: dark) {
	body {
		background-color: var(--primary-color-darkmode);
		color: var(--secondary-color-darkmode);
	}
	a {
		color: var(--tertiary-color-darkmode);
	}
	.topnav a:link {
		background-color: var(--lighten4);
	}
	.topnav a:hover {
		background-color: var(--lighten8);
	}
}