/*
 * Article typography.
 *
 * Only what generated articles actually produce: headings, lists, the pull
 * quote, and the figure. Scoped to the post content so it never touches the
 * rest of the site.
 */

.entry-content,
.post-content,
.elementor-widget-theme-post-content {
	--cce-ink: var(--ch-ink, #0f172a);
	--cce-body: #334155;
	--cce-accent: var(--ch-brand, #0b5ea8);
	--cce-line: var(--ch-line, #e2e8f0);
	--cce-ground: var(--ch-ground, #f8fafc);
}

.entry-content > p,
.post-content > p {
	/* Around 70 characters is the readable range for body text. */
	max-width: 68ch;
	line-height: 1.75;
	color: var(--cce-body);
}

.entry-content > h2,
.post-content > h2 {
	margin-top: 2.2em;
	margin-bottom: .6em;
	line-height: 1.25;
	color: var(--cce-ink);
	text-wrap: balance;
}

.entry-content > h3,
.post-content > h3 {
	margin-top: 1.8em;
	margin-bottom: .5em;
	color: var(--cce-ink);
}

.entry-content > ul,
.entry-content > ol,
.post-content > ul,
.post-content > ol {
	max-width: 66ch;
	line-height: 1.7;
	padding-left: 1.3em;
}

.entry-content li + li,
.post-content li + li { margin-top: .4em; }

/*
 * The pull quote.
 *
 * Set larger than body text and hung off a rule rather than boxed — a quote in
 * a grey box reads as an aside to be skipped, which is the opposite of what a
 * pull quote is for.
 */
.entry-content blockquote,
.post-content blockquote {
	margin: 2.2em 0;
	padding: .2em 0 .2em 1.4em;
	border-left: 3px solid var(--cce-accent);
	max-width: 62ch;
	font-size: 1.2em;
	line-height: 1.5;
	font-weight: 500;
	color: var(--cce-ink);
	font-style: normal;
	background: none;
}

.entry-content blockquote p,
.post-content blockquote p { margin: 0; max-width: none; }

.entry-content blockquote p + p,
.post-content blockquote p + p { margin-top: .6em; }

/* Figures ---------------------------------------------------------------- */

.entry-content figure,
.post-content figure {
	margin: 2.4em 0;
}

.entry-content figure img,
.post-content figure img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.entry-content figcaption,
.post-content figcaption {
	margin-top: .6em;
	font-size: .82rem;
	color: #64748b;
	text-align: left;
}

.entry-content figcaption a,
.post-content figcaption a { color: inherit; }

/* Links ------------------------------------------------------------------ */

.entry-content > p a,
.post-content > p a {
	color: var(--cce-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}

/* The FAQ block the writer appends. */
.entry-content h2 + h3,
.post-content h2 + h3 { margin-top: 1.2em; }

@media (max-width: 640px) {
	.entry-content blockquote,
	.post-content blockquote { font-size: 1.1em; padding-left: 1em; }
}
