: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;
}

#bar, #foot {
	width: 100%;
	max-width: unset;
}

#bar {
	display: flex;
	flex-direction: row;
	background: white;
	--pad: 20px;
	--halfpad: calc(var(--pad)/2);
	padding-left: var(--pad);
	padding-right: var(--halfpad);
	box-shadow: 0px 1px 2px var(--silver);
	flex-wrap: wrap;
}

#bar > a:first-child {
	line-height: 1em;
	font-size: 40px;
	font-weight: bold;
	color: var(--vermilion);
	margin-right: var(--pad);
}

#bar > a {
	color: black;
	font-weight: bold;
	font-size: 28px;
	display: flex;
	align-items: center;
	padding-bottom: var(--pad);
	padding-top: var(--pad);
}

#bar a {
	text-decoration: none;
	color: black;
}

#bar > label,
#bar > input {
	display: none;
}

#bar > nav {
	display: flex;
	flex-direction: row;
	flex-grow: 1;
	justify-content: end;
	box-sizing: border-box;
}

#bar > nav > 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: var(--halfpad);
	padding-left: var(--halfpad);
}

#bar > nav > a:hover {
	border-color: var(--silver);
}

#bar > nav > #current {
	border-color: var(--vermilion);
}

#bar > #country {
	display: flex;
	flex-direction: row;
	margin-left: var(--halfpad);
	padding-right: var(--halfpad);
	align-items: stretch;
}

#bar > #country > button {
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 0;
	border: none;
	font-size: 22px;
	cursor: pointer;
	background: transparent;
}

#bar > #country > button > span:first-child {
	font-size: 40px;
	line-height: 1em;
	margin-right: 5px;
}

#bar > #country > button:focus {
	color: var(--vermilion);
}

#bar > #country > nav {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: end;
	background: white;
	box-shadow: 0px 0px 10px var(--silver);
	padding: 20px;
	border-radius: 20px;
	top: calc(1.5em + 3 * var(--pad));
	right: var(--pad);
	visibility: hidden;
}

#bar > #country > nav > a {
	display: flex;
	flex-direction: row;
	align-items: center;
}

#bar > #country > nav > a:not(:last-child) {
	margin-bottom: 20px;
}

#bar > #country > nav > a:hover {
	text-decoration: underline;
}

#bar > #country > nav img {
	height: 2em;
	margin-left: 10px;
}

#bar > #country > button:focus ~ nav,
#bar > #country > nav:hover,
#bar > #country > nav:active {
	visibility: visible;
}

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

h2 {
	color: var(--vermilion);
	font-weight: bold;
	font-size: 26px;
	margin-bottom: 20px;
}

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

h2::before {
	line-height: 1;
	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;
}

#foot {
	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;
}

#foot a {
	color: white;
	text-decoration: none;
}

#foot a:hover {
	text-decoration: underline;
}

#foot > div {
	display: flex;
	flex-direction: column;
	width: 300px;
}

#foot > div > * {
	font-size: 18px;
	line-height: 1.5em;
}

#foot > div > *:first-child {
	font-weight: bold;
	font-size: 22px;
	margin-bottom: 10px;
}

#foot > div:not(:last-child) {
	margin-right: 50px;
}

.tiles {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.tiles > div {
	font-size: 20px;
	flex-basis: 0;
	flex-grow: 1;
	max-width: 440px;
	min-width: 350px;
	min-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;
}

.tiles > div > h2 {
	font-size: 24px;
}

.tiles > div:hover {
	box-shadow: 0px 0px 40px var(--silver);
}

.tiles > 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%;
}

.split > h1 {
	grid-row: 1;
	grid-column: 1;
	height: min-content;
}

.split > div {
	hyphens: auto;
	text-align: justify;
}

.split > div:not(:last-child) {
	margin-right: 50px;
	font-size: 28px;
}

.split > div:last-child {
	margin: 0;
	grid-column: 2;
	grid-row-start: 1;
	grid-row-end: 3;
}

