html {
	font-family: sans-serif;
}
body {
	margin: 8px;
}
div.container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
a.logo, div.logoline {
	display: block;
	width: 100%;
	text-align: center;
	font-size: min(48px, 11vw);
	font-weight: bold;
}
a.logo {
	color: #000;
	text-decoration: none;
}
div.logoline {
	border-bottom: 4pt solid #e0e0e0;
	position: relative;
	top: -6px;
	left: -8px;
	width: 100vw;
	z-index: -1;
}
div.content {
	position: relative;
	width: 100%;
	max-width: 800px;
}
small.lastmod {
	font-size: 0.75em;
	color: #a0a0a0;
}
:not(pre) > code {
	white-space: nowrap;
}
code, div.highlight {
	font-size: 1.1em;
}
code, div.highlight, blockquote {
	background: #e0e0e0;
	border-radius: 3pt;
	padding-left: 3pt;
	padding-right: 3pt;
}
blockquote {
	padding: 8px;
	margin: 0;
}
blockquote p {
	margin: 0;
}
div.highlight {
	padding: 8px;
	max-height: 300px;
	line-height: 0.92em;
	overflow: auto;
}
pre.highlight {
	margin: 0;
	display: inline;
}
pre.highlight > code {
	font-size: 1em;
	padding: 0;
}
aside {
	border-left: 4pt solid #e0e0e0;
	padding-left: 0.5em;
	margin: 0;
}
table {
	margin: auto;
}
table, th, td {
	border: 1px solid #e0e0e0;
}
tbody tr:nth-child(odd) {
	background: #f0f0f0;
}
th, td {
	padding: 3pt;
}
sup {
	font-size: x-small;
}
a.footnote, a.reversefootnote {
	text-decoration: none;
}
a.reversefootnote {
	line-height: 0.85em;
}
sup > a.footnote::before {
	content: "[";
	margin-left: 1pt;
}
sup > a.footnote::after {
	content: "]";
}
hr, div.footnotes {
	margin-top: 0.5em;
	border-top: 2pt solid #e0e0e0;
	border-bottom: 0;
	border-left: 0;
	border-right: 0;
}
ol, ul {
	padding-inline-start: 25px;
}
li {
	margin: 0.25em 0;
}
li p {
	margin: 0;
}
@media only screen and (min-width: 940px) {
	a.logo, div.logoline {
		position: absolute;
		top: 0px;
		width: 48px;
		font-size: 48px;
		text-align: right;
		writing-mode: vertical-lr;
		transform: rotate(180deg);
	}
	a.logo {
		left: -58px;
	}
	div.logoline {
		left: -64px;
		top: -8px;
		height: max(100vh, calc(100% + 16px));
		overflow: hidden;
		border-bottom: 0;
		border-left: 5px solid #e0e0e0;
	}
}
@media only screen and (prefers-color-scheme: dark) {
	body {
		background: #000;
		color: #fff;
	}
	a {
		color: #00ffff;
	}
	a:visited {
		color: #00a0a0;
	}
	a.logo {
		color: #fff;
	}
	div.logoline {
		border-color: #808080;
	}
	code, div.highlight, blockquote {
		background: #404040;
	}
	aside {
		border-left-color: #808080;
	}
	table, th, td {
		border: 1px solid #404040;
	}
	tbody tr:nth-child(odd) {
		background: #202020;
	}
	hr, div.footnotes {
		border-top-color: #808080;
	}
}

div.project {
	overflow: hidden;
}
img.project-image {
	float: right;
	max-width: 25%;
	margin: 10pt 0pt 10pt 10pt;
}

div.bloglist > h3 {
	margin-bottom: 0.25em;
}
div.bloglist > h1 {
	margin-bottom: 0;
}
div.bloglist > p {
	margin-top: 0.25em;
}

figure {
	margin: 0;
}
img.image {
	display: block;
	margin: 0 auto;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
}
figcaption.image-caption {
	margin: 1em 0;
	text-align: center;
	font-style: italic;
}	
div.youtube {
	position: relative;
	overflow: hidden;
	max-width: 640px;
	margin: 0 auto;
	aspect-ratio: 16/9;
}
iframe {
	display: block;
	border: none;
}
iframe.youtube {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
}

div.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	grid-gap: 10px;
}
div.gallery-fit {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
div.gallery-grid > .gallery-thumb {
	display: flex;
	margin: 0;
}
figure.gallery-thumb > a, figure.gallery-thumb > a:hover, figure.gallery-thumb > a:visited, figure.gallery-thumb > a:active {
	color: inherit;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
}
figure.gallery-thumb > a > img {
	display: block;
	width: 100%;
	margin-bottom: 2pt;
}
