/* ==========================================================================
   Article page

   Layout copied from the reference news page: one coloured band with the
   section name, a centred headline, a centred grey date, then a single plain
   column of body copy. No sidebar, no contents rail, no cards.

   Everything is namespaced `.sc-post` and loaded on single posts only.
   ========================================================================== */

.sc-post {
	padding-block-end: clamp(3rem, 6vw, 5rem);
	background: #fff;
	color: #323232;
}

/* ------------------------------------------------------------------ band */

.sc-post__band {
	background: var(--sc-accent);
}

.sc-post__band-inner {
	display: flex;
	align-items: center;
	max-width: 960px;
	min-height: 120px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.sc-post__band-inner span {
	font-family: var(--sc-font-display);
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -.005em;
	color: #fff;
}

/* --------------------------------------------------------------- heading */

.sc-post__wrap {
	max-width: 960px;
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
	padding-block-start: clamp(2rem, 4vw, 3rem);
}

.sc-post__title {
	margin: 0;
	text-align: center;
	font-family: var(--sc-font-display);
	font-size: clamp(1.25rem, 1.9vw, 1.5rem);
	font-weight: 700;
	line-height: 1.35;
	color: #323232;
}

.sc-post__date {
	margin: .5rem 0 0;
	text-align: center;
	font-size: .875rem;
	line-height: 1.45;
	color: #969696;
}

/* ------------------------------------------------------------------ body */

.sc-post__body {
	margin-block-start: clamp(1.5rem, 2.6vw, 2rem);
	font-size: 1rem;
	line-height: 1.7;
	color: #323232;
}

/*
 * app.css pins `p, li` to the site's 14px UI scale, which is too small for a
 * reading column. `inherit` on the body's own children takes the 16px above.
 */
.sc-post__body p,
.sc-post__body li,
.sc-post__body dl {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.sc-post__body > * + * {
	margin-block-start: 1.05em;
}

.sc-post__body p {
	margin: 0 0 1em;
}

.sc-post__body > p:last-child {
	margin-block-end: 0;
}

.sc-post__body h2,
.sc-post__body h3,
.sc-post__body h4 {
	margin: 2em 0 .55em;
	font-family: var(--sc-font-display);
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--sc-accent);
}

/* The first heading of the piece needs no air above it — the date line is
   already doing that job. */
.sc-post__body > h2:first-child,
.sc-post__body > h3:first-child {
	margin-block-start: 0;
}

.sc-post__body strong,
.sc-post__body b {
	font-weight: 600;
	color: var(--sc-ink);
}

.sc-post__body a {
	color: var(--sc-accent);
	text-decoration: underline;
	text-underline-offset: .16em;
	text-decoration-thickness: 1px;
}

.sc-post__body ul,
.sc-post__body ol {
	padding-inline-start: 1.3em;
	margin: 0 0 1em;
}

.sc-post__body li {
	margin-block: .35em;
}

.sc-post__body li::marker {
	color: var(--sc-accent);
}

.sc-post__body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1.5em 0;
}

.sc-post__body figure {
	margin: 1.5em 0;
}

.sc-post__body blockquote {
	margin: 1.6em 0;
	padding-inline-start: 1.1rem;
	border-inline-start: 3px solid var(--sc-accent);
	font-size: 1.0625rem;
	color: var(--sc-ink);
}

.sc-post__body blockquote p:last-child {
	margin-block-end: 0;
}

/* ------------------------------------------------------------------ back */

.sc-post__back {
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--sc-line-soft);
	font-size: .875rem;
	line-height: 1.4;
}

.sc-post__back a {
	color: var(--sc-gray);
	text-decoration: none;
}

.sc-post__back a:hover,
.sc-post__back a:focus-visible {
	color: var(--sc-accent);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
	.sc-post__band-inner {
		min-height: 72px;
	}

	.sc-post__band-inner span {
		font-size: 1.5rem;
	}

	.sc-post__title {
		font-size: 1.125rem;
	}

	.sc-post__body {
		font-size: 1rem;
		line-height: 1.65;
	}

	.sc-post__body h2,
	.sc-post__body h3,
	.sc-post__body h4 {
		font-size: 1.1875rem;
	}
}
