/*
 * VirtualFont theme styles: "the specimen sheet".
 *
 * An editorial type-foundry direction: warm newsprint paper, near-black ink,
 * one vermilion signal colour, hairline rules, crop marks and monospaced
 * spec labels. The fonts being previewed are always the largest thing on
 * the page; the interface stays quiet around them.
 *
 * 1. Tokens     2. Base        3. Layout      4. Header & nav
 * 5. Footer     6. Page parts  7. Prose       8. Homepage
 * 9. Cards      10. Misc       11. Motion
 */

/* 1. Tokens ------------------------------------------------------------ */

:root {
	--vf-paper: #f3f0e8;
	--vf-tint: #e9e4d8;
	--vf-surface: #fbfaf6;
	--vf-ink: #141310;
	--vf-ink-2: #45413a;
	--vf-muted: #65615a;
	--vf-line: #dcd6c9;
	--vf-line-strong: #c2bcad;
	--vf-accent: #c4361a;
	--vf-accent-ink: #ffffff;
	--vf-accent-soft: #f6e0d6;
	--vf-signal: #ff5a36;
	--vf-success: #1f6b3a;
	--vf-warn: #7d5200;
	--vf-danger: #a2261b;
	--vf-radius: 14px;
	--vf-radius-sm: 8px;
	--vf-font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--vf-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--vf-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--vf-ease: cubic-bezier(.2, .7, .2, 1);
	--vf-ease-out: cubic-bezier(.16, 1, .3, 1);
	--vf-gutter: clamp(1rem, 4vw, 3rem);
	--vf-max: 1320px;
	--vf-header-h: 4.25rem;
	--vf-shadow: 0 1px 0 rgba(20, 19, 16, .04), 0 24px 48px -32px rgba(20, 19, 16, .28);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--vf-paper: #131210;
		--vf-tint: #1b1a17;
		--vf-surface: #1e1c19;
		--vf-ink: #f1ede4;
		--vf-ink-2: #cbc5b8;
		--vf-muted: #a39e92;
		--vf-line: #2f2c27;
		--vf-line-strong: #4a463d;
		--vf-accent: #ff6a45;
		--vf-accent-ink: #131210;
		--vf-accent-soft: #3a1d14;
		--vf-signal: #ff6a45;
		--vf-success: #6fcf8f;
		--vf-warn: #e8b85c;
		--vf-danger: #ff8a7a;
		--vf-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 24px 48px -28px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}

/* 2. Base -------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--vf-header-h) + 1rem);
}

body {
	margin: 0;
	background: var(--vf-paper);
	color: var(--vf-ink);
	font-family: var(--vf-font-ui);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--vf-font-display);
	font-optical-sizing: auto;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}

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

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

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

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

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

code,
kbd,
pre,
samp {
	font-family: var(--vf-font-mono);
	font-size: .9em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: .5rem;
	left: .5rem;
	z-index: 1001;
	padding: .75rem 1rem;
	background: var(--vf-ink);
	color: var(--vf-paper);
	border-radius: var(--vf-radius-sm);
	transform: translateY(-200%);
	transition: transform .15s;
}

.skip-link:focus {
	transform: none;
	color: var(--vf-paper);
}

.mono {
	font-family: var(--vf-font-mono);
}

/* 3. Layout ------------------------------------------------------------ */

.container {
	width: 100%;
	max-width: calc(var(--vf-max) + 2 * var(--vf-gutter));
	margin-inline: auto;
	padding-inline: var(--vf-gutter);
}

.site-main {
	display: block;
	min-height: 60vh;
	padding-bottom: clamp(3rem, 8vw, 7rem);
}

.site-main.home {
	padding-bottom: 0;
}

