.site-nav {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.75rem;
	font-size: 0.78rem;
}

.site-nav a {
	color: #8b949e;
}

.site-nav a::before {
	content: "./";
	color: #484f58;
}

.site-nav a:hover {
	color: #7ee787;
}

.blog-shell {
	max-width: 760px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
}

.blog-header,
.post-header {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #21262d;
	margin-bottom: 1.5rem;
}

.blog-header h1,
.post-header h1 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

.blog-header p,
.post-header p {
	max-width: 640px;
}

.back-link {
	display: inline-block;
	margin-bottom: 1rem;
	font-size: 0.78rem;
	color: #484f58;
}

.back-link:hover {
	color: #7ee787;
}

.post-list {
	display: grid;
	gap: 0;
}

.post-row {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 1.25rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid #21262d;
}

.post-row-meta,
.post-header time {
	color: #484f58;
	font-size: 0.74rem;
}

.post-row h2 {
	font-size: 1rem;
	margin-bottom: 0.35rem;
	color: #e6edf3;
}

.post-row p {
	margin-bottom: 0.65rem;
}

.post-row-cover {
	display: block;
	margin-bottom: 0.85rem;
}

.post-row-cover img {
	display: block;
	width: 100%;
	max-height: 220px;
	object-fit: cover;
	border: 1px solid #21262d;
	border-radius: 6px;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.post-tags span {
	font-size: 0.7rem;
	color: #c9d1d9;
	background: #161b22;
	border: 1px solid #30363d;
	border-radius: 3px;
	padding: 0.12rem 0.4rem;
}

.post-content {
	max-width: 680px;
}

.post-cover-image,
.post-content img {
	display: block;
	width: 100%;
	height: auto;
	margin: 1.25rem 0;
	border: 1px solid #21262d;
	border-radius: 6px;
}

.post-cover-image {
	max-height: 420px;
	object-fit: cover;
	margin-bottom: 1.5rem;
}

.post-figure {
	margin: 1.25rem 0;
}

.post-figure img,
.post-content .post-figure img {
	margin: 0;
	background: #0d1117;
}

.post-figure-borderless img,
.post-content .post-figure-borderless img {
	border: 0;
}

.post-figure-contain img,
.post-content .post-figure-contain img {
	max-height: 380px;
	object-fit: contain;
}

.post-figure figcaption {
	margin-top: 0.45rem;
	font-size: 0.72rem;
	line-height: 1.45;
	color: #6e7681;
}

.post-figure-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.25rem 0;
}

.post-figure-grid .post-figure {
	margin: 0;
}

.post-figure-grid img {
	aspect-ratio: 4 / 3;
	object-fit: contain;
}

.home-assistant-live-demo {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.25rem 0;
}

.home-assistant-live-card h3 {
	margin: 0 0 0.45rem;
	font-size: 0.75rem;
	color: #8b949e;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.post-conclusion-kicker {
	margin: 2rem 0 0.65rem;
	font-size: 0.72rem;
	color: #6e7681;
	letter-spacing: 0.02em;
}

.post-conclusion-kicker span {
	color: #7ee787;
}

.post-content h2,
.post-content h3 {
	margin-top: 1.75rem;
}

.post-content p,
.post-content li {
	font-size: 0.86rem;
	color: #8b949e;
}

.post-content ul,
.post-content ol {
	margin: 0.75rem 0 0.75rem 1.25rem;
}

.post-content code {
	color: #7ee787;
	background: #161b22;
	border: 1px solid #21262d;
	border-radius: 3px;
	padding: 0.05rem 0.25rem;
	font-family: inherit;
	font-size: 0.82rem;
}

.post-content pre {
	margin: 1rem 0;
	padding: 1rem;
	overflow-x: auto;
	background: #161b22 !important;
	border: 1px solid #21262d;
	border-radius: 6px;
}

.post-content pre code {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}

@media (max-width: 680px) {
	.site-nav {
		justify-content: center;
	}

	.blog-shell {
		padding: 2rem 1.5rem;
	}

	.post-row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.post-figure-grid {
		grid-template-columns: 1fr;
	}

	.home-assistant-live-demo {
		grid-template-columns: 1fr;
	}

}
