:root {
	font-family: 'Merriweather', serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	color-scheme: light dark;

	--color: black;
	--color-light: #888;
	--accent: #1175da;
	--background: white;
}

* {
	box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color: #DDD;
		--color-light: #AAA;
		--background: #222;
	}
}

body {
	max-width: 38em;
	margin-inline: auto;
	padding-inline: 1rem;
	text-align: justify;
	color: var(--color);
	background: var(--background);
	margin-bottom: 10rem;
}

h1 {
	font-size: min(3em, calc(9vw + 2px));
	color: var(--accent);
	text-align: center;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
	text-decoration-thickness: 0.07em;
}

#tagline {
	color: var(--accent);
	font-weight: 600;
	text-align: center;
	text-wrap: balance;
}

#logo {
	position: fixed;
	top: 2rem;
	left: 2rem;
	width: 5rem;
}

@media (max-width: 740px) {
	#header {
		display: flex;
	}

	#logo {
		position: unset;
		width: calc(20vw - 15px);
	}

	h1 {
		font-size: calc(7vw + 1px);
		flex-grow: 1;
	}
	/* #logo {
		position: absolute;
		top: 1.3rem;
		left: 1.3rem;
		width: 4rem;
	}
	body {
		margin-top: 1.5rem;
	}

	h1 {
		font-size: calc(10vw - 15px);
		text-align: right;
		margin-right: 0.5rem;
	} */
}

@keyframes contact-scroll {
	from {
		font-size: 1em;
	}

	to {
		font-size: 1.2em;
	}
}

#contact {
	text-align: center;
	animation-name: contact-scroll;
	animation-direction: alternate;
	animation-timeline: scroll(block nearest);
	margin-top: 3rem;
	font-size: 1.2em;
}

#contact * {
	margin-block: 0.5em;
	font-size: 1em;
}