/* 4. Header & navigation ---------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: color-mix(in srgb, var(--vf-paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, background-color .25s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--vf-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--vf-header-h);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.wordmark {
	display: inline-flex;
	align-items: baseline;
	margin-right: auto;
	font-size: 1.4375rem;
	line-height: 1;
	color: var(--vf-ink);
	text-decoration: none;
	white-space: nowrap;
}

.wordmark:hover {
	color: var(--vf-ink);
}

.wordmark__a {
	font-family: var(--vf-font-ui);
	font-weight: 700;
	letter-spacing: -.04em;
}

.wordmark__b {
	font-family: var(--vf-font-display);
	font-style: italic;
	font-weight: 420;
	color: var(--vf-accent);
	margin-left: .03em;
	letter-spacing: -.02em;
	transition: font-weight .4s var(--vf-ease-out);
}

.wordmark:hover .wordmark__b {
	font-weight: 700;
}

.custom-logo {
	max-height: 40px;
	width: auto;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: .125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav a {
	position: relative;
	display: block;
	padding: .5rem .8rem;
	font-size: .9375rem;
	font-weight: 500;
	color: var(--vf-ink-2);
	text-decoration: none;
	transition: color .15s;
}

.primary-nav a::after {
	content: "";
	position: absolute;
	left: .8rem;
	right: .8rem;
	bottom: .3rem;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--vf-ease-out);
}

.primary-nav a:hover {
	color: var(--vf-ink);
}

.primary-nav a:hover::after {
	transform: scaleX(1);
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav a[aria-current="page"] {
	color: var(--vf-ink);
}

.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after,
.primary-nav .current-menu-ancestor > a::after,
.primary-nav a[aria-current="page"]::after {
	transform: scaleX(1);
	height: 2px;
	background: var(--vf-accent);
}

.site-header__cta {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	min-height: 2.5rem;
	padding: .45rem 1.05rem;
	font-size: .875rem;
	font-weight: 600;
	color: var(--vf-paper);
	background: var(--vf-ink);
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

.site-header__cta:hover {
	color: var(--vf-accent-ink);
	background: var(--vf-accent);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .5rem .9rem;
	font: inherit;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--vf-ink);
	background: transparent;
	border: 1px solid var(--vf-line-strong);
	border-radius: 999px;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s var(--vf-ease), opacity .2s;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -5px;
}

.nav-toggle__bars::after {
	top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1080px) {
	.site-header__cta {
		display: none;
	}
}

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex;
	}
	.js .primary-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: .5rem var(--vf-gutter) 1.5rem;
		background: var(--vf-paper);
		border-bottom: 1px solid var(--vf-line);
		box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .35);
	}
	.js .primary-nav.is-open {
		display: block;
		animation: vf-drop .3s var(--vf-ease-out);
	}
	.primary-nav .menu {
		flex-direction: column;
		gap: 0;
	}
	.primary-nav li + li {
		border-top: 1px solid var(--vf-line);
	}
	.primary-nav a {
		padding: .95rem 0;
		font-family: var(--vf-font-display);
		font-size: 1.5rem;
		font-weight: 400;
		color: var(--vf-ink);
	}
	.primary-nav a::after {
		display: none;
	}
	.primary-nav .current-menu-item > a,
	.primary-nav a[aria-current="page"] {
		font-style: italic;
		color: var(--vf-accent);
	}
	/* Without JavaScript the menu simply wraps below the logo. */
	html:not(.js) .site-header__inner {
		flex-wrap: wrap;
	}
	html:not(.js) .nav-toggle {
		display: none;
	}
}

