* {
	font-size: inherit;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	font-family: "Roboto";
	
	--accent-color: hsl(190, 100%, 50%);
	--secondary-accent-color: hsl(300, 100%, 40%);
	--bg-very-light: hsl(200, 18%, 16%);
	--bg-light: hsl(200, 18%, 12%);
	--bg-dark: hsl(200, 18%, 6%);
	
	min-height: 100vh;
	width: 100%;
	scroll-behavior: smooth;
}

body {
	display: flex;
	flex-direction: column;
	
	min-height: 100vh;
	width: 100%;
	
	color: white;
	background-color: var(--bg-light);
}

header {
	position: sticky;
	z-index: 1;
	
	font-size: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5em;
	
	padding: 2em;
	
	inset-block-start: 0;
	
	background-color: var(--bg-dark);
	
	box-shadow: 0em 0.1em 0.5em hsl(0, 0%, 10%);
}

h1 {
	position: relative;
	
	white-space: nowrap;
	
	color: hsl(200, 18%, 6%);
	
	font-size: 1.3em;
	
	user-select: none;
}

h1::before {
	content: "Alexander May";
	
	color: white;
	
	white-space: nowrap;
	
	position: absolute;
	
	inset-inline-start: 0;
	
	opacity: 0;
	
	transform: translateY(100%);
	
	pointer-events: none;
	
	transition:
		opacity 250ms ease-in-out 25ms,
		transform 250ms ease-in-out;
}

h1::after {
	content: "AM";
	
	color: white;
	
	white-space: nowrap;
	
	position: absolute;
	
	inset-inline-start: 0;
	
	pointer-events: none;
	
	transition:
		opacity 250ms ease-in-out 25ms,
		transform 250ms ease-in-out;
}

h1:hover::before {
	opacity: 1;
	
	transform: translateY(0);
	
	transition:
		opacity 250ms ease-in-out,
		transform 250ms ease-in-out 25ms;
}

h1:hover::after {
	opacity: 0;
	
	transform: translateY(-100%);
	
	transition:
		opacity 250ms ease-in-out,
		transform 250ms ease-in-out 25ms;
}

h2 {
	position: relative;
	
	font-size: 1.5em;
	margin-inline-start: 1em;
	margin-block-end: 0.5em;
}

h2::before {
	content: '»';
	
	position: absolute;
	
	left: -0.8em;
	
	color: var(--accent-color);
}

h3 {
	font-size: 1.1em;
	margin-block-end: 0.2em;
}

nav {
	margin-inline-start: auto;
	padding-inline: 1em;
}

nav > menu {
	list-style: none;
	display: flex;
	gap: 1em;
}

nav a {
	display: inline-block;
	
	color: var(--accent-color);
	text-decoration: none;
}

nav li {
	position: relative;
}

nav a::before {
	content: '';
	
	position: absolute;
	
	width: 100%;
	inset-block-end: -0.15em;
	
	border-block-end: 0.1em solid currentColor;
	
	transform: scaleX(0);
	transform-origin: right;
	
	transition: transform 200ms ease-in-out;
}

nav :is(a:hover, a.current)::before {
	transform: scaleX(1);
	transform-origin: left;
}

#language_select_button {
	background: transparent;
	
	color: var(--accent-color);
	
	border: none;
	
	border-radius: 0;
	
	& option {
		color: white;
		background-color: var(--bg-dark);
	}
}

main {
	display: flex;
	flex-direction: column;
	gap: 2.5em;
	
	font-size: 1.2rem;
	
	padding-block: 1.5em;
	padding-inline: 15%;
}

main a {
	color: var(--accent-color);
	line-break: anywhere;
}

main img {
	user-select: none;
}

