/* ==========================================================================
   Creative Comment
   ========================================================================== */

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 5rem;
	background: var(--paper);
	accent-color: var(--accent);
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.5;
	font-feature-settings: "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color var(--dur-base) ease, color var(--dur-base) ease;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
	font-weight: 600;
}

p {
	text-wrap: pretty;
}

::selection {
	background: var(--select);
	color: var(--ink);
}

input {
	caret-color: var(--accent);
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: var(--space-2xs);
	left: var(--space-2xs);
	z-index: 100;
	padding: var(--space-2xs) var(--space-s);
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius-s);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.container {
	width: 100%;
	max-width: var(--page-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.label {
	font-family: var(--font-sans);
	font-size: var(--step--2);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-3);
}

/* Header ----------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur-base) ease, background-color var(--dur-base) ease;
}

.site-header.is-stuck {
	border-bottom-color: var(--rule);
}

.site-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--space-m);
	max-width: var(--page-max);
	min-height: 3.5rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-header__brand {
	display: block;
	width: clamp(9.5rem, 8rem + 4vw, 12rem);
	color: var(--ink);
	transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}

/* On the cover the nameplate is the brand; the bar mark arrives once it scrolls away. */
.home .site-header:not(.is-stuck) .site-header__brand {
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
}

.nav__list {
	display: flex;
	justify-content: center;
	gap: clamp(1rem, 0.5rem + 1.2vw, 2rem);
	font-size: var(--step--1);
	font-weight: 500;
}

.nav__list a {
	display: block;
	padding-block: var(--space-2xs);
	color: var(--ink-2);
	transition: color var(--dur-fast) ease;
}

.nav__list a:hover,
.nav__list [aria-current="page"],
.nav__list .current-menu-item > a {
	color: var(--ink);
}

.nav__list [aria-current="page"],
.nav__list .current-menu-item > a {
	box-shadow: inset 0 -1px 0 var(--accent);
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: var(--space-3xs);
}

.tool {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--ink-2);
	transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.tool:active {
	transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
	.tool:hover {
		color: var(--ink);
		background: var(--paper-2);
	}
}

.tool__moon,
.tool__close {
	display: none;
}

:root[data-theme="dark"] .tool__moon,
.tool[aria-expanded="true"] .tool__close {
	display: block;
}

:root[data-theme="dark"] .tool__sun,
.tool[aria-expanded="true"] .tool__open {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .tool__moon {
		display: block;
	}

	:root:not([data-theme="light"]) .tool__sun {
		display: none;
	}
}

.tool--menu {
	display: none;
}

.site-search {
	border-top: 1px solid var(--rule);
	padding-block: var(--space-s);
}

.site-search .search-form {
	max-width: var(--page-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

@media (max-width: 63.99em) {
	.site-header__bar {
		grid-template-columns: 1fr auto;
	}

	.tool--menu {
		display: grid;
	}

	.nav {
		position: fixed;
		inset: 3.5rem 0 auto;
		max-height: calc(100dvh - 3.5rem);
		overflow-y: auto;
		background: var(--paper);
		border-bottom: 1px solid var(--rule);
		padding: var(--space-s) var(--gutter) var(--space-l);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
	}

	.nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}

	.nav__list {
		flex-direction: column;
		gap: 0;
		font-size: var(--step-3);
		font-weight: 600;
		letter-spacing: -0.02em;
	}

	.nav__list a {
		padding-block: var(--space-xs);
		border-bottom: 1px solid var(--rule);
		color: var(--ink);
	}

	.nav__list [aria-current="page"],
	.nav__list .current-menu-item > a {
		box-shadow: none;
		color: var(--accent);
	}
}

/* Reading progress, scroll-driven where supported. */
.progress {
	display: none;
}

@supports (animation-timeline: scroll()) {
	.progress {
		display: block;
		position: fixed;
		inset: 0 0 auto;
		z-index: 60;
		height: 2px;
		pointer-events: none;
	}

	.progress span {
		display: block;
		height: 100%;
		background: var(--accent);
		transform-origin: 0 50%;
		animation: cc-progress linear both;
		animation-timeline: scroll(root);
	}

	@keyframes cc-progress {
		from {
			transform: scaleX(0);
		}
		to {
			transform: scaleX(1);
		}
	}
}

/* Search form ------------------------------------------------------------ */

.search-form {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.search-form > .icon {
	color: var(--ink-3);
	width: 1.5rem;
	height: 1.5rem;
}

.search-form input {
	flex: 1;
	min-width: 0;
	padding-block: var(--space-2xs);
	background: none;
	border: 0;
	font-size: var(--step-2);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.search-form input::placeholder {
	color: var(--ink-3);
}

.search-form input:focus {
	outline: none;
}

.search-form button {
	padding: var(--space-2xs) var(--space-s);
	background: var(--ink);
	color: var(--paper);
	border: 0;
	border-radius: 999px;
	font-size: var(--step--1);
	font-weight: 600;
	transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease;
}

.search-form button:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.search-form button:hover {
		background: var(--accent);
		color: var(--accent-ink);
	}
}

/* Section scaffolding ---------------------------------------------------- */

.site-main > section + section,
.site-main > .article + section {
	margin-top: var(--space-3xl);
}

.section-head {
	display: grid;
	grid-template-columns: 1fr;
	align-items: end;
	gap: var(--space-xs) var(--col-gap);
	margin-bottom: var(--space-l);
}

.section-head--rule {
	padding-top: var(--space-s);
	border-top: 1px solid var(--ink);
}

.section-head__title {
	font-size: var(--step-3);
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.section-head__intro {
	max-width: 44ch;
	font-family: var(--font-serif);
	font-size: var(--step-1);
	line-height: 1.45;
	color: var(--ink-2);
}

.section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--ink-2);
	transition: color var(--dur-fast) ease;
}

.section-head__link .icon {
	width: 1em;
	height: 1em;
	transition: transform var(--dur-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.section-head__link:hover {
		color: var(--accent);
	}

	.section-head__link:hover .icon {
		transform: translateX(3px);
	}
}

@media (min-width: 48em) {
	.section-head {
		grid-template-columns: repeat(12, 1fr);
	}

	.section-head__title {
		grid-column: 1 / span 6;
	}

	.section-head__intro,
	.section-head__link {
		grid-column: 7 / -1;
		justify-self: end;
		text-align: right;
	}
}

.grid {
	display: grid;
	gap: var(--space-xl) var(--col-gap);
}

@media (min-width: 40em) {
	.grid--3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64em) {
	.grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Story ------------------------------------------------------------------ */

.story {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
}

.story__media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-s);
	background: var(--paper-2);
}

.story__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	filter: brightness(var(--img-dim));
	transition: transform var(--dur-slow) var(--ease-out);
}

.story__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
}