@keyframes vf-drop {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* 5. Footer ------------------------------------------------------------ */

.site-footer {
	padding: clamp(3.5rem, 8vw, 6rem) 0 1.75rem;
	border-top: 1px solid var(--vf-line);
	background: var(--vf-paper);
	font-size: .9375rem;
	overflow: hidden;
}

.site-footer__grid {
	display: grid;
	gap: 2.5rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.site-footer__brand {
	grid-column: 1 / -1;
	max-width: 30rem;
}

@media (min-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1.7fr 1fr 1.4fr 1fr;
	}
	.site-footer__brand {
		grid-column: auto;
	}
}

.site-footer__brand .wordmark {
	margin-bottom: 1.25rem;
}

.site-footer__statement {
	font-family: var(--vf-font-display);
	font-size: 1.3125rem;
	line-height: 1.35;
	color: var(--vf-ink);
	max-width: 24ch;
}

.site-footer__small {
	font-size: .8125rem;
	color: var(--vf-muted);
	max-width: 36ch;
}

.site-footer__title {
	margin: 0 0 1rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.site-footer .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .menu li {
	margin: 0 0 .6rem;
}

.site-footer .menu a {
	color: var(--vf-ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .3s var(--vf-ease-out), color .15s;
}

.site-footer .menu a:hover {
	color: var(--vf-accent);
	background-size: 100% 1px;
}

.site-footer__mark {
	margin: clamp(3rem, 7vw, 5rem) 0 0;
	font-family: var(--vf-font-display);
	font-optical-sizing: auto;
	font-size: clamp(4rem, 17.5vw, 15.5rem);
	font-weight: 300;
	line-height: .8;
	letter-spacing: -.05em;
	white-space: nowrap;
	color: var(--vf-ink);
	user-select: none;
}

.site-footer__mark span {
	font-family: var(--vf-font-ui);
	font-weight: 700;
	letter-spacing: -.07em;
}

.site-footer__mark em {
	color: var(--vf-accent);
	padding-left: .02em;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--vf-line);
	color: var(--vf-muted);
	font-family: var(--vf-font-mono);
	font-size: .75rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__colophon {
	margin-right: auto !important;
}

.link-button {
	padding: 0;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}

/* 6. Page parts -------------------------------------------------------- */

.breadcrumbs {
	padding-top: 1.75rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	letter-spacing: .02em;
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--vf-muted);
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: .35rem;
	color: var(--vf-line-strong);
}

.breadcrumbs a {
	color: var(--vf-ink-2);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--vf-accent);
	text-decoration: underline;
}

.page-header {
	padding: clamp(1.75rem, 5vw, 4rem) 0 clamp(1.75rem, 4vw, 3rem);
	max-width: 60rem;
}

.page-header--narrow {
	max-width: 50rem;
}

.page-title {
	font-size: clamp(2.5rem, 6.4vw, 5.25rem);
	font-weight: 340;
	line-height: 1;
	letter-spacing: -.035em;
	margin: 0 0 .35em;
}

.page-lede {
	font-size: clamp(1.125rem, 1.9vw, 1.375rem);
	line-height: 1.5;
	color: var(--vf-ink-2);
	max-width: 40rem;
	margin: 0 0 1rem;
}

.eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .75rem;
	margin: 0 0 1.1rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-accent);
}

.eyebrow > span + span::before {
	content: "/";
	margin-right: .75rem;
	color: var(--vf-line-strong);
}

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

.eyebrow a:hover {
	text-decoration: underline;
}

.entry-meta {
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	letter-spacing: .02em;
	color: var(--vf-muted);
	margin: 1.25rem 0 0;
}

.section-title {
	font-size: clamp(1.75rem, 3.4vw, 2.75rem);
	font-weight: 360;
	letter-spacing: -.025em;
	margin: 0 0 .35em;
}

.section-lede {
	color: var(--vf-ink-2);
	max-width: 38rem;
	margin: 0;
}

.text-link {
	display: inline-block;
	font-weight: 600;
	color: var(--vf-ink);
	text-decoration: underline;
	text-decoration-color: var(--vf-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: .35em;
	white-space: nowrap;
}

.text-link:hover {
	color: var(--vf-accent);
}

.text-link--arrow::after {
	content: "→";
	display: inline-block;
	margin-left: .4rem;
	transition: transform .25s var(--vf-ease-out);
}

.text-link--arrow:hover::after {
	transform: translateX(4px);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 3rem;
	padding: .7rem 1.35rem;
	font: inherit;
	font-size: .9688rem;
	font-weight: 600;
	color: var(--vf-paper);
	background: var(--vf-ink);
	border: 1px solid var(--vf-ink);
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--vf-ease-out);
}

.btn:hover {
	background: var(--vf-accent);
	border-color: var(--vf-accent);
	color: var(--vf-accent-ink);
}

.btn:active {
	transform: translateY(1px);
}

.btn--ghost {
	color: var(--vf-ink);
	background: transparent;
	border-color: var(--vf-line-strong);
}

.btn--ghost:hover {
	color: var(--vf-ink);
	background: transparent;
	border-color: var(--vf-ink);
}

.search-form {
	max-width: 32rem;
}

.search-form label {
	display: block;
	margin-bottom: .5rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.search-form__row {
	display: flex;
	gap: .5rem;
}

.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 3rem;
	padding: .55rem 1.1rem;
	font: inherit;
	color: var(--vf-ink);
	background: var(--vf-surface);
	border: 1px solid var(--vf-line-strong);
	border-radius: 999px;
}

