html{
	height: 100%;
}

body {
	background-color: #efefef;
	color: #292a2c;
	font-family: Georgia, serif;
	font-size: 18px;
	margin: 0 auto;
	height: 100%;
	line-height: 1.6em;
}

main {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: space-evenly;
	min-height: calc(100vh - (75px + 4em));
	padding: 0 15px;
}

#bio {
	display: flex;
	align-items: center;
}

.headshot {
	max-width: 400px;
	border-radius: 100%;
	margin: 2em;
}

img {
	width: 100%;
}

#bio-text {
	min-width: 60%;
}

#bio-text a {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	margin: 0;
	font-family:  "EB Garamond", Georgia, serif !important;
}

#bio-city {
	margin: 0;
	font-style: italic;
}

footer {
	padding: 2em;
	font-size: 14px;
	color: #555;
	height: 30px;
	display:flex;
	justify-content: space-between;
}

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

.clicky{
	display: inline-block;
	border: 1px solid black;
	padding: 0.8em;
	margin: 1em;
	border-radius: 5px;
	transition: color 0.3s, background-color 0.3s;
	background-color: #222;
	color: #eee;
}

.clicky:hover {
	background-color: transparent;
	color: black;
}

.clicky:after {
	margin-left: 0.5em;
	content: "→";
}

#contact {
	text-align: center;
}

header {
	display:flex;
	justify-content: space-between;
	height: 30px;
	padding: 15px;
}

:lang(ja) {
	font-family: 'Hiragino Mincho Pro', serif;
}

:lang(zh-Hant-TW) {
	font-family: "Songti TC", "PMingLiU", serif;
}

:lang(zh-Hans-SG) {
	font-family: "Songti SC", "SimSun", serif;
}

#sitetitle {
	padding: 0.5em 0 1em 1em;
}

.translation {
	padding: 0.5em;
	font-size: 80%;
	color: #555;
}

.translation:hover {
	background-color: #eee;
	color: black;
}

.metadata {
	margin-left: 1em;
	font-size: 80%;
	opacity: 80%;
}

/* we want the .redacted class to have a background image extend beyond the text */
/* to do this we're going to use the ::after pseudo-element */
.redacted {
	position: relative;
	margin: 0 0.2em;
}

.redacted::before {
	background: url('/redacted.svg');
	background-size: 100% 100%;
	content: '';
	display: inline-block;
	height: 1em;
	width: calc(100% + 0.4em);
	height: 100%;
	position: absolute;
	left: -0.2em;
	top: 0;
	cursor: text;
	filter: invert(100%);
}

@media only screen and (max-width: 600px) {
	#bio {
		flex-flow: column;
	}
	#bio-namecity{
		text-align: center;
	}

	.translation {
		padding: 0;
	}
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: #292a2c;
		color: #efefef;
	}

	a {
		color: white;
	}

	.clicky{
	background-color: #eee;
	color: #222;
	}
	.clicky:hover {
		background-color: #1c1c1c;
	color: white;
	}

	.redacted::before {
		filter: invert(0%);
	}
}