.kicker {
	align-self: flex-start;
	font-size: var(--step--2);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
}

.kicker:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.story__title {
	font-size: var(--step-2);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.story__title a {
	/*
	 * Wipe underline, sized in em so it tracks the baseline at every size.
	 * Geist's content box ends 0.145em below the baseline; the stripe is
	 * lifted to sit 0.06em under it. The halo on hover clears descenders.
	 */
	--halo: var(--paper);
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 0 max(1px, 0.05em);
	background-position: 0 calc(100% - 0.035em);
	transition: background-size var(--dur-slow) var(--ease-out);
}

/* Whole card is the target; title link stretches over it. */
.story__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.story .kicker {
	position: relative;
	z-index: 1;
}

.story__dek {
	font-family: var(--font-serif);
	font-size: var(--step-0);
	line-height: 1.5;
	color: var(--ink-2);
}

.meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-xs);
	font-size: var(--step--2);
	font-weight: 500;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.meta > * + *::before {
	content: "·";
	margin-right: var(--space-xs);
}

@media (hover: hover) and (pointer: fine) {
	.story:hover .story__media img {
		transform: scale(1.03);
	}

	.story:hover .story__title a {
		background-size: 100% max(1px, 0.05em);
		text-shadow:
			0.04em 0 var(--halo),
			-0.04em 0 var(--halo),
			0.08em 0 var(--halo),
			-0.08em 0 var(--halo),
			0 0.04em var(--halo);
	}
}

/* Lead */
.story--lead {
	gap: var(--space-m);
}

.story--lead .story__title {
	font-size: var(--step-5);
	line-height: 1.02;
	letter-spacing: -0.035em;
}

.story--lead .story__dek {
	font-size: var(--step-1);
	line-height: 1.45;
}

.story--lead .story__body {
	gap: var(--space-xs);
}