.search-form input[type="search"]:hover {
	border-color: var(--vf-muted);
}

/* Tool pages: header with the workflow strip. */

.tool-header {
	display: grid;
	gap: 0 3rem;
	max-width: none;
	padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.tool-header .page-title {
	max-width: 19ch;
}

.tool-header .page-lede {
	max-width: 36rem;
}

@media (min-width: 1000px) {
	.tool-header {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: end;
	}
	.tool-header .eyebrow {
		grid-column: 1 / -1;
	}
	.tool-header .page-title {
		margin-bottom: 0;
	}
	.tool-header .page-lede {
		margin-bottom: .4rem;
	}
}

.tool-steps {
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	border-top: 1px solid var(--vf-ink);
	border-bottom: 1px solid var(--vf-line);
	overflow-x: auto;
	scrollbar-width: none;
}

.tool-steps::-webkit-scrollbar {
	display: none;
}

.tool-steps ol {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: max-content;
}

.tool-steps li {
	flex: 1 1 0;
}

.tool-steps li + li {
	border-left: 1px solid var(--vf-line);
}

.tool-steps a {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	padding: .8rem 1.25rem .8rem 0;
	color: var(--vf-ink-2);
	text-decoration: none;
	transition: color .15s, background-color .2s;
}

.tool-steps li + li a {
	padding-left: 1rem;
}

.tool-steps a:hover {
	color: var(--vf-ink);
}

.tool-steps__num {
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	color: var(--vf-muted);
}

.tool-steps__label {
	font-family: var(--vf-font-display);
	font-size: 1.125rem;
}

.tool-steps a[aria-current="page"] {
	color: var(--vf-ink);
	box-shadow: inset 0 3px 0 var(--vf-accent);
}

.tool-steps a[aria-current="page"] .tool-steps__label {
	font-style: italic;
}

.tool-steps a[aria-current="page"] .tool-steps__num {
	color: var(--vf-accent);
}

.related-tools,
.related-guides {
	margin-top: clamp(3.5rem, 7vw, 6rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--vf-ink);
}

.related-tools .section-title,
.related-guides .section-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin-bottom: 1.75rem;
}

.guide-tools {
	margin-top: clamp(3.5rem, 7vw, 5.5rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--vf-ink);
}

.guide-tools.prose {
	max-width: none;
}

.guide-tools.prose h2 {
	margin: 0 0 1.75rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.topic-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.75rem;
}

.topic-nav a {
	padding: .45rem 1rem;
	font-size: .875rem;
	font-weight: 500;
	color: var(--vf-ink-2);
	text-decoration: none;
	border: 1px solid var(--vf-line-strong);
	border-radius: 999px;
	transition: all .2s;
}

.topic-nav a:hover,
.topic-nav a[aria-current="page"] {
	color: var(--vf-paper);
	background: var(--vf-ink);
	border-color: var(--vf-ink);
}

.empty-state {
	padding: 3rem 0;
	max-width: 36rem;
}

.not-found {
	padding: clamp(1rem, 4vw, 3rem) 0;
	display: grid;
	gap: 0 4rem;
}

@media (min-width: 960px) {
	.not-found {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
	}
	.not-found > :not(.not-found__glyph) {
		grid-column: 2;
	}
	.not-found__glyph {
		grid-row: 1 / span 5;
	}
}

.not-found__glyph {
	margin: 0 0 1rem;
	font-family: var(--vf-font-display);
	font-optical-sizing: auto;
	font-size: clamp(7rem, 24vw, 19rem);
	font-weight: 200;
	line-height: .8;
	letter-spacing: -.06em;
}

.not-found__glyph span {
	font-style: italic;
	color: var(--vf-accent);
}

.not-found .vft-tool-list {
	margin: 2rem 0;
}

.not-found__search {
	margin-top: 2rem;
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 2.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 .75rem;
	font-family: var(--vf-font-mono);
	font-size: .875rem;
	color: var(--vf-ink);
	text-decoration: none;
	border: 1px solid var(--vf-line);
	border-radius: 999px;
}

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

/* 7. Prose ------------------------------------------------------------- */

