:root {
	--text: #1a1a1a;
	--bg: #fdfdfd;
	--link: #2bbc8a;
	--font-serif: "EB Garamond", Georgia, serif;
	--font-sans: "Open Sans", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", "Fira Code", monospace;
	--lh: 1.7rem;
}

* {
	box-sizing: border-box;
}

html {
	font-family: var(--font-serif);
	font-size-adjust: ex-height 0.53;
	line-height: var(--lh);
}

body {
	max-width: 80ch;
	padding: 2ch;
	padding-bottom: 5rem;
	margin: 0 auto;
	color: var(--text);
	background: var(--bg);
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

header {
	margin-bottom: 2rem;
	text-align: center;
}

header a {
	color: #1a1a1a;
	font-size: 1.2rem;
}

header a:hover {
	color: #1a1a1a;
	text-decoration: underline;
}

footer {
	margin-top: 2rem;
	text-align: center;
}

h1,
h2,
h3 {
	font-family: var(--font-sans);
	font-weight: 300;
	color: var(--link);
	text-rendering: optimizeLegibility;
	text-wrap: balance;
	line-height: 1em;
}

h1,
h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

p {
	hyphens: auto;
	text-align: justify;
}

h1,
h2,
h3,
p,
pre,
table,
ul,
ol {
	margin-bottom: var(--lh);
}

img {
	max-width: 100%;
}

article > *,
article > section > * {
	max-width: 55ch;
}

article > section,
article > figure,
article > section > figure {
	max-width: 80ch;
}

article h1 {
	font-size: 2rem;
	margin-bottom: 0;
}

article time {
	display: block;
	color: #888;
	margin-bottom: 0.5rem;
}

code,
pre {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	font-variant-ligatures: none;
}

pre {
	overflow-x: auto;
	padding: 1rem;
	border-radius: 4px;
}

code {
	counter-reset: line;
}

.line {
	counter-increment: line;
}

.line::before {
	content: counter(line);
	display: inline-block;
	width: 3ch;
	padding-right: 0.5ch;
	margin-right: 1ch;
	text-align: right;
	opacity: 0.35;
	border-right: 1px solid currentColor;
	user-select: none;
}

.post-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.post-list li {
	margin-top: 1em;
}

.post-list time {
	display: block;
	color: #888;
	font-size: 0.9rem;
}

.post-list h2 {
	margin: 0;
}

.post-list a {
	color: var(--link);
	text-decoration: none;
}

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

.bottom-links {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 2rem;
	z-index: 10;
}

.bottom-links a {
	color: #1a1a1a;
}

.friends-list {
	list-style: none;
	padding: 0;
	display: flex;
	gap: 0.5rem;
}

.friends-list li {
	margin: 0;
}

.friends-list a {
	color: var(--link);
	text-decoration: none;
}

.friends-list a:hover {
	text-decoration: underline;
}

.tag {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

.tag a {
	color: #888;
	text-decoration: none;
}

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

.tag-list {
	list-style: none;
	padding: 0;
}

.tag-list li {
	margin-bottom: 0.5em;
}