@media (min-width: 64em) {
	.story--lead {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		column-gap: var(--col-gap);
		align-items: end;
	}

	.story--lead .story__figure {
		grid-column: 1 / span 7;
	}

	.story--lead .story__body {
		grid-column: 8 / -1;
		padding-left: var(--space-s);
	}

	.story--lead .story__media img {
		aspect-ratio: 16 / 10;
	}
}

/* Text-led */
.story--text {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: var(--space-m);
	padding-block: var(--space-m);
	border-top: 1px solid var(--rule);
}

.story--text:not(:has(.story__index)) {
	grid-template-columns: 1fr;
	padding-top: var(--space-s);
	border-top-color: var(--ink);
}

.story--text .story__title {
	font-size: var(--step-3);
	letter-spacing: -0.025em;
}

.story__index {
	min-width: 2ch;
	font-size: var(--step-3);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

.grid .story--text .story__title {
	font-size: var(--step-2);
}

/* Archive row */
.row-list {
	border-bottom: 1px solid var(--rule);
}

.story--row {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--space-3xs);
	padding-block: var(--space-s);
	border-top: 1px solid var(--rule);
}

.story--row .story__body {
	display: contents;
}

.story--row .story__title {
	order: 2;
	font-size: var(--step-1);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.story--row .kicker {
	order: 1;
}

.story--row .meta {
	order: 3;
}

@media (min-width: 48em) {
	.story--row {
		grid-template-columns: 10rem 1fr 12rem;
		align-items: baseline;
		column-gap: var(--col-gap);
	}

	.story--row .meta {
		order: 1;
		font-size: var(--step--1);
	}

	.story--row .story__title {
		order: 2;
	}

	.story--row .kicker {
		order: 3;
		justify-self: end;
	}
}

@media (hover: hover) and (pointer: fine) {
	.story--row:hover .story__title {
		color: var(--accent);
	}

	.story--row:hover .story__title a {
		background-size: 0 max(1px, 0.05em);
		text-shadow: none;
	}
}

/* Cover ------------------------------------------------------------------ */

.nameplate {
	padding-top: var(--space-m);
}

.nameplate__mark {
	color: var(--ink);
}

.nameplate__mark svg {
	width: 100%;
}

.nameplate__line {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-2xs) var(--space-m);
	margin-top: var(--space-s);
	padding-block: var(--space-xs);
	border-block: 1px solid var(--ink);
	font-size: var(--step--1);
	font-weight: 500;
	color: var(--ink-2);
}

.nameplate__date {
	font-variant-numeric: tabular-nums;
}

.site-main > .cover {
	margin-top: var(--space-xl);
}

/* Briefing --------------------------------------------------------------- */

.briefing__grid {
	display: grid;
	gap: var(--space-2xl) var(--col-gap);
}

.index-list .story--text {
	padding-block: var(--space-m);
}

.index-list li:last-child .story--text {
	border-bottom: 1px solid var(--rule);
}

.section-index {
	margin-top: var(--space-s);
	border-top: 1px solid var(--ink);
}

.section-index a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--space-s);
	padding-block: var(--space-xs);
	border-bottom: 1px solid var(--rule);
	font-weight: 500;
	transition: color var(--dur-fast) ease, padding var(--dur-base) var(--ease-out);
}

.section-index__count {
	font-size: var(--step--1);
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
	.section-index a:hover {
		color: var(--accent);
	}
}

@media (min-width: 64em) {
	.briefing__grid {
		grid-template-columns: repeat(12, 1fr);
	}

	.briefing__main {
		grid-column: 1 / span 8;
	}

	.briefing__main .section-head {
		grid-template-columns: 1fr;
	}

	.briefing__main .section-head > * {
		grid-column: 1;
		justify-self: start;
		text-align: left;
	}

	.briefing__aside {
		grid-column: 10 / -1;
		align-self: start;
		position: sticky;
		top: 5rem;
	}
}

/* Section desks ---------------------------------------------------------- */

.desk__grid {
	display: grid;
	gap: var(--space-l) var(--col-gap);
}