.prose {
	max-width: 42rem;
	font-size: 1.125rem;
	line-height: 1.72;
}

.entry-content--tool.prose {
	max-width: none;
	font-size: 1.0625rem;
}

.entry-content--tool > :not(.vft-tool):not(.vft-ad):not(.vft-tool-list):not(.vft-pair-grid):not(.vft-discover):not(.vft-recs) {
	max-width: 42rem;
}

/* Editorial notes after a tool sit in an offset column on wide screens. */
@media (min-width: 1100px) {
	.entry-content--tool > :not(.vft-tool):not(.vft-ad):not(.vft-tool-list):not(.vft-pair-grid):not(.vft-discover):not(.vft-recs) {
		margin-left: calc(100% / 3);
	}
	.entry-content--tool > h2 {
		position: relative;
	}
}

.entry-content--tool > .vft-tool + h2,
.entry-content--tool > .vft-ad + h2,
.entry-content--tool > .vft-tool-list + h2 {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--vf-ink);
}

:where(.prose) > * + * {
	margin-top: 0;
}

:where(.prose) h2 {
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 380;
	letter-spacing: -.02em;
	margin: 2.2em 0 .6em;
}

:where(.prose) h3 {
	font-size: clamp(1.3rem, 2.4vw, 1.625rem);
	font-weight: 420;
	margin: 1.9em 0 .5em;
}

:where(.prose) h4 {
	font-family: var(--vf-font-ui);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 1.8em 0 .4em;
}

:where(.prose) > h2:first-child,
:where(.prose) > h3:first-child {
	margin-top: 0;
}

:where(.prose) p,
:where(.prose) ul,
:where(.prose) ol {
	margin: 0 0 1.15em;
}

:where(.prose) ul,
:where(.prose) ol {
	padding-left: 1.3em;
}

:where(.prose) li {
	margin: 0 0 .45em;
	padding-left: .2em;
}

:where(.prose) li::marker {
	color: var(--vf-accent);
}

:where(.prose) ol > li::marker {
	font-family: var(--vf-font-mono);
	font-size: .85em;
}

:where(.prose) strong {
	font-weight: 650;
}

:where(.prose) a {
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	transition: text-decoration-color .2s;
}

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

:where(.prose) :not(pre) > code {
	padding: .1em .35em;
	font-size: .84em;
	background: var(--vf-tint);
	border: 1px solid var(--vf-line);
	border-radius: 4px;
	overflow-wrap: anywhere;
}

:where(.prose) pre,
:where(.prose) .wp-block-code {
	margin: 1.75em 0;
	padding: 1.2rem 1.35rem;
	overflow-x: auto;
	font-size: .875rem;
	line-height: 1.7;
	color: #efe9dd;
	background: #141310;
	border-radius: var(--vf-radius-sm);
	tab-size: 4;
}

:where(.prose) pre code {
	font-size: inherit;
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
}

:where(.prose) blockquote,
:where(.prose) .wp-block-quote {
	margin: 2em 0;
	padding: 0 0 0 1.5rem;
	border-left: 2px solid var(--vf-accent);
	font-family: var(--vf-font-display);
	font-size: 1.375em;
	font-style: italic;
	font-weight: 340;
	line-height: 1.4;
}

:where(.prose) hr {
	margin: 3em 0;
	border: 0;
	border-top: 1px solid var(--vf-line);
}

:where(.prose) table {
	width: 100%;
	margin: 1.75em 0;
	border-collapse: collapse;
	font-size: .9375rem;
	line-height: 1.5;
}

:where(.prose) th,
:where(.prose) td {
	padding: .7rem .75rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--vf-line);
}

:where(.prose) th {
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vf-muted);
	border-bottom-color: var(--vf-ink);
}

.table-wrap {
	overflow-x: auto;
	margin: 1.75em 0;
}

.table-wrap table {
	margin: 0;
	min-width: 32rem;
}

:where(.prose) .note {
	margin: 2em 0;
	padding: 1.1rem 1.35rem;
	font-size: 1rem;
	background: var(--vf-surface);
	border: 1px solid var(--vf-line);
	border-left: 3px solid var(--vf-accent);
	border-radius: 0 var(--vf-radius-sm) var(--vf-radius-sm) 0;
}

