:root {
	--vermilion: rgb(227 66 52);
	--tyrian: #66023C;
	--silver: #C0C0C0;
	--gold: #D4AF37;
	--indigo: #00416A;
}

html {
	height: 100%;
}

body {
	display: flex;
	align-items: center;
	flex-direction: column;
	background: white;
	margin: 0;
	min-height: 100%;
}

body > div {
	box-sizing: border-box;
	margin-bottom: 50px;
	max-width: 1440px;
	font-size: 22px;
	padding-right: 20px;
	padding-left: 20px;
}

body > div:first-child, body > div:last-child {
	width: 100%;
	max-width: unset;
}

body > div:first-child {
	display: flex;
	flex-direction: row;
	background: white;
	padding-left: 20px;
	padding-right: 10px;
	box-shadow: 0px 1px 2px var(--silver);
	line-height: 1.5em;
	flex-wrap: wrap;
	--pad: 20px;
	> a {
		color: black;
		font-weight: bold;
		font-size: 28px;
		display: flex;
		align-items: center;
		padding-bottom: var(--pad);
		padding-top: var(--pad);
	}
	a {
		text-decoration: none;
		color: black;
	}
	> label, > input {
		display: none;
	}
	> nav {
		display: flex;
		flex-direction: row;
		flex-grow: 1;
		justify-content: end;
		box-sizing: border-box;
		> a {
			height: auto;
			font-weight: normal;
			position: relative;
			align-content: center;
			box-sizing: border-box;
			/* Set same margin top as border bottom
			 * so that text still line up
			 * with siblings of parent. */
			margin-top: 5px;
			border-bottom-width: 5px;
			border-bottom-style: solid;
			border-bottom-color: transparent;
			padding-right: 10px;
			padding-left: 10px;
		}
		> a:hover {
			border-color: var(--silver);
		}
		#current {
			border-color: var(--vermilion);
		}
	}
}

#logo {
	font-size: 40px;
	font-weight: bold;
	color: var(--vermilion);
	margin-right: 20px;
}

h1 {
	color: var(--vermilion);
	font-weight: bold;
	font-size: 38px;
}

h2 {
	color: var(--vermilion);
	font-weight: bold;
	font-size: 30px;
}

h1:first-child, h2:first-child {
	margin-top: 0;
}

h2::before {
	margin-right: 10px;
	content: "🜕";
	color: var(--silver);
}

h2.regulus::before  {
	content: "🜲";
}

h2.aquaregia::before {
	content: "🜆";
}

h2.hour::before {
	content: "🝮";
}

h3 {
	font-size: 24px;
	font-weight: bold;
}

a {
	color: var(--indigo);
}

p {
	margin-bottom: 0px;
	margin-top: 20px;
}

body > div:last-child {
	margin-bottom: 0;
	flex-grow: 1;
	background: var(--vermilion);
	color: white;
	padding: 20px;
	padding-bottom: 60px;
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: start;
	justify-content: center;
	a {
		color: white;
		text-decoration: none;
	}
	a:hover {
		text-decoration: underline;
	}
	> div {
		display: flex;
		flex-direction: column;
		width: 300px;
		> * {
			font-size: 18px;
			line-height: 1.5em;
		}
		> *:first-child {
			font-weight: bold;
			font-size: 22px;
			margin-bottom: 10px;
		}
	}
	> div:not(:last-child) {
		margin-right: 50px;
	}
}

.tiles {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	> div {
		font-size: 18px;
		flex-basis: 0;
		flex-grow: 1;
		max-width: 440px;
		min-width: 350px;
		height: 300px;
		vertical-align: top;
		padding: 20px;
		box-sizing: border-box;
		box-shadow: 0px 0px 10px var(--silver);
		border-radius: 10px;
		margin-bottom: 20px;
		margin-left: 10px;
		margin-right: 10px;
		> h2 {
			font-size: 24px;
		}
	}
	> div:hover {
		box-shadow: 0px 0px 40px var(--silver);
	}
	> div > h2 > a {
		text-decoration: none;
		color: var(--vermilion);
	}
}

.tiles > div:hover > h2 > a {
	text-decoration: underline;
}

body > div:nth-child(2) > div:first-child {
	font-size: 28px;
}

