/* A quiet editorial layout, scoped to individual articles. */
.single-post-template {
	background: #fafaf8;
	color: #20232b;
}
.single-post-template .single-post-shell {
	min-height: 100vh;
	padding: 9rem 2rem 5rem;
}
.single-post-template .single-post-article {
	max-width: 1160px;
	margin-inline: auto;
}
.single-post-template .single-post-hero {
	max-width: none;
	padding-bottom: 3rem;
	margin-bottom: 3rem;
	border-bottom: 1px solid #dedee3;
}
.single-post-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}
.single-post-breadcrumb a {
	color: #6c6379;
	text-decoration: none;
}
.single-post-breadcrumb a:first-child {
	color: #242330;
}
.single-post-breadcrumb span {
	color: #c1bbc8;
}
.single-post-template .single-post-title {
	max-width: 23ch;
	margin: 0;
	color: #20212a;
	font-size: clamp(2.4rem, 4.9vw, 4.35rem);
	line-height: 1.06;
	letter-spacing: -0.045em;
	font-weight: 750;
	text-wrap: balance;
}
.single-post-template .single-post-excerpt {
	max-width: 65ch;
	margin-top: 1.5rem;
	color: #6a6b76;
	font-size: 1.15rem;
	line-height: 1.75;
}
.single-post-template .single-post-hero-meta-row {
	display: flex;
	justify-content: space-between;
	gap: 1.25rem;
	margin-top: 2rem;
}
.single-post-template .single-post-hero-author {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	backdrop-filter: none;
	gap: 0.8rem;
}
.single-post-template .single-post-hero-author__image {
	width: 42px;
	height: 42px;
	border: 0;
}
.single-post-template .single-post-hero-author__name {
	margin: 0;
	font-size: 0.85rem;
	color: #282832;
	font-weight: 650;
}
.single-post-hero-author__role {
	margin: 0.2rem 0 0;
	color: #777580;
	font-size: 0.72rem;
	line-height: 1.5;
}
.single-post-template .single-post-hero-meta {
	font-size: 0.75rem;
	letter-spacing: 0;
	text-transform: none;
	color: #75727e;
	font-weight: 400;
}
.single-post-template .single-post-hero-meta :is(time, span) {
	font-size: 0.75rem;
	font-weight: 400;
}
.single-post-layout {
	display: grid;
	grid-template-columns: minmax(0, 740px);
	justify-content: center;
	gap: 2rem;
	align-items: start;
}
.single-post-template .single-post-body {
	width: 100%;
	min-width: 0;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
	backdrop-filter: none;
}
.single-post-template .single-post-content {
	color: #484852;
	font-size: 1.06rem;
	line-height: 1.9;
	overflow-wrap: break-word;
}
.single-post-template .single-post-content :where(p, li) {
	color: #484852;
	font-size: 1.06rem;
	font-weight: 400;
	line-height: 1.9;
}
.single-post-template .single-post-content > p {
	margin-block: 0 1.4rem;
}
.single-post-template .single-post-content > p:first-of-type {
	color: #353640;
	font-size: 1.2rem;
	line-height: 1.8;
}
.single-post-template .single-post-content :where(h2, h3, h4) {
	color: #24242d;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.25;
	scroll-margin-top: 8rem;
}
.single-post-template .single-post-content :where(h2) {
	margin-top: 3.5rem;
	margin-bottom: 1.25rem;
	font-size: clamp(1.6rem, 2.5vw, 2rem);
}
.single-post-template .single-post-content > h2 {
	display: block;
}
.single-post-template .single-post-content > h2::before {
	content: none;
}
.single-post-template .single-post-content :where(h3) {
	font-size: 1.35rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.single-post-template .single-post-content :where(h4) {
	font-size: 1.15rem;
}
.single-post-template .single-post-content :where(ul, ol) {
	margin-block: 1.25rem 1.75rem;
	padding-left: 1.5rem;
}
.single-post-template .single-post-content :where(li) {
	padding-left: 0.3rem;
	margin-block: 0.55rem;
}
.single-post-template .single-post-content :where(li)::marker {
	color: #81748e;
}
.single-post-template .single-post-content :where(a) {
	color: #34303e;
	text-decoration-color: #b2a4c1;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.single-post-template .single-post-content :where(a):hover {
	color: #754393;
	text-decoration-color: currentColor;
}
.single-post-template .single-post-content :where(strong) {
	font-weight: 650;
	color: #272832;
}
.single-post-template .single-post-content :where(blockquote) {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid #9a7aae;
	border-radius: 0 0.8rem 0.8rem 0;
	background: #f0edf3;
	color: #51445d;
	font-style: normal;
}
.single-post-template .single-post-content :where(pre) {
	max-width: 100%;
	overflow-x: auto;
	padding: 1.5rem;
	border-radius: 0.8rem;
	font-size: 0.85rem;
	line-height: 1.7;
}
.single-post-template .single-post-content :where(table) {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	font-size: 0.95rem;
}
.single-post-template .single-post-content .moritz-faq-block {
	margin-top: 3.5rem;
	border-top: 1px solid #dedee3;
	padding-top: 2.5rem;
}
.single-post-template .single-post-content .moritz-faq-block__title {
	margin-top: 0;
	font-size: 1.8rem;
}
.single-post-sidebar {
	min-width: 0;
}
.single-post-toc-disclosure {
	border: 1px solid #dfdde5;
	border-radius: 0.8rem;
	background: #f3f1f6;
}
.single-post-toc-disclosure > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	color: #35313e;
	font-size: 0.85rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.single-post-toc-disclosure > summary::-webkit-details-marker {
	display: none;
}
.single-post-toc-disclosure > summary span {
	font-size: 1.3rem;
	line-height: 1;
}
.single-post-toc-disclosure[open] > summary span {
	transform: rotate(45deg);
}
.single-post-toc-content {
	padding: 0 0.75rem 0.75rem;
}
.single-post-sidebar__label {
	display: none;
}
.single-post-sidebar .moritz-post-toc {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.single-post-sidebar .moritz-post-toc__title {
	display: none;
}
.single-post-sidebar .moritz-post-toc__list {
	display: grid;
	gap: 0.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: article-toc;
}
.single-post-sidebar .moritz-post-toc__item {
	padding: 0;
	margin: 0;
	counter-increment: article-toc;
}
.single-post-sidebar .moritz-post-toc__item a {
	display: grid;
	grid-template-columns: 1.2rem minmax(0, 1fr);
	align-items: baseline;
	gap: 0.5rem;
	padding: 0.6rem 0.5rem;
	border-left: 2px solid transparent;
	border-radius: 0 0.35rem 0.35rem 0;
	color: #74717c;
	font-size: 0.77rem;
	font-weight: 400;
	line-height: 1.55;
	text-decoration: none;
}
.single-post-sidebar .moritz-post-toc__item a::before {
	content: counter(article-toc, decimal-leading-zero);
	color: #9d94a7;
	font-size: 0.62rem;
	font-variant-numeric: tabular-nums;
}
.single-post-sidebar .moritz-post-toc__item a:hover {
	background: #eeeaf2;
	color: #312b3a;
}
.single-post-sidebar .moritz-post-toc__item a[aria-current="location"] {
	border-left-color: #8b589d;
	background: #eee8f3;
	color: #3f284e;
	font-weight: 600;
}
.single-post-sidebar__top {
	display: flex;
	justify-content: space-between;
	padding: 1rem 0.7rem 0;
	margin-top: 1rem;
	border-top: 1px solid #e4e0e9;
	color: #81768b;
	font-size: 0.7rem;
	text-decoration: none;
}
.single-post-template a:focus-visible,
.single-post-toc-disclosure > summary:focus-visible {
	outline: 2px solid #9562a8;
	outline-offset: 4px;
	border-radius: 3px;
}
.single-post-template .single-post-author-box {
	margin-top: 3rem;
	padding: 1.5rem 0;
	border: 0;
	border-top: 1px solid #dedee3;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}
.single-post-template .single-post-author-box__image {
	width: 64px;
	height: 64px;
}
.single-post-template .single-post-author-box__title {
	font-size: 1.15rem;
	line-height: 1.4;
}
.single-post-template .single-post-author-box__text {
	font-size: 0.85rem;
	line-height: 1.8;
	color: #77727d;
}
.single-post-template .single-post-author-box__kicker {
	font-size: 0.65rem;
}
.single-post-template .single-post-footer {
	margin-top: 1.5rem;
	border-color: #e2dfe7;
}
.single-post-template .single-post-navigation {
	max-width: 1160px;
	margin: 4rem auto 0;
	padding: 2rem 0 0;
	border-top: 1px solid #dedee3;
}
.single-post-template .single-post-navigation :is(.nav-previous, .nav-next) {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}
.single-post-template .single-post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 0;
}
.single-post-template .single-post-navigation a > span:first-child {
	color: #8a7c96;
	font-size: 0.65rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}
.single-post-template .single-post-navigation a > span:last-child {
	color: #36313d;
	font-size: 1rem;
	line-height: 1.5;
}
.single-post-template .single-post-progress {
	height: 3px;
	background: transparent;
}
.single-post-template .single-post-progress__bar {
	background: #a477b7;
	box-shadow: none;
}
@media (min-width: 1100px) {
	.single-post-layout--with-toc {
		grid-template-columns: 248px minmax(0, 740px);
		gap: clamp(3rem, 6vw, 6rem);
		justify-content: space-between;
	}
	.single-post-sidebar {
		position: sticky;
		top: 7.5rem;
	}
	.single-post-toc-disclosure {
		border: 0;
		border-radius: 0;
		background: none;
	}
	.single-post-toc-disclosure > summary {
		display: none;
	}
	.single-post-toc-content {
		padding: 0;
	}
	.single-post-sidebar__label {
		display: block;
		margin: 0 0 1.1rem;
		padding-left: 0.65rem;
		color: #4e435d;
		font-size: 0.63rem;
		font-weight: 700;
		letter-spacing: 0.14em;
		text-transform: uppercase;
	}
	.single-post-sidebar .moritz-post-toc {
		max-height: calc(100dvh - 16rem);
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: #d7cfdf transparent;
		overscroll-behavior: contain;
	}
}
@media (max-width: 639px) {
	.single-post-template .single-post-shell {
		padding: 7rem 1.25rem 3rem;
	}
	.single-post-template .single-post-hero {
		margin-bottom: 1.75rem;
		padding-bottom: 1.75rem;
	}
	.single-post-template .single-post-title {
		font-size: clamp(2rem, 8.5vw, 2.8rem);
		line-height: 1.1;
		letter-spacing: -0.035em;
	}
	.single-post-template .single-post-hero-meta-row {
		margin-top: 1.5rem;
		gap: 1rem;
	}
	.single-post-template .single-post-content :where(p, li) {
		font-size: 1rem;
		line-height: 1.85;
	}
	.single-post-template .single-post-content > p:first-of-type {
		font-size: 1.1rem;
	}
	.single-post-template .single-post-content :where(h2) {
		margin-top: 2.75rem;
		font-size: 1.55rem;
	}
	.single-post-template .single-post-author-box {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 1rem;
	}
	.single-post-template .single-post-author-box__image {
		width: 48px;
		height: 48px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.single-post-template *,
	.single-post-template *::before {
		scroll-behavior: auto;
		transition: none;
	}
}
