@font-face {
	font-family: 'Charter';
	src: url('/charter_regular.woff') format('woff'),
		url('/charter_bold.woff') format('woff'),
		url('/charter_italic.woff') format('woff'),
		url('/charter_bold_italic.woff') format('woff');
	font-display: fallback;
}

body {
	max-width: 100ch;
	margin: 0 auto;
	padding: 0 1em;
	font-family: "Charter";
	background: #fffbeb;
	line-height: 1.5;
	font-size: 1.25em;
	text-decoration-skip-ink: none;
}

h1,
nav {
	border-color: #333;
}

h1 {
	border-bottom-width: 4px;
	border-bottom-style: solid;
}

nav {
	border-top-width: 4px;
	border-top-style: solid;
	clear: both;

	ol {
		padding-left: 0;

		li {
			display: inline;
			margin: 0;

			&:after {
				content: "/";
				margin: 0 1ch;
				font-weight: bold;
				opacity: 0.5
			}

			&:last-child:after {
				display: none;
				content: "";
			}
		}
	}
}

hr {
	clear: both;
}

article>time {
	display: block;
	text-align: right;
}

aside {
	font-style: italic;
	float: right;
	max-width: 25ch;
	font-size: 0.9em;
	text-align: left;
	padding: 0 1em;
}

@media(max-width: 600px) {
	aside {
		float: none;
		max-width: fit-content;
	}
}

pre {
	background: #282828;
	color: #d8d8d8;
	padding: 2em;
	clear: both;
	border-radius: 3px;
	overflow-x: scroll;
	font-size: 0.75em;
}

a {
	color: #005;

	&:active {
		color: #777;
	}

	&:hover {
		color: #0366d6;
	}

	&:visited {
		color: #444;
	}
}

#posts {
	list-style-type: none;
	padding: 0;
	display: flex;
	gap: 0.5em;
	flex-direction: column;

	li {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: baseline;

		a {
			flex-grow: 1;
		}

		time {
			font-size: 0.8em;
		}
	}
}

blockquote {
	margin: 0 2em;
	font-size: 0.9em;
	line-height: 1.25;
	color: #333;
}

article img {
	display: block;
	max-width: 100%;
	border-radius: 3px;
	max-height: 75vh;
}

article a.img {
	display: block;
}

article>img,
figure>img,
a.img>img {
	margin: 0 auto 1em auto;
}

img.big {
	max-width: 100%;
	max-height: inherit;
}

figcaption {
	color: #444;
	text-align: center;
	font-style: italic;
}

figcaption p {
	margin: 0.5em 0;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	margin-bottom: 1em;
}

.gallery>* {
	max-width: calc(50% - 0.25em);
}

/* yt embeds */
.yt-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	/* 16:9 */
}

.yt {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}