.nobr {
	white-space: pre;
}

.split {
	display: grid;
	grid-template-columns: 1fr min-content;
	grid-template-rows: min-content 1fr;
	width: 100%;
	> h1 {
		grid-row: 1;
		grid-column: 1;
		height: min-content;
	}
	> div {
		hyphens: auto;
		text-align: justify;
	}
	div:not(:last-child) {
		margin-right: 50px;
		font-size: 28px;
	}
	> div:last-child {
		margin: 0;
		grid-column: 2;
		grid-row-start: 1;
		grid-row-end: 3;
	}
}

#caduceus,
#sulphur, #oursulphur,
#mercury,
#earth,
#salt,
#sagittarius {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: end;
	color: var(--vermilion);
	text-shadow: 10px 20px 10px var(--silver);
	overflow: hidden;
	box-sizing: border-box;
	font-size: 400px;
	width: 400px;
	animation: 1s ease-out normal 1 forwards rise-my-friend;
	user-select: none;
}

@keyframes rise-my-friend {
	from {
		text-shadow: 0px 0px 0px var(--silver);;
		font-size: 375px;
	}
}

#caduceus {
	height: 400px;
	line-height: 450px;
}

#sulphur, #oursulphur {
	line-height: 400px;
	height: 350px;
}

#mercury {
	line-height: 500px;
	height: 400px;
}

#earth {
	line-height: 400px;
	height: 350px;
}

#salt {
	line-height: 450px;
	height: 400px;
}

#sagittarius {
	line-height: 450px;
	height: 400px;
}

.timeline {
	display: grid;
	grid-template-columns: min-content 1fr;
	margin-left: 80px;
	> * {
		margin: 0;
		padding: 20px;
	}
	> h3 {
		text-align: end;
		align-self: start;
		border-right: 2px solid var(--vermilion);
		height: 100%;
		box-sizing: border-box;
	}
	> div {
		align-self: start;
	}
}

#contact {
	display: flex;
	background: var(--vermilion);
	color: white;
	width: min-content;
	padding: 40px;
	border-radius: 20px;
	align-items: center;
	justify-content: center;
	margin-bottom: 50px;
	box-shadow: 0px 0px 10px var(--silver);
	font-size: 30px;
	box-sizing: border-box;
	margin-top: 50px;
	margin-bottom: 100px;
}

#contact:hover {
	box-shadow: 0px 0px 40px var(--silver);
}

.segment {
	display: flex;
	flex-direction: row;
	width: 100%;
	font-size: 22px;
	align-items: first baseline;
	> h2:first-child {
		font-size: 26px;
		flex-grow: 0;
		flex-shrink: 0;
		flex-basis: 250px;
		text-align: right;
		margin-right: 50px;
	}
	> *:nth-child(2) {
		flex-grow: 1;
		hyphens: auto;
		text-align: justify;
	}
}

li {

}

*:target h2 {
	animation: 1s linear 10 alternate glow;
}

@keyframes glow {
	from {
		text-shadow: none;
	}
	to {
		text-shadow: 0px 0px 10px var(--gold);
	}
}

#expertises > div:last-child > p {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, min-content));
}