.desk__feature .story--card .story__title {
	font-size: var(--step-4);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.desk__feature .story--card .story__dek {
	font-size: var(--step-1);
}

.desk__list .story--text {
	padding-block: var(--space-s) var(--space-m);
	border-top-color: var(--rule);
}

.desk__list li:first-child .story--text {
	padding-top: 0;
	border-top: 0;
}

.desk__list .story--text .story__title {
	font-size: var(--step-2);
}

@media (min-width: 64em) {
	.desk__grid {
		grid-template-columns: repeat(12, 1fr);
	}

	.desk__feature {
		grid-column: 1 / span 7;
	}

	.desk__list {
		grid-column: 9 / -1;
	}

	.desk--flip .desk__feature {
		grid-column: 6 / -1;
		grid-row: 1;
	}

	.desk--flip .desk__list {
		grid-column: 1 / span 4;
		grid-row: 1;
	}
}

/* Long read -------------------------------------------------------------- */

.long-read {
	background: var(--paper-2);
	padding-bottom: var(--space-2xl);
}

.long-read__media {
	display: block;
	overflow: hidden;
}

.long-read__media img {
	width: 100%;
	aspect-ratio: 21 / 9;
	max-height: 80vh;
	object-fit: cover;
	filter: brightness(var(--img-dim));
}

.long-read__body {
	display: grid;
	gap: var(--space-s) var(--col-gap);
	padding-top: var(--space-xl);
}

.long-read__title {
	font-size: var(--step-6);
	line-height: 1;
	letter-spacing: -0.04em;
}

.long-read__title a:hover {
	color: var(--accent);
}

.long-read__side {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
}

.long-read__dek {
	font-family: var(--font-serif);
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--ink-2);
}

@media (max-width: 47.99em) {
	.long-read__media img {
		aspect-ratio: 4 / 3;
	}
}

@media (min-width: 64em) {
	.long-read__body {
		grid-template-columns: repeat(12, 1fr);
		align-items: end;
	}

	.long-read__body .label,
	.long-read__title {
		grid-column: 1 / span 8;
	}

	.long-read__side {
		grid-column: 9 / -1;
		grid-row: 2;
	}
}

/* Page heads and listings ------------------------------------------------ */

.page-head {
	padding-block: var(--space-2xl) var(--space-xl);
}

.page-head__grid {
	display: grid;
	gap: var(--space-s) var(--col-gap);
	align-items: end;
}

.page-head__title {
	font-size: var(--step-6);
	line-height: 1;
	letter-spacing: -0.04em;
}

.page-head__intro {
	max-width: 44ch;
	font-family: var(--font-serif);
	font-size: var(--step-1);
	line-height: 1.45;
	color: var(--ink-2);
}

.page-head__search {
	grid-column: 1 / -1;
	margin-top: var(--space-m);
	padding-block: var(--space-xs);
	border-block: 1px solid var(--ink);
}

@media (min-width: 64em) {
	.page-head__grid {
		grid-template-columns: repeat(12, 1fr);
	}

	.page-head__grid > .label {
		grid-column: 1 / -1;
	}

	.page-head__title {
		grid-column: 1 / span 8;
	}

	.page-head__intro {
		grid-column: 9 / -1;
	}
}

.listing {
	padding-top: var(--space-l);
	border-top: 1px solid var(--ink);
	max-width: var(--page-max);
	margin-inline: auto;
}

.site-main > .listing {
	margin-top: 0;
}

.listing__lead {
	grid-column: 1 / -1;
	padding-bottom: var(--space-xl);
	border-bottom: 1px solid var(--rule);
}

.pagination {
	margin-top: var(--space-2xl);
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-3xs);
	font-variant-numeric: tabular-nums;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding-inline: var(--space-2xs);
	border-radius: 999px;
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--ink-2);
}

.pagination .page-numbers.current {
	background: var(--ink);
	color: var(--paper);
}

.pagination a.page-numbers:hover {
	background: var(--paper-2);
	color: var(--ink);
}

.empty {
	display: grid;
	gap: var(--space-m);
	padding-block: var(--space-xl);
	font-family: var(--font-serif);
	font-size: var(--step-1);
	color: var(--ink-2);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	font-family: var(--font-sans);
	font-size: var(--step--1);
	font-weight: 500;
}

.chips a,
.tags a {
	display: inline-block;
	padding: 0.4em 0.9em;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	color: var(--ink);
	transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.chips a:hover,
.tags a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* Article ---------------------------------------------------------------- */

.article {
	--read: min(100% - 2 * var(--gutter), 44rem);
}

.article__head {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
	width: var(--read);
	max-width: none;
	padding: var(--space-2xl) 0 var(--space-l);
}

.article__title {
	font-size: var(--step-5);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.article__standfirst {
	font-family: var(--font-serif);
	font-size: var(--step-1);
	font-weight: 400;
	line-height: 1.4;
	color: var(--ink-2);
}

.article__byline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-s);
	margin-top: var(--space-2xs);
	padding-top: var(--space-xs);
	border-top: 1px solid var(--rule);
}