#caduceus,
#sulphur, #oursulphur,
#mercury,
#earth,
#salt,
#sagittarius,
#crucible {
	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 arise;
	user-select: none;
}

@keyframes arise {
	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;
}

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

.timeline {
	display: grid;
	grid-template-columns: min-content 1fr;
	margin-left: 80px;
}

.timeline > * {
	margin: 0;
	padding: 20px;
}

.timeline > h3 {
	text-align: end;
	align-self: start;
	border-right: 2px solid var(--vermilion);
	height: 100%;
	box-sizing: border-box;
}

.timeline > 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;
}

.segment > h2:first-child {
	flex-grow: 0;
	flex-shrink: 0;
	flex-basis: 250px;
	text-align: right;
	margin-right: 50px;
}

.segment > *:nth-child(2) {
	flex-grow: 1;
	hyphens: auto;
	text-align: justify;
}

.segment: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: 1300px) {
	#bar {
		margin-bottom: 25px;
		padding-right: var(--pad);
		font-size: 22px;
	}

	#bar > a:first-child {
		font-size: 40px;
		flex-grow: 1;
		flex-basis: 0;
		margin-right: 0;
	}

	#bar > a:nth-child(2) {
		font-size: 28px;
	}

	#bar > label {
		display: flex;
		flex-direction: column;
		flex-grow: 1;
		flex-basis: 0;
		align-items: end;
		justify-content: center;
	}

	#bar > label > span {
		background: black;
		width: 30px;
		height: 5px;
	}

	#bar > label > span:not(:last-child) {
		margin-bottom: 5px;
	}

	#bar > label:hover {
		cursor: pointer;
	}

	#bar > input:checked ~ label > span {
		background: var(--vermilion);
	}

	#bar > input:checked ~ nav,
	#bar > input:checked ~ #country {
		display: flex;
	}

	#bar > nav {
		display: none;
		flex-direction: column;
		flex-basis: 100%;
		margin-right: 0;
		align-items: end;
		margin-bottom: 10px;
	}

	#bar > nav > a {
		margin-top: 0;
		padding-right: 20px;
		padding-top: 5px;
		padding-bottom: 5px;
		border-bottom: none;
		border-right-style: solid;
		border-right-width: 5px;
		border-right-color: transparent;
	}

	#bar > nav > a:not(:last-child) {
		margin-right: 0;
	}

	#bar > #country {
		display: none;
		flex-basis: 100%;
		align-items: end;
		flex-direction: column;
		padding-right: 20px;
		margin-right: 5px;
	}

	#bar > #country > * {
		margin-bottom: 10px;
	}

	#bar > #country > button {
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#bar > #country > button > span:first-child {
		order: 1;
		margin-left: 10px;
		font-size: 34px;
		margin-right: 0;
	}

	#bar > #country > nav {
		display: flex;
		position: unset;
		flex-direction: column;
		align-items: stretch;
		background: white;
		box-shadow: none;
		top: unset;
		padding: 0;
		border-radius: 0;
		overflow-x: hidden;
		overflow-y: scroll;
		width: 100%;
		visibility: collapse;
	}

	#bar > #country > nav > a {
		justify-content: end;
		padding-top: 5px;
		padding-bottom: 5px;
	}

	#bar > #country > nav > a:not(:last-child) {
		margin-bottom: 0;
	}

	#bar > #country > nav img {
		height: 1em;
		margin-right: 0;
		margin-left: 10px;
	}

}