:where(.prose) .note p:last-child {
	margin-bottom: 0;
}

:where(.prose) .specimen-demo {
	margin: 1.75em 0;
	padding: 1.5rem 1.75rem;
	background: var(--vf-surface);
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
}

:where(.prose) img {
	border-radius: var(--vf-radius-sm);
}

.entry-figure {
	margin: 0 0 2rem;
	max-width: 56rem;
}

/* Long-form articles: drop cap and an offset reading column. */

.guide .entry-content > p:first-of-type::first-letter {
	float: left;
	margin: .06em .1em 0 0;
	font-family: var(--vf-font-display);
	font-optical-sizing: auto;
	font-size: 4.6em;
	font-weight: 300;
	line-height: .78;
	color: var(--vf-accent);
}

@media (min-width: 1100px) {
	.article-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 42rem) minmax(0, 1fr);
		gap: 0 3rem;
	}
	.article-layout > * {
		grid-column: 2;
	}
	.article-layout > .page-header {
		grid-column: 1 / span 2;
		max-width: 56rem;
	}
	.article-layout > .breadcrumbs,
	.article-layout > .related-guides,
	.article-layout > .guide-tools,
	.article-layout > .vft-ad {
		grid-column: 1 / -1;
	}
	.article-layout > .entry-content {
		max-width: none;
	}
}

/* 8. Homepage ---------------------------------------------------------- */

.hero {
	padding: clamp(1.5rem, 3.5vw, 2.75rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero__intro {
	display: grid;
	gap: 1.25rem 3rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

@media (min-width: 1000px) {
	.hero__intro {
		grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 1fr);
		align-items: end;
	}
	.hero__kicker {
		grid-column: 1 / -1;
	}
}

.hero__kicker {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .75rem;
	margin: 0;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.hero__kicker span:first-child {
	color: var(--vf-accent);
}

.hero__title {
	margin: 0;
	font-size: clamp(2.75rem, 6.2vw, 5.75rem);
	font-weight: 330;
	line-height: .95;
	letter-spacing: -.045em;
	text-wrap: initial;
}

.hero__line {
	display: block;
	overflow: hidden;
	padding-bottom: .08em;
	margin-bottom: -.08em;
}

.hero__line > * {
	display: inline-block;
}

.hero__title em {
	font-weight: 300;
	color: var(--vf-accent);
	padding-right: .06em;
}

.hero__aside {
	max-width: 30rem;
}

.hero__lede {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.5;
	color: var(--vf-ink-2);
	margin: 0 0 1.5rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	margin: 0;
}

.home-section {
	padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.home-section--text {
	padding-block: 0;
}

.home-section--tint {
	background: var(--vf-tint);
}

.home-section--ink {
	--vf-paper: #141310;
	--vf-surface: #1e1c19;
	--vf-ink: #f1ede4;
	--vf-ink-2: #cbc5b8;
	--vf-muted: #a39e92;
	--vf-line: #34302a;
	--vf-line-strong: #4a463d;
	--vf-accent: #ff6a45;
	background: #141310;
	color: var(--vf-ink);
}

/* Section opener: kicker, oversized title, lede and link. */

.section-intro {
	display: grid;
	gap: .75rem 3rem;
	margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
	padding-top: 1.1rem;
	border-top: 1px solid var(--vf-ink);
}

@media (min-width: 900px) {
	.section-intro {
		grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
		align-items: end;
	}
	.section-intro__kicker {
		grid-column: 1 / -1;
	}
}

.section-intro__kicker {
	display: flex;
	gap: 1rem;
	margin: 0 0 .5rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.section-intro__num {
	color: var(--vf-accent);
}

.section-intro__title {
	margin: 0;
	font-size: clamp(2.25rem, 5.2vw, 4.5rem);
	font-weight: 330;
	line-height: 1;
	letter-spacing: -.04em;
}

.section-intro__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.section-intro__lede {
	margin: 0;
	color: var(--vf-ink-2);
	max-width: 32rem;
}

/* Method band. */

.how {
	display: grid;
	gap: 2.5rem 4rem;
}

@media (min-width: 1000px) {
	.how {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	}
	.how .audiences {
		grid-column: 1 / -1;
	}
}

.how__head {
	padding-top: 1.1rem;
	border-top: 1px solid var(--vf-ink);
}

.how__head .section-intro__title {
	margin-bottom: 1.5rem;
}

.how__statement {
	font-family: var(--vf-font-display);
	font-size: clamp(1.375rem, 2.4vw, 1.875rem);
	font-style: italic;
	font-weight: 300;
	line-height: 1.3;
	color: var(--vf-ink-2);
	max-width: 22ch;
	margin: 0;
}

.steps {
	counter-reset: step;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--vf-line);
}

.steps__item {
	counter-increment: step;
	display: grid;
	grid-template-columns: 3rem minmax(0, 8rem) minmax(0, 1fr);
	gap: .25rem 1.5rem;
	align-items: baseline;
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--vf-line);
}

.steps__item::before {
	content: counter(step, decimal-leading-zero);
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	color: var(--vf-accent);
}

.steps__item h3 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-style: italic;
	font-weight: 300;
	margin: 0;
	transition: color .3s, transform .4s var(--vf-ease-out);
}

.steps__item:hover h3 {
	color: var(--vf-accent);
	transform: translateX(.2rem);
}

.steps__item p {
	color: var(--vf-ink-2);
	margin: 0;
}

@media (max-width: 640px) {
	.steps__item {
		grid-template-columns: 2.5rem minmax(0, 1fr);
	}
	.steps__item p {
		grid-column: 2;
	}
}

.audiences {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1rem 3rem;
	color: var(--vf-ink-2);
	font-size: 1rem;
}

.audiences p {
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--vf-line);
}

.audiences strong {
	display: block;
	margin-bottom: .25rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vf-ink);
}