.article__byline .meta {
	font-size: var(--step--1);
}

.share {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.45em 0.9em;
	background: none;
	border: 1px solid var(--rule-strong);
	border-radius: 999px;
	font-size: var(--step--1);
	font-weight: 600;
	transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.share .icon {
	width: 1em;
	height: 1em;
}

.share:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.share:hover {
		border-color: var(--ink);
	}
}

.article__hero {
	margin-bottom: var(--space-2xl);
}

.article__hero img {
	width: 100%;
	max-height: 85vh;
	object-fit: cover;
	border-radius: var(--radius-s);
	filter: brightness(var(--img-dim));
}

.article__hero figcaption,
.prose figcaption {
	margin-top: var(--space-xs);
	font-size: var(--step--1);
	color: var(--ink-3);
}

.article__body,
.article__foot {
	width: var(--read);
	margin-inline: auto;
}

.article__foot:not(:empty) {
	margin-top: var(--space-xl);
	padding-top: var(--space-m);
	border-top: 1px solid var(--rule);
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	font-size: var(--step--1);
	font-weight: 500;
}

.article--page .article__head {
	padding-bottom: var(--space-xl);
}

/* Prose: the long-form reading column. */
.prose {
	font-family: var(--font-serif);
	font-size: var(--text-article);
	line-height: 1.62;
	font-optical-sizing: auto;
	hanging-punctuation: first;
}

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

/* Two-line drop cap: cap top aligned to line one, baseline on line two. */
.article:not(.article--page) .prose > p:first-child::first-letter {
	-webkit-initial-letter: 2;
	initial-letter: 2;
	margin-right: 0.12em;
	font-weight: 500;
}

/* Fallback where initial-letter is missing (Firefox). */
@supports not ((initial-letter: 2) or (-webkit-initial-letter: 2)) {
	.article:not(.article--page) .prose > p:first-child::first-letter {
		float: left;
		margin: 0.1em 0.08em 0 0;
		font-size: 3.05em;
		line-height: 0.78;
	}
}

.prose h2,
.prose h3,
.prose h4 {
	font-family: var(--font-sans);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.prose h2 {
	margin-top: 2.2em;
	font-size: var(--step-3);
}

.prose h3 {
	margin-top: 1.8em;
	font-size: var(--step-2);
}

.prose h4 {
	margin-top: 1.6em;
	font-size: var(--step-1);
}

.prose :is(h2, h3, h4) + * {
	margin-top: 0.6em;
}

.prose a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	text-decoration-color: var(--rule-strong);
	transition: text-decoration-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.prose a:hover {
	color: var(--accent);
	text-decoration-color: currentColor;
}

.prose strong {
	font-weight: 600;
}

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

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

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

.prose li::marker {
	color: var(--ink-3);
}

.prose blockquote,
.prose .wp-block-pullquote {
	margin-block: 1.8em;
	padding: 0;
	border: 0;
	font-size: var(--step-3);
	font-style: italic;
	line-height: 1.3;
	letter-spacing: -0.01em;
	text-indent: -0.4em;
}

.prose blockquote p + p {
	margin-top: 0.6em;
}

.prose blockquote cite {
	display: block;
	margin-top: var(--space-s);
	font-family: var(--font-sans);
	font-size: var(--step--1);
	font-style: normal;
	font-weight: 500;
	color: var(--ink-3);
	text-indent: 0;
}

.prose hr {
	width: 4rem;
	margin-block: 2.4em;
	border: 0;
	border-top: 1px solid var(--ink);
}

.prose img {
	border-radius: var(--radius-s);
	filter: brightness(var(--img-dim));
}

.prose figure {
	margin-block: 2em;
}

.prose .alignwide,
.prose .alignfull {
	width: min(100vw - 2 * var(--gutter), 64rem);
	margin-left: 50%;
	transform: translateX(-50%);
}

.prose .alignfull {
	width: 100vw;
}

.prose .alignfull img {
	border-radius: 0;
}

.prose code {
	padding: 0.1em 0.35em;
	background: var(--paper-2);
	border-radius: var(--radius-s);
	font-size: 0.85em;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
	margin-top: var(--space-4xl);
	padding-block: var(--space-2xl) var(--space-m);
	background: var(--paper-2);
	color: var(--ink-2);
	font-size: var(--step--1);
}

.site-footer__grid {
	display: grid;
	gap: var(--space-xl) var(--col-gap);
}

.site-footer__lede {
	margin-bottom: var(--space-s);
	font-size: var(--step-2);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--ink);
}