@media (max-width: 1000px) {
	body > div:first-child {
		padding-right: 20px;
		> label {
			display: flex;
			flex-direction: column;
			flex-grow: 1;
			align-items: end;
			justify-content: center;
			> div {
				background: black;
				width: 30px;
				height: 5px;
			}
			> div:not(:last-child) {
				margin-bottom: 5px;
			}
		}
		> input:checked {
			~ label > div {
				background: var(--vermilion);
			}
			~ nav {
				display: flex;
			}
		}
		> nav {
			display: none;
			flex-direction: column;
			flex-basis: 100%;
			margin-right: 0;
			align-items: end;
			> a {
				padding-right: 20px;
				padding-top: 5px;
				padding-bottom: 5px;
				border-bottom: none;
				border-right-style: solid;
				border-right-width: 5px;
				border-right-color: transparent;
			}
			> a:last-child {
				margin-bottom: 10px;
			}
			> a:not(:last-child) {
				margin-right: 0;
			}
		}
	}

	h1 {
		font-size: 30px;
	}

	#caduceus,
	#sulphur, #oursulphur,
	#mercury,
	#earth,
	#salt,
	#sagittarius {
		font-size: 150px;
		width: 150px;
	}

	#caduceus {
		height: 160px;
		line-height: 220px;
	}

	#mercury {
		height: 170px;
		line-height: 220px;
	}

	#sulphur, #oursulphur {
		height: 160px;
		line-height: 185px;
	}

	#earth {
		height: 160px;
		line-height: 180px;
	}

	#salt {
		height: 150px;
		line-height: 175px;
	}

	#sagittarius {
		height: 160px;
		line-height: 180px;
	}

	@keyframes rise-my-friend {
		from {
			text-shadow: 0px 0px 0px var(--silver);
			font-size: 145px;
		}
	}

	.split {
		grid-template-columns: 1fr min-content;
		grid-template-rows: min-content 1fr;
		width: 100%;
		> h1 {
			align-self: center;
			grid-row: 1;
			grid-column: 1;
			height: min-content;
		}
		div:not(:last-child) {
			margin-right: 0;
			font-size: 22px;
			grid-row: 2;
			grid-column-start: 1;
			grid-column-end: 3;
		}
		> div:last-child {
			grid-column: 2;
			grid-row: 1;
		}
	}

	.tiles {
		flex-direction: column;
		width: 100%;
		> div {
			max-width: unset;
			min-width: unset;
			height: unset;
		}
	}

	.timeline {
		grid-template-columns: 100%;
		margin-left: 0px;
		> h3 {
			text-align: start;
			align-self: start;
			border-right: none;
			border-radius: 10px;
			border-left: 2px solid var(--vermilion);
			height: 100%;
			box-sizing: border-box;
		}
	}

	.segment {
		flex-direction: column;
		> h2:first-child {
			font-size: 26px;
			flex-basis: unset;
			text-align: left;
			margin-right: 0;
		}
	}

	#contact {
		font-size: 24px;
		padding: 20px;
	}

	body > div:last-child {
		flex-direction: column;
		> div {
			margin-right: 0;
		}
		> div:not(:last-child) {
			margin-bottom: 50px;
		}
		a {
			text-decoration: underline;
		}
	}
}

@font-face {
	font-family: "noto";
	src:
		local(NotoSerif-Regular),
		url(fonts/NotoSerif-Regular.woff2) format(woff2);
	font-weight: 1 500;
	font-style: normal;
	unicode-range: U+0000-017F, U+0300-036F, U+0400-04FF;
}

@font-face {
	font-family: "noto";
	src:
		local(NotoSerif-Italic),
		url(fonts/NotoSerif-Italic.woff2) format(woff2);
	font-style: italic;
	unicode-range: U+0000-017F, U+0300-036F, U+0400-04FF;
}

@font-face {
	font-family: "noto";
	src:
		local(NotoSerif-Bold),
		url(fonts/NotoSerif-Bold.woff2) format(woff2);
	font-weight: 501 1000;
	font-style: normal;
	unicode-range: U+0000-017F, U+0300-036F,
		U+0370-03FF, U+1F00-1FFF,
		U+0400-04FF;
}

@font-face {
	font-family: "noto";
	src:
		local(NotoSansSymbols-Regular),
		url(fonts/NotoSansSymbols-Regular.woff2) format(woff2);
	font-weight: 1 500;
	unicode-range: U+2624, U+2650, U+263F,
		U+1F713, U+1F715, U+1F732, U+1F76E,
		U+1F70D, U+1F70E, U+1F703, U+1F706;
}

@font-face {
	font-family: "noto";
	src:
		local(NotoSansSymbols-Bold),
		url(fonts/NotoSansSymbols-Bold.woff2) format(woff2);
	font-weight: 501 1000;
	unicode-range: U+2624, U+2650, U+263F,
		U+1F713, U+1F715, U+1F732, U+1F76E,
		U+1F70D, U+1F70E, U+1F703, U+1F706;
}

@font-face {
	font-family: "noto-mono";
	src:
		local(NotoMono-Regular),
		url(fonts/NotoMono-Regular.woff2) format(woff2);
	unicode-range: U+0000-007F;
}

body {
	font-family: "noto";
}

#contact, .finger {
	font-family: "noto-mono";
}