/* Reading room (guides on the homepage). */

.reading {
	display: grid;
	gap: 0 3rem;
	border-top: 1px solid var(--vf-line);
}

@media (min-width: 900px) {
	.reading {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		grid-template-rows: repeat(3, auto);
	}
	.reading__item--lead {
		grid-row: 1 / span 3;
		border-bottom: 0 !important;
	}
}

.reading__item {
	position: relative;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--vf-line);
}

.reading__item--lead {
	display: flex;
	flex-direction: column;
	min-height: 22rem;
	padding: 2rem 0 2rem;
}

.reading__mark {
	position: absolute;
	right: 0;
	top: .5rem;
	font-family: var(--vf-font-display);
	font-optical-sizing: auto;
	font-size: clamp(8rem, 16vw, 13rem);
	font-style: italic;
	font-weight: 200;
	line-height: 1;
	color: var(--vf-accent);
	opacity: .9;
	pointer-events: none;
}

.reading__meta {
	display: flex;
	gap: 1rem;
	margin: 0 0 .75rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.reading__num {
	color: var(--vf-accent);
}

.reading__title {
	margin: 0 0 .5rem;
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	font-weight: 380;
	letter-spacing: -.02em;
	max-width: 22ch;
}

.reading__item--lead .reading__title {
	position: relative;
	margin-top: auto;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 330;
	line-height: 1.02;
	letter-spacing: -.035em;
	max-width: 14ch;
}

.reading__title a {
	color: var(--vf-ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 96% / 0 1px no-repeat;
	transition: background-size .4s var(--vf-ease-out), color .2s;
}

.reading__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.reading__title a:hover {
	background-size: 100% 1px;
}

.reading__item:has(a:focus-visible) {
	outline: 2px solid var(--vf-accent);
	outline-offset: 4px;
}

.reading__title a:focus-visible {
	outline: none;
}

.reading__excerpt {
	max-width: 36rem;
	margin: .5rem 0 1rem;
	color: var(--vf-ink-2);
	font-size: 1.0625rem;
}

.reading__time {
	margin: 0;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	color: var(--vf-muted);
}

/* 9. Cards (guide archive, search, related): an editorial index ------ */

.card-grid {
	counter-reset: card;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 0 2.5rem;
	border-top: 1px solid var(--vf-ink);
}

.card {
	counter-increment: card;
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 0 1.75rem;
	border-bottom: 1px solid var(--vf-line);
}

.card::before {
	content: counter(card, decimal-leading-zero);
	margin-bottom: 1.5rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	color: var(--vf-muted);
	transition: color .2s;
}

.card:hover::before {
	color: var(--vf-accent);
}

.card__eyebrow {
	position: absolute;
	top: 1.5rem;
	right: 0;
	margin: 0;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-accent);
}

.card__title {
	font-size: clamp(1.5rem, 2.4vw, 1.875rem);
	font-weight: 360;
	line-height: 1.08;
	letter-spacing: -.025em;
	margin: 0 0 .75rem;
}

.card__title a {
	color: var(--vf-ink);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 96% / 0 1px no-repeat;
	transition: background-size .4s var(--vf-ease-out);
}

.card__title a:hover {
	background-size: 100% 1px;
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__title a:focus-visible {
	outline: none;
}

.card:has(.card__title a:focus-visible) {
	outline: 2px solid var(--vf-accent);
	outline-offset: 3px;
}

.card__excerpt {
	color: var(--vf-ink-2);
	font-size: .9688rem;
	margin: 0 0 1.1rem;
	max-width: 34rem;
}

.card__meta {
	margin: auto 0 0;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	color: var(--vf-muted);
}

/* 10. Misc ------------------------------------------------------------- */

.vft-font-detail__header {
	padding: clamp(1.75rem, 5vw, 4rem) 0 2.5rem;
}

.vft-font-detail__title {
	font-size: clamp(3.25rem, 12vw, 10rem);
	font-weight: 400;
	line-height: .95;
	letter-spacing: -.03em;
	margin: 0 0 .25em;
	overflow-wrap: anywhere;
	text-wrap: initial;
}

.vft-font-detail__lede {
	font-size: clamp(1.0625rem, 2vw, 1.3125rem);
	color: var(--vf-ink-2);
	max-width: 42rem;
}

.vft-font-detail__cta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-top: 1.75rem;
}

.vft-font-detail__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem 4rem;
	margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

@media (min-width: 960px) {
	.vft-font-detail__columns {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	}
}

.vft-font-detail__info h2,
.vft-font-detail__embed h2,
.vft-section h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 360;
	letter-spacing: -.025em;
	padding-top: 1rem;
	border-top: 1px solid var(--vf-ink);
}