.site-footer__about p:not(.site-footer__lede) {
	max-width: 46ch;
	font-family: var(--font-serif);
	font-size: var(--step-0);
	line-height: 1.5;
}

.site-footer .label {
	margin-bottom: var(--space-s);
}

.site-footer__sections ul {
	columns: 2;
	column-gap: var(--col-gap);
}

.site-footer__sections li {
	break-inside: avoid;
}

.site-footer__sections a {
	display: inline-block;
	padding-block: 0.3em;
	color: var(--ink);
	font-weight: 500;
}

.site-footer__sections a:hover {
	color: var(--accent);
}

.segmented {
	display: inline-flex;
	padding: 3px;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 999px;
}

.segmented button {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.45em 0.85em;
	background: none;
	border: 0;
	border-radius: 999px;
	font-size: var(--step--1);
	font-weight: 500;
	color: var(--ink-2);
	transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.segmented .icon {
	width: 1.05em;
	height: 1.05em;
}

.segmented [aria-checked="true"] {
	background: var(--ink);
	color: var(--paper);
}

.site-footer__wordmark {
	display: block;
	margin-top: var(--space-2xl);
	color: var(--ink);
}

.site-footer__wordmark svg {
	width: 100%;
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-s);
	margin-top: var(--space-m);
	padding-top: var(--space-s);
	border-top: 1px solid var(--rule-strong);
	color: var(--ink-3);
}

.site-footer__links {
	display: flex;
	gap: var(--space-m);
}

.site-footer__links a:hover {
	color: var(--ink);
}

@media (min-width: 64em) {
	.site-footer__grid {
		grid-template-columns: repeat(12, 1fr);
	}

	.site-footer__about {
		grid-column: 1 / span 5;
	}

	.site-footer__sections {
		grid-column: 7 / span 3;
	}

	.site-footer__mode {
		grid-column: 10 / -1;
		justify-self: end;
	}
}

/* Reduced motion: keep fades and colour, drop movement. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}

	.story__media img,
	.section-head__link .icon,
	.site-header__brand,
	.nav,
	.tool,
	.share,
	.search-form button {
		transform: none !important;
	}

	.progress {
		display: none;
	}
}

/* A lead without a picture becomes a typographic lead. */
@media (min-width: 64em) {
	.story--lead.no-image .story__body {
		grid-column: 1 / span 9;
		padding-left: 0;
	}
}

.story--lead.no-image .story__title {
	font-size: var(--step-6);
	line-height: 1;
	letter-spacing: -0.04em;
}

.story--lead.no-image .story__dek {
	max-width: 52ch;
}

/* Page transitions ------------------------------------------------------- */
/*
 * Cross-document view transitions (Chrome, Edge, Safari 18.2+). Pages fade
 * and rise; a story image morphs into the article hero it opens. Browsers
 * without support simply navigate.
 */

@view-transition {
	navigation: auto;
}

.site-header {
	view-transition-name: site-header;
}

.story__media img,
.article__hero img,
.long-read__media img {
	view-transition-class: cc-media;
}

/*
 * Paint the transition backdrop with the page colour. Left alone it is the
 * browser canvas (near white), which flashes through in dark mode while the
 * two pages are mid-fade.
 */
::view-transition {
	background-color: var(--paper);
}

/* Old page holds solid and recedes; the new page fades up over it. */
::view-transition-old(root),
::view-transition-new(root) {
	mix-blend-mode: normal;
}

::view-transition-old(root) {
	animation: cc-page-out 420ms var(--ease-out) both;
}

::view-transition-new(root) {
	animation: cc-page-in 420ms var(--ease-out) both;
}

::view-transition-group(.cc-media) {
	animation-duration: 520ms;
	animation-timing-function: var(--ease-drawer);
}

