:root {
	--text: #f2f2f2;
	--text-muted: #b8bec6;
	--link: #a2d3e8;
	--link-visited: #f2bf99;
	--panel: #0d1117;
	--panel-border: #30363d;
	--font-heading: 'Fira Sans', sans-serif;
	--font-body: 'Ubuntu', sans-serif;
	--font-mono: 'Ubuntu Mono', ui-monospace, Menlo, monospace;
	--measure: 720px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background-color: #000;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: var(--font-body);
	line-height: 1.6;
	background-image: linear-gradient(45deg, #000 0%, #111 30%, #333 50%, #555 75%, #777 100%);
	background-size: 500% 500%;
	background-position: 100% 50%;
	background-attachment: fixed;
}

a {
	color: var(--link);
	text-decoration: none;
}
a:visited {
	color: var(--link-visited);
}
a:hover,
a:focus-visible {
	text-decoration: underline;
}

.wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.banner {
	text-align: center;
	padding-bottom: 10px;
}
.banner h1,
.banner h2 {
	margin: 0;
	font-family: var(--font-heading);
}
.banner h1 {
	font-size: 3em;
	margin-top: 5px;
	line-height: 1.5em;
}
.banner h1 a,
.banner h1 a:visited {
	color: var(--text);
	text-decoration: none;
}
.banner h2 {
	font-size: 1em;
	font-weight: normal;
	margin-bottom: 10px;
}

.site-nav {
	display: flex;
	justify-content: center;
	gap: 24px;
	font-family: var(--font-heading);
	font-size: 1.1em;
}
.site-nav a,
.site-nav a:visited {
	color: var(--link);
	padding: 2px 0;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover {
	text-decoration: none;
	border-bottom-color: var(--link);
}
.site-nav a[aria-current="page"] {
	color: var(--text);
	border-bottom-color: var(--text);
}

.wrapper > hr {
	width: 85%;
}

.content {
	width: 100%;
	max-width: var(--measure);
	margin: 0 auto 40px auto;
	padding: 0 16px;
}
.content > h3 {
	font-size: 1.5em;
	font-weight: normal;
	text-align: center;
	margin: 20px 0 30px;
}

.post-list {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.post-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 20px;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: 6px;
	color: var(--text);
	transition: border-color 0.15s ease;
}
.post-card:visited {
	color: var(--text);
}
.post-card:hover,
.post-card:focus-visible {
	text-decoration: none;
	border-color: var(--link);
}
.post-card-thumb {
	flex: 0 0 auto;
	width: 120px;
	height: 90px;
	object-fit: cover;
	border: 1px solid var(--panel-border);
	border-radius: 4px;
}
.post-card-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.post-card-title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.25em;
	color: var(--link);
}
.post-card time,
.post-meta {
	color: var(--text-muted);
	font-size: 0.9em;
}
.post-card-desc {
	color: var(--text);
}
.empty {
	text-align: center;
	color: var(--text-muted);
}

.post-header {
	margin: 20px 0 30px;
}
.post-header h1 {
	font-family: var(--font-heading);
	font-size: 2.2em;
	line-height: 1.25;
	margin: 0 0 8px;
}
.post-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.tag {
	font-size: 0.85em;
	padding: 1px 8px;
	border: 1px solid var(--panel-border);
	border-radius: 999px;
	background: var(--panel);
	color: var(--text-muted);
}

.post-body {
	font-size: 1.05em;
	overflow-wrap: break-word;
}
.post-body h2,
.post-body h3,
.post-body h4 {
	font-family: var(--font-heading);
	line-height: 1.3;
	margin: 2em 0 0.6em;
}
.post-body h2 {
	font-size: 1.6em;
}
.post-body h3 {
	font-size: 1.3em;
}
.post-body h4 {
	font-size: 1.1em;
}
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre,
.post-body table,
.post-body figure {
	margin: 0 0 1.25em;
}
.post-body ul,
.post-body ol {
	padding-left: 1.5em;
}
.post-body li + li,
.post-body li > ul,
.post-body li > ol {
	margin-top: 0.35em;
}
.post-body li > ul,
.post-body li > ol {
	margin-bottom: 0;
}
.post-body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border: 1px solid var(--panel-border);
	border-radius: 6px;
}
.post-body figcaption {
	text-align: center;
	font-size: 0.9em;
	color: var(--text-muted);
	margin-top: 8px;
}
.post-body blockquote {
	padding: 0.5em 1em;
	border-left: 4px solid var(--link);
	background: rgba(13, 17, 23, 0.6);
	border-radius: 0 6px 6px 0;
	color: var(--text-muted);
	font-style: italic;
}
.post-body blockquote p:last-child {
	margin-bottom: 0;
}
.post-body code {
	font-family: var(--font-mono);
	font-size: 1em;
	padding: 0.1em 0.35em;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: 4px;
}
.post-body pre {
	padding: 14px 16px;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: 6px;
	overflow-x: auto;
	line-height: 1.45;
	tab-size: 4;
}
.post-body pre code {
	padding: 0;
	background: none;
	border: none;
}
.post-body table {
	width: 100%;
	border-collapse: collapse;
	display: block;
	overflow-x: auto;
}
.post-body th,
.post-body td {
	padding: 8px 12px;
	border: 1px solid var(--panel-border);
	text-align: left;
}
.post-body th {
	background: var(--panel);
	font-family: var(--font-heading);
}
.post-body tr:nth-child(even) td {
	background: rgba(13, 17, 23, 0.4);
}
.post-body hr {
	border: none;
	border-top: 1px solid var(--panel-border);
	margin: 2em 0;
}

.post-footer {
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--panel-border);
}

@media (max-width: 800px) {
	.banner h1 {
		font-size: 2.2em;
	}
	.post-header h1 {
		font-size: 1.7em;
	}
	.post-card-thumb {
		width: 80px;
		height: 60px;
	}
}
