body.icem-article-has-cover {
	--icem-article-cover-content: "";
	--icem-article-cover-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

body.single-post > main#content.site-main:has(> .page-header > .entry-title):not(:has(> .page-content .icm-page)) {
	--article-accent: #a00051;
	--article-ink: #322630;
	--article-line: #e6d4d7;
	--article-paper: #fffcfa;
	--article-blush: #f9ecea;
	--article-display: Raleway, "Segoe UI", sans-serif;
	--article-body: Roboto, "Segoe UI", sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: none;
	padding: clamp(1.5rem, 4vw, 3.5rem) clamp(0.75rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5.5rem);
	background: linear-gradient(180deg, #f8e9e9, var(--article-paper) 29rem);
	color: var(--article-ink);

	& > .page-header,
	& > .page-content {
		box-sizing: border-box;
		margin-inline: auto;
		border: 1px solid var(--article-line);
	}

	& > .page-header {
		display: grid;
		align-items: stretch;
		max-width: 63rem;
		margin-block: 0 clamp(1rem, 3.5vw, 2.6rem);
		overflow: hidden;
		border-radius: clamp(0.85rem, 2vw, 1.5rem);
		background: linear-gradient(135deg, #fff8f1, var(--article-blush));
	}

	& > .page-header > .entry-title {
		align-self: center;
		margin: 0;
		padding: clamp(1.35rem, 4.5vw, 3.5rem);
		color: var(--article-accent);
		font: 700 clamp(1.8rem, 3.8vw, 3.1rem)/1.07 var(--article-display);
		letter-spacing: -0.035em;
		overflow-wrap: anywhere;
		text-wrap: balance;
	}

	& > .page-header > .entry-title::before {
		display: block;
		width: 2rem;
		height: 0.1875rem;
		margin-block-end: 0.85rem;
		border-radius: 2px;
		background: currentColor;
		content: "";
	}

	& > .page-header::after {
		aspect-ratio: 16 / 9;
		background: var(--icem-article-cover) center / cover no-repeat;
		content: var(--icem-article-cover-content, none);
	}

	@media (min-width: 47rem) {
		& > .page-header {
			grid-template-columns: var(--icem-article-cover-columns, minmax(0, 1fr));
		}

		& > .page-header::after {
			min-height: clamp(16rem, 27vw, 22rem);
			aspect-ratio: auto;
		}
	}

	& > .page-content {
		width: min(100%, 49rem);
		padding: clamp(1.05rem, 4.8vw, 3.7rem);
		border-radius: clamp(0.85rem, 2vw, 1.25rem);
		background: #fff;
		font: 400 clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem)/1.75 var(--article-body);
		overflow-wrap: anywhere;
	}

	& > .page-content :where(p, ul, ol) {
		margin-block: 0 1.05em;
	}

	& > .page-content > :last-child {
		margin-block-end: 0;
	}

	& > .page-content :where(p, ul, ol)[style*="text-align: justify"] {
		text-align: start !important; /* Legacy inline alignment creates large word gaps on narrow screens. */
	}

	& > .page-content :where(ul, ol) {
		padding-inline-start: 1.45em;
	}

	& > .page-content :where(li + li) {
		margin-block-start: 0.35em;
	}

	& > .page-content li::marker {
		color: var(--article-accent);
	}

	& > .page-content :where(h2, h3, h4) {
		margin-block: 1.8em 0.55em;
		color: var(--article-ink);
		font-family: var(--article-display);
		font-weight: 700;
		line-height: 1.2;
		text-wrap: balance;
	}

	& > .page-content h2 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); }
	& > .page-content h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

	& > .page-content :where(blockquote) {
		margin: 1.55em 0;
		padding: 0.9em 1.15em;
		border-inline-start: 3px solid var(--article-accent);
		border-start-end-radius: 0.7rem;
		border-end-end-radius: 0.7rem;
		background: var(--article-blush);
	}

	& > .page-content blockquote > :last-child {
		margin-block-end: 0;
	}

	& > .page-content :where(a:any-link) {
		color: var(--article-accent);
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}

	& > .page-content :where(a:hover) {
		color: #72083b;
		text-decoration-thickness: 2px;
	}

	& > .page-content :where(a:focus-visible) {
		outline: 2px solid currentColor;
		outline-offset: 3px;
		border-radius: 2px;
	}

	& > .page-content :where(img, iframe, video, figure, .wp-caption) {
		max-width: 100%;
	}

	& > .page-content :where(img, video) {
		height: auto;
		border-radius: 0.7rem;
	}

	& > .page-content :where(img.aligncenter, figure.aligncenter) {
		display: block;
		margin: 1.8rem auto;
	}

	& > .page-content :where(.post-tags) {
		margin-block-start: 2.1rem;
		padding-block-start: 1rem;
		border-block-start: 1px solid var(--article-line);
		font-size: 0.875rem;
	}

	& > #comments {
		width: min(100%, 49rem);
		margin: 1.8rem auto 0;
	}
}
