/* Planet SnowGlobe additions to Story's main.css: site navigation and blog pages. */

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
	padding: 1.25rem 2rem;
	border-bottom: solid 1px rgba(0, 0, 0, 0.125);
}

.site-nav a {
	border-bottom: none;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-nav .site-name {
	margin-right: auto;
	letter-spacing: 0.05em;
}

.site-nav a[aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.4em;
}

.post-meta {
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.7;
}

.post .inner,
.post-list {
	max-width: 46rem;
	margin-left: auto;
	margin-right: auto;
}

.post h1 {
	font-size: 2.5rem;
	line-height: 1.2;
}

.post-body h2 {
	margin-top: 2.5rem;
	font-size: 1.75rem;
}

.post-body h3 {
	margin-top: 2rem;
}

.post-body img {
	max-width: 100%;
	height: auto;
}

.post-body pre {
	overflow-x: auto;
}

.post-body table {
	display: block;
	overflow-x: auto;
}

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

.post-list > li {
	padding: 0 0 2rem 0;
	margin-bottom: 2rem;
	border-bottom: solid 1px rgba(0, 0, 0, 0.125);
}

.post-list > li:last-child {
	border-bottom: none;
}

.post-list h2 {
	margin-bottom: 0.75rem;
}

.post-list h2 a {
	border-bottom: none;
}

@media screen and (max-width: 736px) {
	.site-nav {
		padding: 1rem 1.25rem;
		gap: 1.25rem;
	}

	.post h1 {
		font-size: 1.75rem;
	}
}
