/*
 * Post: single blog post layout (header, featured image, article + sticky sidebar,
 * author box, previous/next links) and .wu-prose for editor content.
 */

.wu-post__header {
	padding-block: var(--wu-space-lg) var(--wu-space-md);
	text-align: center;
}

.wu-post__breadcrumbs {
	margin-bottom: var(--wu-space-md);
	color: var(--wu-color-muted);
	font-size: 0.875rem;
}

.wu-post__breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wu-post__breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
}

.wu-post__breadcrumbs a {
	color: inherit;
	text-decoration: none;
}

.wu-post__breadcrumbs a:hover {
	color: var(--wu-color-brand);
}

.wu-post__home-icon {
	width: 14px;
	height: 14px;
	vertical-align: -2px;
	fill: currentColor;
}

.wu-post__title {
	max-width: 900px;
	margin: 0 auto var(--wu-space-sm);
	color: var(--wu-color-strong);
	font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.25;
}

.wu-post__meta {
	margin: 0;
	color: var(--wu-color-muted);
	font-size: 0.9375rem;
}

.wu-post__meta a {
	color: inherit;
}

.wu-post__layout {
	display: grid;
	gap: var(--wu-space-xl);
	padding-bottom: var(--wu-section-space);
}

@media (min-width: 992px) {
	.wu-post__layout {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		align-items: start;
	}

	.wu-post__aside {
		position: sticky;
		top: 120px;
	}
}

.wu-post__thumb {
	margin: 0 0 var(--wu-space-lg);
}

.wu-post__image {
	width: 100%;
	border-radius: var(--wu-radius-lg);
}

/* Author box */
.wu-author {
	display: flex;
	gap: var(--wu-space-md);
	align-items: flex-start;
	margin-top: var(--wu-space-xl);
	padding: var(--wu-space-md);
	border: 1px solid var(--wu-color-line);
	border-radius: var(--wu-radius-lg);
}

.wu-author__avatar {
	flex: none;
	border-radius: 50%;
}

.wu-author__label {
	margin: 0 0 4px;
	color: var(--wu-color-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wu-author__name {
	margin: 0 0 var(--wu-space-xs);
	font-size: 1.125rem;
	font-weight: 700;
}

.wu-author__name a {
	color: inherit;
	text-decoration: none;
}

.wu-author__bio {
	color: var(--wu-color-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* Previous / next */
.wu-post-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--wu-space-sm);
	margin-top: var(--wu-space-lg);
	padding-top: var(--wu-space-md);
	border-top: 1px solid var(--wu-color-line);
}

.wu-post-nav a {
	color: var(--wu-color-text);
	font-weight: 600;
	text-decoration: none;
}

.wu-post-nav a:hover {
	color: var(--wu-color-brand);
}

.wu-post-nav__next {
	margin-left: auto;
	text-align: right;
}

/* Editor content */
.wu-prose {
	line-height: 1.7;
}

.wu-prose > * + * {
	margin-top: 1.1em;
}

.wu-prose h2,
.wu-prose h3,
.wu-prose h4 {
	margin-top: 1.8em;
	margin-bottom: 0.5em;
	font-weight: 700;
	line-height: 1.3;
}

.wu-prose p,
.wu-prose ul,
.wu-prose ol {
	margin-bottom: 0;
}

.wu-prose ul,
.wu-prose ol {
	padding-left: 1.4em;
}

.wu-prose ul {
	list-style: disc;
}

.wu-prose ol {
	list-style: decimal;
}

.wu-prose li + li {
	margin-top: 0.4em;
}

.wu-prose a {
	color: var(--wu-color-brand);
}

.wu-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--wu-radius-md);
}

.wu-prose figure {
	margin-inline: 0;
}

.wu-prose figcaption {
	margin-top: 0.5em;
	color: var(--wu-color-muted);
	font-size: 0.875rem;
}