section {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

main > section {
	position: relative;
	
	padding: 1.5em;
	
	background-image: radial-gradient(var(--bg-very-light) 1%, var(--bg-light));
	background-position: center;
	background-size: 100%;
	background-repeat: no-repeat;
	
	border: 0.1em solid var(--accent-color);
	border-radius: 0.25em;
	
	box-shadow: 0em 0em 0.5em var(--accent-color);
	
	transition: 200ms ease-out background-size;
}

main > section::before {
	content: "";
	
	position: absolute;
	
	inset: 0;
	
	opacity: 0;
	
	box-shadow: 0em 0em 0.5em 0.1em var(--accent-color);
	
	transition: 200ms ease-out opacity;
	
	pointer-events: none;
}

main > section:hover {
	background-size: 300%;
}

main > section:hover::before {
	opacity: 1;
}

#about {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

#about > * {
	grid-column: span 2;
}

#about h2 {
	grid-row: 1;
	grid-column: 1;
}

#about .card {
	grid-row: 1;
	grid-column: 2;
	
	justify-self: end;
}

#about .card img {
	border: 0.001em solid var(--secondary-accent-color);
	border-radius: 0.5em;
	
	box-shadow: 0em 0em 0.5em var(--secondary-accent-color);
}

main > section > ul li,
.inset {
	margin-inline-start: 1em;
}

.tags {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

#projects {
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

#projects > section + section::before {
	content: "";
	
	margin-bottom: 0.5em;
	
	height: 0.05em;
	
	background-color: var(--accent-color);
	
	box-shadow: 0em 0em 0.5em var(--accent-color);
}

#projects .description {
	display: grid;
	grid-template-columns: 2fr 3fr;
	grid-template-areas: "thumbnail text";
	gap: 1em;
	
	& > * {
		min-width: 0;
		min-height: 0;
	}
}

#projects .source {
	color: hsl(25, 100%, 50%);
	
	display: flex;
	gap: 0.5em;
	
	align-self: center;
}

#projects .thumbnail {
	grid-area: thumbnail;
	
	border: 0.1em solid hsl(50, 100%, 50%);
	border-radius: 0.5em;
	
	width: 100%;
	
	object-fit: cover;
	
	box-shadow: 0em 0em 0.5em hsl(50, 100%, 50%);
}

#projects .text {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	
	grid-area: text;
}

.taglist {
	display: flex;
	flex-direction: column;
	
	gap: 0.25em;
	
	flex-grow: 1;
}

.taglist ul {
	display: flex;
	flex-wrap: wrap;
	white-space: nowrap;
	gap: 0.5em;
	
	list-style: none;
}

.taglist li {
	--color: black;
	--bgcolor: white;
	
	color: var(--color);
	background-color: var(--bgcolor);
	
	padding: 0.15em;
	border-radius: 0.15em;
}

.taglist#languages li {
	--color: white;
	--bgcolor: red;
}

footer {
	font-size: 1.5rem;
	
	display: flex;
	justify-content: center;
	
	margin-block-start: auto;
	padding-block: 1em;
}

@media only screen and (width < 125rem) {
	
	#projects .description {
		grid-template-columns: 1fr 1fr;
	}
	
}

@media only screen and (width < 95rem) {
	
	#projects .description {
		flex-direction: column;
		grid-template-columns: 1fr;
		grid-template-areas: "thumbnail" "text";
	}
	
	#projects .thumbnail {
		place-self: center;
		width: 25em;
	}
	
}

@media only screen and (width < 80rem) {
		
	.tags {
		grid-template-columns: 1fr;
		gap: 0.75em;
	}
	
}

@media only screen and (width < 62.5rem) {
	
	#projects .thumbnail {
		width: 100%;
	}
	
	#projects .source {
		align-self: start;
		
		flex-wrap: wrap;
	}
	
}

@media only screen and (width < 30rem) {
	
	header {
		font-size: 0.75rem;
	}
	
	main {
		padding-inline: 0.5em;
	}
	
}

@media only screen and (width < 23rem) {
	
	header {
		flex-direction: column;
		gap: 0.75em;
	}
	
	h1 {
		align-self: start;
	}
	
	nav {
		margin-inline-start: 0;
	}
	
}