.vft-font-detail__info h3 {
	font-size: 1.375rem;
	margin-top: 1.75rem;
}

.vft-section {
	margin-top: clamp(4rem, 8vw, 6rem);
}

.vft-section .vft-discover {
	margin-bottom: 1.5rem;
}

.wp-block-shortcode {
	margin: 0;
}

.alignwide {
	max-width: 64rem;
}

.alignfull {
	max-width: none;
}

.wp-caption-text,
figcaption {
	font-size: .875rem;
	color: var(--vf-muted);
}

/* 11. Motion ----------------------------------------------------------- */

/* Hero headline: each line rises out of its own mask (transform only, so
   the text is painted immediately and layout never shifts). */
@media (prefers-reduced-motion: no-preference) {
	.hero__line > * {
		animation: vf-rise 1s var(--vf-ease-out) both;
	}
	.hero__line + .hero__line > * {
		animation-delay: .09s;
	}
	.hero__kicker,
	.hero__aside {
		animation: vf-fade .9s .25s var(--vf-ease-out) both;
	}

	/* Scroll reveals, only once the script has confirmed it can run them. */
	.vf-motion [data-reveal] {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity .9s var(--vf-ease-out), transform 1s var(--vf-ease-out);
	}
	.vf-motion [data-reveal].is-in {
		opacity: 1;
		transform: none;
	}
	.vf-motion [data-reveal] > * {
		transition: opacity .8s var(--vf-ease-out), transform .9s var(--vf-ease-out);
		transition-delay: calc(var(--i, 0) * 70ms + 80ms);
	}
	.vf-motion [data-reveal].is-instant,
	.vf-motion [data-reveal].is-instant > * {
		transition: none;
	}
	.vf-motion [data-reveal]:not(.is-in) > li {
		opacity: 0;
		transform: translateY(18px);
	}
}

@keyframes vf-rise {
	from {
		transform: translateY(105%);
	}
}

@keyframes vf-fade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.card:hover,
	.steps__item:hover h3 {
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.vft-ad,
	.vft-consent,
	.related-tools,
	.tool-steps {
		display: none !important;
	}
	body {
		background: #fff;
		color: #000;
	}
}
