@import url('https://fonts.googleapis.com/css2?family=Libertinus+Serif:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

@font-face {
	font-family: 'Fira Code';
	src: url('/ttf/FiraCode-Light.ttf') format('truetype');
	font-weight: 300;
}

@font-face {
	font-family: 'Fira Code';
	src: url('/ttf/FiraCode-Regular.ttf') format('truetype');
	font-weight: 400;
}

@font-face {
	font-family: 'Fira Code';
	src: url('/ttf/FiraCode-Medium.ttf') format('truetype');
	font-weight: 500;
}

@font-face {
	font-family: 'Fira Code';
	src: url('/ttf/FiraCode-SemiBold.ttf') format('truetype');
	font-weight: 600;
}

@font-face {
	font-family: 'Fira Code';
	src: url('/ttf/FiraCode-Bold.ttf') format('truetype');
	font-weight: 700;
}


body
{
	padding-top: 2.6em;
	margin: 0;
	font-size: 0.4cm;
	font-family: "Libertinus Serif", serif;
	color: #333;
	width: calc(500/9)vw;
	overflow-x: hidden;
	zoom: calc(9/5);
	text-align: justify;
}

h3 a
{
	color: #333;
	text-decoration: none;
}

h3 a:hover
{
	text-decoration: underline;
}

code, pre
{
	font-family: "Fira Code", monospace;
}

nav
{
	position: fixed;
	top: 0;
	width: 100%;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5em;
	background: #d57fd5;
	border-bottom: #333 solid;
	height: 2.6em;
	max-height: 2.6em;
	overflow-y: hidden;
}

@media(max-width: 767px) {
	body
	{
		padding-top: 5.2em;
	}
	nav
	{
		height: 5.2em;
		max-height: 5.2em;
	}
}

nav a
{
	display: block;
	background-color: white;
	border-style: solid;
	border-width: 0.1em;
	border-color: #333;
	border-radius: 0.5em;
	padding: 0.5em;
	padding-bottom: 0.25em;
	height: 1.5em;
	text-wrap: nowrap;
	text-align: center;
	color: #333;
	text-decoration: none;
}

nav a:hover
{
	text-decoration: underline;
}

nav a.here:hover
{
	text-decoration: none;
}

header
{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	background-color: #810081;
	padding-top: 1.5em;
	padding-bottom: 1em;
	font-size: 1.5em;
	color: white;
	border-bottom: #333 solid;
	text-shadow: 0 0 0.1em black;
}

header img
{
	max-height: 5em;
}

main
{
	max-width: 45em;
	margin-left: auto;
	margin-right: auto;
	padding: 0.5em 1em;
}

.post-header
{
	width: 100%;
	height: 5em;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	padding-top: 1em;
	align-content: space-between;
}

.post-header .tags
{
	text-align: right;
}

.post
{
	padding-bottom: 1em;
}

.post a
{
	color: #333;
	text-decoration: none;
}

.post a:hover
{
	text-decoration: underline;
}

.post .header
{
	display: flex;
	justify-content: space-between;
}

.post .header h3
{
	margin: 0;
	padding: 0;
}

.date
{
	font-size: 0.8em;
	color: #777;
}

.post .summary
{
	margin-top: 0;
}

.tags
{
	display: flex;
	justify-content: flex-end;
	gap: 0.5em;
}

.tag
{
	background-color: #d57fd5;
	border-color: #333;
	border-width: 0.1em;
	border-radius: 0.5em;
	border-style: solid;
	padding: 0.25em;
	font-size: 0.8em;
	color: #333;
	text-decoration: none;
}

.tag:hover
{
	text-decoration: underline;
}

h2:has(.tag)
{
	display: inline-block;
	margin: 0.25em;
}

.more
{
	text-align: center;
	display: block;
	max-width: fit-content;
	padding: 0.25em 0.5em;
	margin-left: auto;
	margin-right: auto;
	border-color: #333;
	border-width: 0.1em;
	border-style: solid;
	border-radius: 0.5em;
	color: #333;
	text-decoration: none;
}

.more:hover
{
	text-decoration: underline;
}

.typst p
{
	display: inline;
}

.inline-typst
{
	display: inline;
}

.block-typst
{
	text-align: center;
	padding: 1em;
}

footer
{
	width: 100%;
	text-align: center;
	font-size: 0.6em;
	color: #777;
	padding: 1em 0;
}