::view-transition-old(.cc-media),
::view-transition-new(.cc-media) {
	width: 100%;
	height: 100%;
	object-fit: cover;
	overflow: clip;
}

::view-transition-group(site-header) {
	animation: none;
}

@keyframes cc-page-out {
	to {
		transform: translateY(-6px);
	}
}

@keyframes cc-page-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* Reduced motion: a plain crossfade, no movement, no morph. */
@media (prefers-reduced-motion: reduce) {
	.story__media img,
	.article__hero img,
	.long-read__media img {
		view-transition-name: none !important;
	}

	@keyframes cc-page-out {
		to {
			transform: none;
		}
	}

	@keyframes cc-page-in {
		from {
			opacity: 0;
		}
	}
}

/* Image credits ---------------------------------------------------------- */

.credit {
	font-family: var(--font-sans);
	font-size: var(--step--2);
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--ink-3);
}

.credit a {
	text-decoration: underline;
	text-decoration-color: var(--rule-strong);
	text-underline-offset: 0.2em;
}

.credit a:hover {
	color: var(--ink);
}

/* Hero: caption left, credit right, on one line where it fits. */
.article__hero figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--space-3xs) var(--space-m);
}

.article__hero figcaption .credit {
	margin-left: auto;
}

.long-read__credit {
	padding-top: var(--space-2xs);
	text-align: right;
}

/* Wraps the card image; the lead story places it on the grid. */
.story__figure {
	position: relative;
}

/* Legal documents and consent (Vu Legals) -------------------------------- */

/* The banner and preferences take their colours from the theme tokens, so they follow light and dark. */
:root:root {
	--vul-bg: var(--paper);
	--vul-fg: var(--ink);
	--vul-muted: var(--ink-2);
	--vul-accent: var(--ink);
	--vul-accent-fg: var(--paper);
	--vul-border: var(--rule);
	--vul-radius: var(--radius-m);
	--vul-btn-radius: 999px;
	--vul-font: var(--font-sans);
	--vul-text-size: 0.9375rem;
	--vul-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 16px 40px -12px rgb(0 0 0 / 0.28);
	--vul-switch-on: var(--accent);
	--vul-switch-off: var(--rule-strong);
	--vul-overlay: rgb(10 12 16 / 0.5);
}

.vul .vul-title {
	font-weight: 600;
	letter-spacing: -0.01em;
}

.vul .vul-btn {
	font-weight: 600;
}

.vul a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Legal pages: plainer reading, no drop cap, sans headings already set by .prose. */
.article--page .prose {
	font-size: var(--step-0);
	line-height: 1.6;
}

.vul-doc__section + .vul-doc__section,
.vul-policy__section + .vul-policy__section {
	margin-top: 2em;
}

.vul-doc > section > * + *,
.vul-policy > section > * + * {
	margin-top: 1em;
}

.prose .vul-doc h2,
.prose .vul-policy h2 {
	margin-top: 0;
	font-size: var(--step-2);
}

.prose .vul-policy h3 {
	margin-top: 1.6em;
	font-size: var(--step-1);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-sans);
	font-size: var(--step--1);
	line-height: 1.45;
}

.prose th,
.prose td {
	padding: 0.7em 0.8em 0.7em 0;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

.prose th {
	font-size: var(--step--2);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-3);
	border-bottom-color: var(--ink);
}

.prose td small {
	color: var(--ink-3);
}

@media (max-width: 47.99em) {
	.prose table,
	.prose tbody,
	.prose tr,
	.prose td {
		display: block;
	}

	.prose thead {
		display: none;
	}

	.prose tr {
		padding-block: 0.6em;
		border-bottom: 1px solid var(--rule);
	}

	.prose td {
		padding: 0.15em 0;
		border: 0;
	}

	.prose td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: var(--ink-3);
	}
}

.prose .vul-inline {
	margin-top: 1.2em;
	padding: var(--space-m);
	border: 1px solid var(--rule);
	border-radius: var(--radius-m);
	font-family: var(--font-sans);
}

/* Footer legal line */
.site-footer__legal {
	margin-top: var(--space-s);
	max-width: 80ch;
	font-size: var(--step--2);
	line-height: 1.5;
	color: var(--ink-3);
}

.site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3xs) var(--space-m);
}

.site-footer__legal-links a:hover {
	color: var(--ink);
}

.site-footer__base > p a:hover {
	color: var(--ink);
}