@media (max-width: 1000px) {
	body > div {
		font-size: 20px;
	}

	h1 {
		font-size: 30px;
	}

	h2 {
		font-size: 26px;
	}

	h3 {
		font-size: 22px;
	}

	#caduceus,
	#sulphur, #oursulphur,
	#mercury,
	#earth,
	#salt,
	#sagittarius,
	#crucible {
		font-size: 150px;
		text-shadow: 5px 10px 10px var(--silver);
	}

	#caduceus {
		width: 120px;
		height: 160px;
		line-height: 180px;
	}

	#mercury {
		width: 120px;
		height: 170px;
		line-height: 200px;
	}

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

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

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

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

	#crucible {
		width: 150px;
		height: 160px;
		line-height: 180px;
	}

	@keyframes arise {
		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%;
	}

	.split > h1 {
		align-self: center;
		grid-row: 1;
		grid-column: 1;
		height: min-content;
		text-align: center;
	}

	.split > div {
		hyphens: manual;
		text-align: start;
	}

	.split div:not(:last-child) {
		margin-right: 0;
		font-size: 22px;
		grid-row: 2;
		grid-column-start: 1;
		grid-column-end: 3;
	}

	.split > div:last-child {
		grid-column: 2;
		grid-row: 1;
	}

	.tiles {
		flex-direction: column;
		width: 100%;
	}

	.tiles > div {
		font-size: 18px;
		margin-left: 0;
		margin-right: 0;
		max-width: unset;
		min-width: unset;
		min-height: unset;
	}

	.tiles > div > h2 {
		font-size: 22px;
	}

	.timeline {
		grid-template-columns: 100%;
		margin-left: 0px;
	}

	.timeline > 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 {
		font-size: 20px;
		flex-direction: column;
	}

	.segment > h2:first-child {
		flex-basis: unset;
		text-align: left;
		margin-right: 0;
	}

	.segment > *:nth-child(2) {
		text-align: left;
		hyphens: manual;
	}

	#contact {
		font-size: 22px;
		padding: 20px;
		margin-top: 0;
		margin-bottom: 50px;
	}

	#foot {
		flex-direction: column;
	}

	#foot > div {
		margin-right: 0;
		width: unset;
	}

	#foot > div:not(:last-child) {
		margin-bottom: 50px;
	}

	#foot a {
		text-decoration: underline;
	}

	.finger {
		hyphens: none;
		overflow-wrap: anywhere;
	}
}

@media (max-width: 400px) {
	#bar,
	#bar > a:nth-child(2) {
		font-size: 26px;
	}
	h1 {
		font-size: 24px;
	}
	h2,
	.tiles > div > h2 {
		font-size: 22px;
	}
	h3 {
		font-size: 20px;
	}
	.split div:not(:last-child),
	.segment,
	body > div,
	.tiles > div {
		font-size: 16px;
	}
	#contact {
		font-size: 20px;
	}
}

@media (max-width: 350px) {
	#bar {
		--pad: 10px;
	}
	#bar,
	#bar > a:nth-child(2) {
		font-size: 20px;
	}
	h1 {
		font-size: 20px;
	}
	h2,
	.tiles > div > h2 {
		font-size: 18px;
	}
	h3 {
		font-size: 16px;
	}
	.split div:not(:last-child),
	.segment,
	body > div,
	.tiles > div {
		font-size: 14px;
	}
	#contact {
		font-size: 18px;
	}
	#foot > div > *:first-child {
		font-size: 18px;
	}
	#foot > div > * {
		font-size: 16px;
	}
}

@media (max-width: 325px) {
	h1 {
		font-size: 18px;
	}
}

@font-face {
	font-family: "noto";
	src:
		local(NotoSerif-Regular),
		url("fonts/NotoSerif-Regular.woff2") format("woff2"),
		url("fonts/NotoSerif-Regular.ttf") format("truetype");
	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"),
		url("fonts/NotoSerif-Italic.ttf") format("truetype");
	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"),
		url("fonts/NotoSerif-Bold.ttf") format("truetype");
	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:
		url("fonts/NotoSansSymbols-Regular.woff2") format("woff2"),
		url("fonts/NotoSansSymbols-Regular.ttf") format("truetype");
	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,
		U+1F765;
}

@font-face {
	font-family: "noto";
	src:
		url("fonts/NotoSansSymbols-Bold.woff2") format("woff2"),
		url("fonts/NotoSansSymbols-Bold.ttf") format("truetype");
	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,
		U+1F765;
}

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

body, button {
	font-family: "noto";
}

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