/*
 * VirtualFont Tools: component styles for the typography tools.
 * Design tokens fall back to sensible defaults; the VirtualFont theme
 * overrides them in its own :root (these defaults have zero specificity).
 *
 * The visual language is a type specimen sheet: the font being previewed is
 * the largest element, sits on a "sheet" with crop marks and is labelled in
 * a small monospaced spec line. Controls stay quiet around it.
 */

:where(: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: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--vf-font-display: Georgia, "Times New Roman", serif;
	--vf-font-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-shadow: 0 1px 0 rgba(20, 19, 16, .04), 0 24px 48px -32px rgba(20, 19, 16, .28);
}

.vft-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.vft-tool {
	font-family: var(--vf-font-ui);
	color: var(--vf-ink);
	margin-block: 0 3rem;
}

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

.vft-icon {
	flex: none;
}

/* ---------- The specimen sheet (shared surface with crop marks) ---------- */

.vft-hero__sheet,
.vft-stage,
.vft-pair-stage,
.vft-compare__col,
.vft-specimen-sheet {
	--vft-mark: color-mix(in srgb, currentColor 55%, transparent);
	position: relative;
	background-color: var(--vf-surface);
	background-image:
		linear-gradient(var(--vft-mark), var(--vft-mark)),
		linear-gradient(var(--vft-mark), var(--vft-mark)),
		linear-gradient(var(--vft-mark), var(--vft-mark)),
		linear-gradient(var(--vft-mark), var(--vft-mark)),
		linear-gradient(var(--vft-mark), var(--vft-mark)),
		linear-gradient(var(--vft-mark), var(--vft-mark)),
		linear-gradient(var(--vft-mark), var(--vft-mark)),
		linear-gradient(var(--vft-mark), var(--vft-mark));
	background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px;
	background-position:
		10px 10px, 10px 10px,
		right 10px top 10px, right 10px top 10px,
		10px bottom 10px, 10px bottom 10px,
		right 10px bottom 10px, right 10px bottom 10px;
	background-repeat: no-repeat;
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
}

.vft-spec {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .25rem 1rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* ---------- Form controls ---------- */

.vft-field {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	min-width: 0;
	border: 0;
	padding: 0;
	margin: 0;
}

.vft-field > label,
.vft-field > legend,
.vft-label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: .5rem;
	padding: 0;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.vft-field output {
	font-family: var(--vf-font-mono);
	font-weight: 500;
	font-size: .75rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--vf-ink);
	font-variant-numeric: tabular-nums;
}

.vft-tool input[type="text"],
.vft-tool input[type="search"],
.vft-tool input[type="email"],
.vft-tool select,
.vft-tool textarea,
.vft-contact input[type="text"],
.vft-contact input[type="email"],
.vft-contact select,
.vft-contact textarea,
.vft-compare__add select {
	width: 100%;
	min-height: 2.75rem;
	padding: .55rem .8rem;
	font: inherit;
	font-size: 1rem;
	color: var(--vf-ink);
	background: var(--vf-paper);
	border: 1px solid var(--vf-line-strong);
	border-radius: var(--vf-radius-sm);
	transition: border-color .15s var(--vf-ease), box-shadow .15s var(--vf-ease), background-color .15s;
}

.vft-tool textarea,
.vft-contact textarea {
	resize: vertical;
	line-height: 1.5;
}

.vft-tool select,
.vft-contact select,
.vft-compare__add select {
	appearance: none;
	padding-left: .7rem;
	padding-right: 2rem;
	text-overflow: ellipsis;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2365615a' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .7rem center;
}

.vft-tool input:hover,
.vft-tool select:hover,
.vft-tool textarea:hover,
.vft-contact :is(input, select, textarea):hover {
	border-color: var(--vf-muted);
}

.vft-tool :is(input[type="text"], input[type="search"], input[type="email"], select, textarea):focus,
.vft-contact :is(input, select, textarea):focus {
	background-color: var(--vf-surface);
	border-color: var(--vf-ink);
}

.vft-tool :is(input, select, textarea, button, a, [tabindex]):focus-visible,
.vft-contact :is(input, select, textarea, button):focus-visible,
.vft-consent button:focus-visible {
	outline: 2px solid var(--vf-accent);
	outline-offset: 2px;
}

/* Range sliders: hairline track, ink thumb. */
.vft-tool input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 1.75rem;
	margin: 0;
	background: transparent;
	cursor: pointer;
}

.vft-tool input[type="range"]::-webkit-slider-runnable-track {
	height: 2px;
	background: var(--vf-line-strong);
	border-radius: 2px;
}

.vft-tool input[type="range"]::-moz-range-track {
	height: 2px;
	background: var(--vf-line-strong);
	border-radius: 2px;
}

.vft-tool input[type="range"]::-moz-range-progress {
	height: 2px;
	background: var(--vf-ink);
}

.vft-tool input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin-top: -8px;
	background: var(--vf-ink);
	border: 3px solid var(--vf-surface);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--vf-ink), 0 2px 6px rgba(0, 0, 0, .2);
	transition: transform .15s var(--vf-ease-out);
}

.vft-tool input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	background: var(--vf-ink);
	border: 3px solid var(--vf-surface);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--vf-ink), 0 2px 6px rgba(0, 0, 0, .2);
}

.vft-tool input[type="range"]:hover::-webkit-slider-thumb,
.vft-tool input[type="range"]:active::-webkit-slider-thumb {
	transform: scale(1.18);
}

.vft-tool input[type="range"]:focus-visible {
	outline-offset: 4px;
}

.vft-tool input[type="color"] {
	width: 2.75rem;
	height: 2.75rem;
	padding: .25rem;
	border: 1px solid var(--vf-line-strong);
	border-radius: var(--vf-radius-sm);
	background: var(--vf-paper);
	cursor: pointer;
	flex: none;
}

.vft-color {
	display: flex;
	gap: .5rem;
}

.vft-color input[type="text"] {
	font-family: var(--vf-font-mono);
	font-size: .875rem;
	text-transform: lowercase;
}

.vft-check {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	font-size: .9375rem;
	min-height: 2.75rem;
	cursor: pointer;
}

.vft-check input {
	width: 1.125rem;
	height: 1.125rem;
	accent-color: var(--vf-ink);
	margin: 0;
	cursor: pointer;
}

.vft-check input:disabled + *,
.vft-check:has(input:disabled) {
	opacity: .55;
	cursor: not-allowed;
}

.vft-field > .vft-check {
	justify-content: flex-start;
	font-family: var(--vf-font-ui);
	font-size: .9375rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--vf-ink);
}

.vft-hint {
	font-size: .8125rem;
	color: var(--vf-muted);
	margin: 0;
}

.vft-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.vft-grid-font {
	grid-template-columns: minmax(0, 1.35fr) minmax(7.5rem, 1fr);
}

@media (max-width: 420px) {
	.vft-grid-2 {
		grid-template-columns: 1fr;
	}
}

.vft-segmented {
	display: inline-flex;
	flex-wrap: wrap;
	align-self: flex-start;
	padding: 3px;
	gap: 2px;
	background: var(--vf-paper);
	border: 1px solid var(--vf-line-strong);
	border-radius: 999px;
}

.vft-segmented label {
	position: relative;
	cursor: pointer;
}

.vft-segmented input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.vft-segmented span {
	display: block;
	padding: .4rem .85rem;
	font-size: .875rem;
	font-weight: 500;
	border-radius: 999px;
	transition: background-color .2s var(--vf-ease), color .2s var(--vf-ease);
}

.vft-segmented label:hover span {
	background: var(--vf-tint);
}

.vft-segmented input:checked + span {
	background: var(--vf-ink);
	color: var(--vf-paper);
}

.vft-segmented input:focus-visible + span {
	outline: 2px solid var(--vf-accent);
	outline-offset: 1px;
}

/* ---------- Buttons, chips, links ---------- */

.vft-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .6rem 1.1rem;
	font: inherit;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--vf-ink);
	background: transparent;
	border: 1px solid var(--vf-line-strong);
	border-radius: 999px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s var(--vf-ease), border-color .2s var(--vf-ease), transform .15s var(--vf-ease), color .2s;
}

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

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

.vft-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

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

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

.vft-btn--small {
	min-height: 2.25rem;
	padding: .4rem .9rem;
	font-size: .8125rem;
}

.vft-btn--icon {
	width: 2.75rem;
	padding: 0;
}

.vft-btn.is-done {
	background: var(--vf-success);
	border-color: var(--vf-success);
	color: #fff;
}

.vft-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.vft-chip {
	min-height: 2.5rem;
	padding: .45rem 1rem;
	font: inherit;
	font-size: .875rem;
	font-weight: 500;
	color: var(--vf-ink-2);
	background: transparent;
	border: 1px solid var(--vf-line-strong);
	border-radius: 999px;
	cursor: pointer;
	transition: background-color .2s var(--vf-ease), border-color .2s var(--vf-ease), color .2s var(--vf-ease);
}

.vft-chip:hover {
	color: var(--vf-ink);
	border-color: var(--vf-ink);
}

.vft-chip[aria-pressed="true"] {
	background: var(--vf-ink);
	border-color: var(--vf-ink);
	color: var(--vf-paper);
}

.vft-link {
	color: var(--vf-accent);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
}

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

.vft-link--arrow::after {
	content: " →";
}

.vft-tag {
	display: inline-block;
	padding: .2rem .6rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--vf-ink-2);
	background: transparent;
	border: 1px solid var(--vf-line-strong);
	border-radius: 999px;
	white-space: nowrap;
}

.vft-font-status {
	margin: .75rem 0 0;
	padding: .55rem .8rem;
	font-family: var(--vf-font-ui);
	font-size: .8125rem;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.4;
	color: #6b4700;
	background: #fff3d6;
	border-radius: var(--vf-radius-sm);
}

.vft-font-status[hidden] {
	display: none;
}

/* ---------- Layout primitives ---------- */

.vft-panel {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.5rem;
	background: var(--vf-surface);
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
}

.vft-split {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}

@media (min-width: 900px) {
	.vft-split {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
	.vft-split--preview {
		grid-template-columns: 320px minmax(0, 1fr);
	}
	.vft-split__stage {
		position: sticky;
		top: 5.5rem;
	}
	.vft-split--preview .vft-split__stage {
		position: static;
	}
}

/* On phones and small tablets the specimen stays in view while the controls
   scroll underneath it, so every change can be seen as it is made. */
@media (max-width: 899px) {
	.vft-playground .vft-split__stage,
	.vft-pairing .vft-split__stage {
		display: contents;
	}
	.vft-playground .vft-stage,
	.vft-pairing .vft-pair-stage {
		position: sticky;
		top: calc(var(--vf-header-h, 4.25rem) + .25rem);
		z-index: 15;
		min-height: 0;
		max-height: 42vh;
		max-height: 42svh;
		overflow: auto;
		overscroll-behavior: contain;
		box-shadow: 0 18px 30px -24px rgba(0, 0, 0, .45);
	}
	.vft-playground .vft-stage__text {
		overflow-wrap: break-word;
		hyphens: auto;
	}
	.vft-split > .vft-contrast,
	.vft-split > .vft-why {
		margin-top: -.5rem;
	}
}

@media (min-width: 1100px) {
	.vft-split:not(.vft-split--preview) {
		grid-template-columns: minmax(0, 1fr) 380px;
	}
	.vft-split--preview {
		grid-template-columns: 340px minmax(0, 1fr);
	}
}

.vft-split__stage {
	min-width: 0;
}

.vft-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.25rem;
	align-items: flex-end;
	padding: 1.1rem 1.35rem;
	background: var(--vf-surface);
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
}

.vft-toolbar--secondary {
	background: transparent;
	border: 0;
	padding: 1rem 0 0;
	justify-content: space-between;
	align-items: center;
}

.vft-field--grow {
	flex: 1 1 240px;
}

.vft-toolbar .vft-field--range,
.vft-compare__controls .vft-field--range {
	flex: 0 1 220px;
}

.vft-field--inline {
	flex-direction: row;
	align-items: center;
}

.vft-field--inline select {
	width: auto;
}

.vft-inline {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	align-items: center;
}

.vft-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.vft-output {
	display: grid;
	gap: .5rem 3rem;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--vf-ink);
}

@media (min-width: 1000px) {
	.vft-output {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		grid-template-rows: auto 1fr;
		align-items: start;
	}
	.vft-output > * {
		grid-column: 2;
	}
	.vft-output > .vft-output__title {
		grid-column: 1;
		grid-row: 1;
	}
	.vft-output > .vft-output__intro {
		grid-column: 1;
		grid-row: 2;
	}
	.vft-output > .vft-code {
		grid-row: 1 / span 2;
	}
}

.vft-output__title {
	font-family: var(--vf-font-display);
	font-size: clamp(1.625rem, 2.6vw, 2.25rem);
	font-weight: 360;
	letter-spacing: -.025em;
	line-height: 1.05;
	margin: 0 0 .5rem;
}

.vft-output__intro {
	color: var(--vf-ink-2);
	max-width: 40ch;
	margin: 0 0 1rem;
	font-size: .9688rem;
}

.vft-related {
	margin-top: 1rem;
	font-size: .9375rem;
}

.vft-related a {
	color: var(--vf-accent);
}

/* ---------- Code panel ---------- */

.vft-code {
	border: 1px solid #2a2721;
	border-radius: var(--vf-radius);
	background: #141310;
	color: #efe9dd;
	overflow: hidden;
}

.vft-code__bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .5rem;
	padding: .5rem .5rem .5rem .6rem;
	border-bottom: 1px solid #2f2b24;
}

.vft-code__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
}

.vft-code__tabs [role="tab"] {
	min-height: 2.25rem;
	padding: .35rem .8rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	font-weight: 500;
	color: #b9b1a3;
	background: transparent;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: color .15s, background-color .15s;
}

.vft-code__tabs [role="tab"]:hover {
	color: #fff;
}

.vft-code__tabs [role="tab"][aria-selected="true"] {
	color: #141310;
	background: #efe9dd;
}

.vft-code__tabs [role="tab"]:focus-visible,
.vft-code__pre:focus-visible {
	outline: 2px solid #ff8a66;
	outline-offset: 2px;
}

.vft-code .vft-btn--accent {
	background: #ff8a66;
	border-color: #ff8a66;
	color: #141310;
}

.vft-code .vft-btn--accent:hover {
	background: #fff;
	border-color: #fff;
	color: #141310;
}

.vft-code__pre {
	margin: 0;
	padding: 1.1rem 1.25rem 1.35rem;
	max-height: 26rem;
	overflow: auto;
	font-family: var(--vf-font-mono);
	font-size: .8125rem;
	line-height: 1.7;
	white-space: pre;
	tab-size: 4;
	background: transparent;
	color: inherit;
	border: 0;
}

.vft-code__pre code {
	font: inherit;
	background: none;
	color: inherit;
	padding: 0;
}

/* ---------- Explorer ---------- */

@media (min-width: 900px) {
	.vft-explorer > .vft-toolbar:first-child {
		position: sticky;
		top: calc(var(--vf-header-h, 4.25rem) + .5rem);
		z-index: 20;
		box-shadow: var(--vf-shadow);
	}
	.admin-bar .vft-explorer > .vft-toolbar:first-child {
		top: calc(var(--vf-header-h, 4.25rem) + 32px + .5rem);
	}
}

.vft-count {
	margin: 1.5rem 0 0;
	padding-bottom: .75rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	letter-spacing: .04em;
	color: var(--vf-muted);
	border-bottom: 1px solid var(--vf-ink);
}

.vft-font-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 0;
}

.vft-font-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .9rem;
	min-width: 0;
	padding: 1.5rem 1.5rem 1.25rem;
	border-bottom: 1px solid var(--vf-line);
	box-shadow: 1px 0 0 var(--vf-line);
	transition: background-color .3s var(--vf-ease);
}

.vft-font-card:hover,
.vft-font-card:focus-within {
	background: var(--vf-surface);
}

.vft-font-card[hidden] {
	display: none;
}

.vft-font-card__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: .75rem;
}

.vft-font-card__name {
	margin: 0;
	font-family: var(--vf-font-display);
	font-size: 1.25rem;
	font-weight: 400;
	letter-spacing: -.01em;
}

.vft-font-card__name a {
	color: inherit;
	text-decoration: none;
}

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

.vft-font-card__sample {
	margin: 0;
	font-size: var(--vft-sample-size, 32px);
	line-height: 1.12;
	overflow-wrap: anywhere;
	min-height: 2.25em;
	color: var(--vf-ink);
	opacity: .55;
	transition: opacity .4s var(--vf-ease);
}

.vft-font-card.is-loaded .vft-font-card__sample,
.vft-font-card:has(.vft-font-status:not([hidden])) .vft-font-card__sample {
	opacity: 1;
}

.vft-font-card__meta {
	margin: auto 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .75rem;
	justify-content: space-between;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .02em;
	color: var(--vf-muted);
}

.vft-font-card__designer {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.vft-font-card__actions {
	display: flex;
	gap: 1.25rem;
	font-size: .875rem;
	padding-top: .8rem;
	border-top: 1px dashed var(--vf-line);
}

.vft-empty {
	padding: 3rem 1rem;
	text-align: center;
	border: 1px dashed var(--vf-line-strong);
	border-radius: var(--vf-radius);
	margin-top: 1rem;
}

.vft-source-note {
	margin-top: 1.5rem;
	font-size: .875rem;
	color: var(--vf-muted);
}

.vft-source-note a {
	color: inherit;
}

/* ---------- Playground ---------- */

.vft-stage {
	min-height: clamp(340px, 55vh, 560px);
	padding: 1.5rem 2rem 2.5rem;
	background-color: #fff;
	color: #141310;
	overflow: hidden;
	transition: background-color .25s, color .25s;
}

.vft-stage__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .25rem 1rem;
	margin: 0 0 clamp(1.5rem, 4vw, 3rem);
	padding: 0 .5rem .75rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.vft-stage__meta > :first-child {
	font-weight: 600;
}

.vft-stage__meta > * {
	opacity: .72;
}

.vft-stage__text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	transition: opacity .25s var(--vf-ease);
}

.is-loading .vft-stage__text,
.is-loading .vft-pair-stage__heading,
.is-loading .vft-pair-stage__body {
	opacity: .5;
}

.vft-contrast {
	margin: .75rem 0 0;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	font-weight: 500;
}

.vft-contrast::before {
	content: "";
	display: inline-block;
	width: .55rem;
	height: .55rem;
	margin-right: .45rem;
	border-radius: 50%;
	background: currentColor;
	vertical-align: .05em;
}

.vft-contrast.is-pass {
	color: var(--vf-success);
}

.vft-contrast.is-warn {
	color: var(--vf-warn);
}

.vft-contrast.is-fail {
	color: var(--vf-danger);
}

/* ---------- Pairing ---------- */

.vft-pair-stage {
	padding: 1.5rem clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.vft-pair-stage__labels {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 2rem;
	margin: 0 -.5rem clamp(1.75rem, 4vw, 3rem);
	padding: 0 .5rem .75rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vf-muted);
	border-bottom: 1px solid var(--vf-line);
}

.vft-pair-stage__labels strong {
	color: var(--vf-ink);
	font-weight: 600;
}

.vft-pair-stage__heading {
	margin: 0 0 1.25rem;
	font-size: clamp(2.25rem, 5vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -.015em;
	max-width: 18ch;
	overflow-wrap: anywhere;
	color: var(--vf-ink);
	text-wrap: balance;
	transition: opacity .25s;
}

.vft-pair-stage__body {
	margin: 0 0 1.75rem;
	max-width: 60ch;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--vf-ink-2);
	overflow-wrap: anywhere;
	transition: opacity .25s;
}

.vft-pair-stage__button {
	display: inline-block;
	padding: .8rem 1.5rem;
	font-weight: 600;
	color: var(--vf-paper);
	background: var(--vf-ink);
	border-radius: 999px;
}

.vft-why {
	margin-top: 1rem;
	padding: .25rem 0 .25rem 1.25rem;
	border-left: 2px solid var(--vf-accent);
}

.vft-why.is-custom {
	border-left-color: var(--vf-line-strong);
}

.vft-why__title {
	margin: 0 0 .35rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vf-accent);
}

.vft-why.is-custom .vft-why__title {
	color: var(--vf-muted);
}

.vft-why p {
	margin: 0;
	font-size: .9688rem;
	line-height: 1.6;
	color: var(--vf-ink-2);
	max-width: 65ch;
}

.vft-pair-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--vf-line);
}

.vft-pair-nav__count {
	min-width: 6.5rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	text-align: center;
	color: var(--vf-muted);
}

.vft-pair-nav .vft-btn--accent {
	flex: 1 1 auto;
}

.vft-pair-library {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: 1.25rem;
	border-top: 1px solid var(--vf-ink);
}

/* Pairing cards: small editorial pages. */

.vft-pair-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 1rem;
}

.vft-pair-card {
	min-width: 0;
}

.vft-pair-card__link {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
	padding: 1.25rem 1.5rem 1.35rem;
	color: var(--vf-ink);
	text-decoration: none;
	background: var(--vf-surface);
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
	transition: border-color .3s var(--vf-ease), transform .4s var(--vf-ease-out), box-shadow .4s var(--vf-ease-out);
}

.vft-pair-card__link:hover {
	color: var(--vf-ink);
	border-color: var(--vf-ink);
	transform: translateY(-3px);
	box-shadow: var(--vf-shadow);
}

.vft-pair-card__labels {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .25rem 1rem;
	padding-bottom: .75rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .02em;
	color: var(--vf-ink-2);
	border-bottom: 1px solid var(--vf-line);
}

.vft-pair-card__role {
	color: var(--vf-muted);
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-right: .25rem;
}

.vft-pair-card__heading {
	display: block;
	font-size: clamp(1.75rem, 2.6vw, 2.125rem);
	line-height: 1.08;
	text-wrap: balance;
}

.vft-pair-card__body {
	display: block;
	font-size: .9688rem;
	line-height: 1.6;
	color: var(--vf-ink-2);
}

.vft-pair-card__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: .75rem;
	margin-top: auto;
	padding-top: .25rem;
}

.vft-pair-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}

.vft-pair-card__go {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--vf-ink);
}

.vft-pair-card__go .vft-icon {
	width: 16px;
	height: 16px;
	color: var(--vf-accent);
	transition: transform .3s var(--vf-ease-out);
}

.vft-pair-card__link:hover .vft-pair-card__go .vft-icon {
	transform: translateX(4px);
}

@media (min-width: 1000px) {
	.vft-pair-grid--feature {
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		grid-template-rows: auto auto;
		gap: 1.25rem;
	}
	.vft-pair-grid--feature > :first-child {
		grid-row: 1 / span 2;
	}
	.vft-pair-grid--feature > :first-child .vft-pair-card__link {
		padding: 1.75rem 2.25rem 2rem;
		gap: 1.5rem;
	}
	.vft-pair-grid--feature > :first-child .vft-pair-card__heading {
		margin-top: clamp(1rem, 4vw, 3.5rem);
		font-size: clamp(2.75rem, 5vw, 4.5rem);
		line-height: 1.02;
		max-width: 13ch;
	}
	.vft-pair-grid--feature > :first-child .vft-pair-card__body {
		font-size: 1.125rem;
		max-width: 44ch;
	}
}

/* ---------- Website preview ---------- */

.vft-group {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border: 0;
	padding: 0 0 1.25rem;
	margin: 0;
	border-bottom: 1px solid var(--vf-line);
}

.vft-group:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.vft-group > legend {
	padding: 0 0 .85rem;
	font-family: var(--vf-font-display);
	font-size: 1.25rem;
	font-weight: 400;
	font-style: italic;
	letter-spacing: 0;
	color: var(--vf-ink);
}

.vft-device {
	margin-inline: auto;
	max-width: 100%;
	background: var(--vf-surface);
	border: 1px solid var(--vf-line-strong);
	border-radius: var(--vf-radius);
	overflow: hidden;
	box-shadow: var(--vf-shadow);
	transition: max-width .45s var(--vf-ease-out), border-radius .45s var(--vf-ease-out);
}

/* Browser chrome: three dots and an address pill. */
.vft-device::before {
	content: "";
	display: block;
	height: 2.25rem;
	background:
		radial-gradient(circle, var(--vf-line-strong) 4px, transparent 4.5px) 14px 50% / 12px 12px no-repeat,
		radial-gradient(circle, var(--vf-line-strong) 4px, transparent 4.5px) 30px 50% / 12px 12px no-repeat,
		radial-gradient(circle, var(--vf-line-strong) 4px, transparent 4.5px) 46px 50% / 12px 12px no-repeat,
		linear-gradient(var(--vf-paper), var(--vf-paper)) 50% 50% / min(40%, 18rem) 1.25rem no-repeat;
	border-bottom: 1px solid var(--vf-line);
}

.vft-device.is-mobile {
	max-width: 390px;
	border-radius: 28px;
}

.vft-device > .vft-font-status {
	margin: .75rem;
}

.vft-site {
	--pv-h: Georgia, serif;
	--pv-b: system-ui, sans-serif;
	--pv-bg: #ffffff;
	--pv-fg: #1d1b18;
	--pv-fg-2: #55504a;
	--pv-line: #e7e2d9;
	--pv-accent: #2f5bd3;
	--pv-card: #f7f5f1;
	font-family: var(--pv-b);
	font-weight: var(--pv-bw, 400);
	font-size: var(--pv-base, 17px);
	line-height: var(--pv-blh, 1.6);
	color: var(--pv-fg);
	background: var(--pv-bg);
	transition: background-color .25s, color .25s;
}

.vft-site.is-dark {
	--pv-bg: #15171c;
	--pv-fg: #eceae6;
	--pv-fg-2: #b4b0a8;
	--pv-line: #2a2d34;
	--pv-accent: #8fb0ff;
	--pv-card: #1d2027;
}

.vft-site :is(.vft-site__logo, .vft-site__h1, .vft-site__h2, .vft-site__h3, .vft-site__h4) {
	font-family: var(--pv-h);
	font-weight: var(--pv-hw, 700);
	line-height: var(--pv-hlh, 1.15);
	letter-spacing: var(--pv-hls, 0);
	color: var(--pv-fg);
	overflow-wrap: anywhere;
}

.vft-site__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	padding: 1rem 1.75rem;
	border-bottom: 1px solid var(--pv-line);
}

.vft-site__logo {
	font-size: var(--pv-s1);
}

.vft-site__nav nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	font-size: var(--pv-small);
	color: var(--pv-fg-2);
}

.vft-site__nav-cta {
	color: var(--pv-accent);
	font-weight: 600;
}

.vft-site__hero {
	padding: clamp(2rem, 5vw, 3.5rem) 1.75rem 2.25rem;
	border-bottom: 1px solid var(--pv-line);
}

.vft-site__eyebrow {
	margin: 0 0 .75rem;
	font-size: var(--pv-small);
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pv-accent);
}

.vft-site__h1 {
	margin: 0 0 1rem;
	font-size: var(--pv-s4);
	max-width: 20ch;
}

.vft-site__lead {
	margin: 0 0 1.5rem;
	font-size: var(--pv-s1);
	color: var(--pv-fg-2);
	max-width: var(--pv-measure, 65ch);
}

.vft-site__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 0;
}

.vft-site__btn {
	display: inline-block;
	padding: .7em 1.3em;
	font-size: var(--pv-base);
	font-weight: 600;
	line-height: 1.2;
	color: var(--pv-bg);
	background: var(--pv-fg);
	border-radius: 8px;
}

.vft-site__btn--ghost {
	color: var(--pv-fg);
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--pv-line);
}

.vft-site__content {
	padding: 2rem 1.75rem 2.5rem;
}

.vft-site__content p {
	max-width: var(--pv-measure, 65ch);
	margin: 0 0 1em;
}

.vft-site__h2 {
	margin: 0 0 .75rem;
	font-size: var(--pv-s3);
}

.vft-site__h3 {
	margin: 2rem 0 1rem;
	font-size: var(--pv-s2);
}

.vft-site__h4 {
	margin: 0 0 .35rem;
	font-size: var(--pv-s1);
}

.vft-site__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.vft-site__card {
	padding: 1rem 1.1rem;
	background: var(--pv-card);
	border-radius: 8px;
}

.vft-site__card p {
	margin: 0;
	color: var(--pv-fg-2);
}

.vft-site__small {
	font-size: var(--pv-small);
	color: var(--pv-fg-2);
}

.vft-site [contenteditable] {
	border-radius: 2px;
	transition: box-shadow .2s;
}

.vft-site [contenteditable]:hover {
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--pv-accent) 40%, transparent);
}

.vft-site [contenteditable]:focus {
	outline: 2px dashed var(--pv-accent);
	outline-offset: 3px;
	box-shadow: none;
}

.vft-device.is-mobile .vft-site__nav nav span:not(.vft-site__nav-cta) {
	display: none;
}

.vft-preview .vft-split__stage > .vft-hint {
	margin-top: .75rem;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	text-align: center;
}

/* ---------- Compare ---------- */

.vft-compare__controls {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem 1.5rem;
}

.vft-compare__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 1rem;
	margin-top: 1.25rem;
}

.vft-compare__col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
	padding: 1.35rem 1.5rem 1.5rem;
	animation: vft-in .5s var(--vf-ease-out) both;
}

.vft-compare__head {
	display: flex;
	gap: .5rem;
	align-items: flex-end;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--vf-line);
}

.vft-compare__head .vft-field {
	flex: 1;
}

.vft-compare__sample {
	margin: .5rem 0 0;
	overflow-wrap: anywhere;
	min-height: 1.2em;
}

.vft-compare__glyphs {
	margin: 0;
	font-size: 1.75rem;
	letter-spacing: .04em;
	line-height: 1.3;
	color: var(--vf-ink-2);
	overflow-wrap: anywhere;
}

.vft-compare__para {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--vf-ink-2);
}

.vft-compare__metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem 1rem;
	margin: .25rem 0 0;
	padding-top: .9rem;
	border-top: 1px solid var(--vf-line);
}

.vft-compare__metrics dt {
	font-family: var(--vf-font-mono);
	font-size: .625rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.vft-compare__metrics dd {
	margin: .15rem 0 0;
	font-family: var(--vf-font-mono);
	font-size: .875rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.vft-compare__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.vft-compare__add {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	align-items: center;
	margin: 1.25rem 0 .75rem;
	padding: 1rem;
	border: 1px dashed var(--vf-line-strong);
	border-radius: var(--vf-radius);
}

.vft-compare__add select {
	width: auto;
	min-width: 220px;
	flex: 0 1 280px;
}

@keyframes vft-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

/* ---------- Homepage hero: live specimen sheet ---------- */

.vft-hero {
	font-family: var(--vf-font-ui);
	color: var(--vf-ink);
}

.vft-hero__sheet {
	padding: clamp(1.25rem, 2.6vw, 2rem) clamp(1.25rem, 3.4vw, 3rem) clamp(1.5rem, 3.4vw, 2.75rem);
	box-shadow: var(--vf-shadow);
}

.vft-hero__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem 2rem;
}

.vft-hero__input {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	flex: 1 1 22rem;
	max-width: 36rem;
}

.vft-hero__input label {
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-accent);
}

.vft-hero__input input {
	width: 100%;
	min-height: 2.75rem;
	padding: .35rem 0 .45rem;
	font: inherit;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: var(--vf-ink);
	caret-color: var(--vf-accent);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--vf-line-strong);
	border-radius: 0;
	transition: border-color .2s, box-shadow .2s;
}

.vft-hero__input input:hover {
	border-bottom-color: var(--vf-ink);
}

.vft-hero__input input:focus {
	outline: none;
	border-bottom-color: var(--vf-accent);
	box-shadow: 0 1px 0 var(--vf-accent);
}

.vft-hero__input input:focus-visible {
	outline: none;
}

.vft-hero__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .1rem;
	margin: 0;
	font-family: var(--vf-font-mono);
	font-size: .75rem;
	letter-spacing: .04em;
	text-align: right;
}

.vft-hero__name {
	font-weight: 600;
	color: var(--vf-ink);
}

.vft-hero__cat {
	color: var(--vf-muted);
	text-transform: uppercase;
	letter-spacing: .1em;
	font-size: .6875rem;
}

.vft-hero__specimen {
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	font-size: clamp(3rem, 8.6vw, 8.5rem);
	line-height: 1.02;
	letter-spacing: -.02em;
	color: var(--vf-ink);
	overflow-wrap: anywhere;
	min-height: 2.04em;
	text-wrap: balance;
	transition: opacity .3s var(--vf-ease);
}

.vft-hero__specimen.is-switching {
	opacity: .3;
}

.vft-hero__specimen .vft-ch {
	display: inline-block;
	white-space: pre;
}

.vft-hero__specimen .vft-w {
	display: inline-block;
	white-space: nowrap;
}

.vft-hero__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem 1.25rem;
	margin-top: clamp(1.25rem, 3vw, 2.25rem);
	padding-top: 1.1rem;
	border-top: 1px solid var(--vf-line);
}

.vft-hero__label {
	flex-basis: 100%;
	margin: 0;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.vft-hero__fonts {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	flex: 1 1 30rem;
	min-width: 0;
}

.vft-chip--font {
	font-size: .9375rem;
	padding-inline: .95rem;
	transition: background-color .2s var(--vf-ease), border-color .2s var(--vf-ease), color .2s var(--vf-ease), font-family 0s;
}

.vft-hero__play {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-left: auto;
	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;
}

.vft-hero__play:hover {
	color: var(--vf-accent);
}

.vft-hero__play .vft-icon {
	transition: transform .3s var(--vf-ease-out);
}

.vft-hero__play:hover .vft-icon {
	transform: translateX(4px);
}

@media (max-width: 700px) {
	.vft-hero__meta {
		flex-direction: row;
		gap: .75rem;
	}
	.vft-hero__fonts {
		flex-wrap: nowrap;
		flex-basis: 100%;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		margin-inline: calc(-1 * var(--vf-gutter, 1rem));
		padding: 2px var(--vf-gutter, 1rem);
		mask-image: linear-gradient(to right, transparent, #000 var(--vf-gutter, 1rem), #000 calc(100% - 2.5rem), transparent);
	}
	.vft-hero__fonts::-webkit-scrollbar {
		display: none;
	}
	.vft-chip--font {
		flex: none;
		scroll-snap-align: start;
	}
	.vft-hero__play {
		margin-left: 0;
	}
}

@media (max-width: 699px) {
	.vft-discover--mosaic > :first-child .vft-discover__link {
		min-height: 0;
	}
	.vft-discover--mosaic > :first-child .vft-discover__glyph {
		font-size: 6rem;
	}
	.vft-tool-list__link {
		display: grid;
		grid-template-columns: 5.5rem minmax(0, 1fr) auto;
		grid-template-areas: "step step step" "glyph title go" "glyph desc go";
		gap: .25rem 1rem;
		align-items: start;
		padding-bottom: 1.25rem;
	}
	.vft-tool-list__step { grid-area: step; }
	.vft-tool-list__glyph {
		grid-area: glyph;
		height: auto;
		margin: .25rem 0 0;
		font-size: 2.75rem;
	}
	.vft-tool-list__item--preview .vft-tool-list__glyph {
		width: 5rem;
		font-size: 2rem;
	}
	.vft-tool-list__item--playground .vft-tool-list__glyph::after {
		width: 4.5rem;
	}
	.vft-tool-list__item--playground .vft-tool-list__glyph::before {
		left: calc(2.4rem - 6px);
	}
	.vft-tool-list__title { grid-area: title; font-size: 1.25rem; }
	.vft-tool-list__desc { grid-area: desc; font-size: .875rem; }
	.vft-tool-list__go {
		grid-area: go;
		align-self: center;
		margin: 0;
	}
}

/* ---------- Discover: a curated collection ---------- */

.vft-discover {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	border-top: 1px solid var(--vf-ink);
}

.vft-discover__item {
	min-width: 0;
	border-bottom: 1px solid var(--vf-line);
	box-shadow: 1px 0 0 var(--vf-line);
}

.vft-discover__link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	height: 100%;
	min-height: 17rem;
	padding: 1.1rem 1.25rem 1.1rem;
	color: var(--vf-ink);
	text-decoration: none;
	overflow: hidden;
	transition: background-color .35s var(--vf-ease), color .35s var(--vf-ease);
}

.vft-discover__link:hover,
.vft-discover__link:focus-visible {
	color: var(--vf-paper);
	background: var(--vf-ink);
}

.vft-discover__top {
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .04em;
}

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

.vft-discover__link:hover .vft-discover__index {
	color: var(--vf-signal);
}

.vft-discover__meta {
	color: var(--vf-muted);
	text-align: right;
	transition: color .35s;
}

.vft-discover__link:hover .vft-discover__meta,
.vft-discover__link:focus-visible .vft-discover__meta {
	color: inherit;
	opacity: .75;
}

.vft-discover__glyph {
	display: block;
	margin: .25rem 0 0;
	font-size: clamp(4rem, 7vw, 5.75rem);
	line-height: .95;
	letter-spacing: -.02em;
	transform-origin: 0 100%;
	transition: transform .6s var(--vf-ease-out);
}

.vft-discover__link:hover .vft-discover__glyph {
	transform: scale(1.06) translateY(-2px);
}

.vft-discover__sample {
	font-size: 1.375rem;
	line-height: 1.18;
	overflow-wrap: anywhere;
}

.vft-discover__name {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: .5rem;
	margin-top: auto;
	padding-top: .75rem;
	font-weight: 600;
	font-size: .9375rem;
	border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.vft-discover__name .vft-icon {
	width: 18px;
	height: 18px;
	opacity: .5;
	transition: transform .35s var(--vf-ease-out), opacity .35s;
}

.vft-discover__link:hover .vft-discover__name .vft-icon {
	opacity: 1;
	transform: translateX(3px);
}

@media (min-width: 700px) {
	.vft-discover:not(.vft-discover--mosaic) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.vft-discover:not(.vft-discover--mosaic) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Homepage mosaic: one feature specimen and a rhythm of smaller ones. */
.vft-discover--mosaic {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vft-discover--mosaic > :first-child,
.vft-discover--mosaic > :nth-child(8) {
	grid-column: span 2;
}

@media (min-width: 700px) {
	.vft-discover--mosaic {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
	.vft-discover--mosaic > *,
	.vft-discover--mosaic > :nth-child(8) {
		grid-column: span 2;
	}
	.vft-discover--mosaic > :first-child {
		grid-column: span 6;
	}
	.vft-discover--mosaic > :nth-child(n + 5) {
		grid-column: span 3;
	}
}

@media (min-width: 1100px) {
	.vft-discover--mosaic {
		grid-template-columns: repeat(12, minmax(0, 1fr));
	}
	.vft-discover--mosaic > *,
	.vft-discover--mosaic > :nth-child(n + 5) {
		grid-column: span 3;
	}
	.vft-discover--mosaic > :first-child {
		grid-column: span 6;
		grid-row: span 2;
	}
	.vft-discover--mosaic > :nth-child(n + 6) {
		grid-column: span 4;
	}
}

.vft-discover--mosaic > :first-child .vft-discover__link {
	min-height: 24rem;
	padding: 1.5rem 1.75rem 1.4rem;
}

.vft-discover--mosaic > :first-child .vft-discover__glyph {
	font-size: clamp(7rem, 15vw, 14rem);
	line-height: .85;
}

.vft-discover--mosaic > :first-child .vft-discover__sample {
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	line-height: 1.08;
	max-width: 16ch;
}

@media (max-width: 560px) {
	.vft-discover__link {
		min-height: 13rem;
		padding: 1rem .9rem;
	}
	.vft-discover__glyph {
		font-size: 3.5rem;
	}
	.vft-discover__sample {
		font-size: 1.125rem;
	}
}

/* ---------- Tool list: a numbered workflow ---------- */

.vft-tool-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 0 1.5rem;
}

.vft-tool-list__item {
	min-width: 0;
}

.vft-tool-list__link {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	height: 100%;
	padding: 1rem 0 1.5rem;
	color: var(--vf-ink);
	text-decoration: none;
	border-top: 1px solid var(--vf-ink);
}

.vft-tool-list__link::before {
	content: "";
	position: absolute;
	left: 0;
	top: -1px;
	width: 100%;
	height: 3px;
	background: var(--vf-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--vf-ease-out);
}

.vft-tool-list__link:hover::before,
.vft-tool-list__link:focus-visible::before {
	transform: scaleX(1);
}

.vft-tool-list__link:hover {
	color: var(--vf-ink);
}

.vft-tool-list__step {
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	color: var(--vf-accent);
}

.vft-tool-list__glyph {
	position: relative;
	display: flex;
	align-items: baseline;
	height: 5.5rem;
	margin: .5rem 0 .25rem;
	font-family: var(--vf-font-display);
	font-optical-sizing: auto;
	font-size: 4.25rem;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -.03em;
}

.vft-tool-list__glyph > span {
	display: inline-block;
	transition: transform .5s var(--vf-ease-out), font-weight .5s var(--vf-ease-out);
}

/* Each tool has its own typographic emblem. */
.vft-tool-list__item--explorer .vft-tool-list__glyph > :last-child {
	font-family: var(--vf-font-mono);
	font-size: .72em;
	font-weight: 400;
	margin-left: .05em;
}

.vft-tool-list__item--explorer .vft-tool-list__link:hover .vft-tool-list__glyph > :first-child {
	font-style: italic;
}

.vft-tool-list__item--playground .vft-tool-list__glyph::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 6.5rem;
	height: 2px;
	background: linear-gradient(90deg, var(--vf-ink) 55%, var(--vf-line-strong) 55%);
}

.vft-tool-list__item--playground .vft-tool-list__glyph::before {
	content: "";
	position: absolute;
	left: calc(3.575rem - 6px);
	bottom: -5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--vf-ink);
	transition: transform .6s var(--vf-ease-out);
}

.vft-tool-list__item--playground .vft-tool-list__link:hover .vft-tool-list__glyph::before {
	transform: translateX(1.5rem);
}

.vft-tool-list__item--playground .vft-tool-list__link:hover .vft-tool-list__glyph > span {
	font-weight: 700;
}

.vft-tool-list__item--pairing .vft-tool-list__glyph > :first-child {
	font-weight: 600;
	font-style: italic;
}

.vft-tool-list__item--pairing .vft-tool-list__glyph > :last-child {
	font-family: var(--vf-font-ui);
	font-weight: 400;
	font-size: .8em;
	color: var(--vf-accent);
}

.vft-tool-list__item--pairing .vft-tool-list__link:hover .vft-tool-list__glyph > :last-child {
	transform: translateX(.15em);
}

.vft-tool-list__item--preview .vft-tool-list__glyph {
	align-items: flex-end;
	width: 7rem;
	padding: 1.1rem .5rem .1rem;
	font-size: 3rem;
	border: 1px solid var(--vf-ink);
	border-radius: 6px;
	background: linear-gradient(var(--vf-ink), var(--vf-ink)) 0 .7rem / 100% 1px no-repeat;
}

.vft-tool-list__item--preview .vft-tool-list__glyph::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 5px;
	width: 16px;
	height: 3px;
	background: radial-gradient(circle, var(--vf-ink) 1.4px, transparent 1.6px) 0 0 / 6px 3px repeat-x;
}

.vft-tool-list__item--preview .vft-tool-list__link:hover .vft-tool-list__glyph > span {
	transform: translateY(-3px);
}

.vft-tool-list__item--compare .vft-tool-list__glyph > :first-child {
	font-weight: 200;
	padding-right: .12em;
	border-right: 1px solid var(--vf-line-strong);
}

.vft-tool-list__item--compare .vft-tool-list__glyph > :last-child {
	font-weight: 800;
	padding-left: .12em;
}

.vft-tool-list__item--compare .vft-tool-list__link:hover .vft-tool-list__glyph > :first-child {
	font-weight: 800;
}

.vft-tool-list__item--compare .vft-tool-list__link:hover .vft-tool-list__glyph > :last-child {
	font-weight: 200;
}

.vft-tool-list__title {
	font-family: var(--vf-font-display);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.015em;
}

.vft-tool-list__desc {
	font-size: .9375rem;
	color: var(--vf-ink-2);
	line-height: 1.5;
}

.vft-tool-list__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: auto;
	border: 1px solid var(--vf-line-strong);
	border-radius: 50%;
	transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--vf-ease-out);
}

.vft-tool-list__link:hover .vft-tool-list__go {
	color: var(--vf-paper);
	background: var(--vf-ink);
	border-color: var(--vf-ink);
	transform: translateX(4px);
}

.vft-tool-list--workflow {
	counter-reset: none;
}

@media (min-width: 1100px) {
	.vft-tool-list--workflow {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0;
	}
	.vft-tool-list--workflow .vft-tool-list__link {
		padding: 1.1rem 1.5rem 1.75rem;
		min-height: 24rem;
		border-top-width: 1px;
	}
	.vft-tool-list--workflow .vft-tool-list__item + .vft-tool-list__item .vft-tool-list__link {
		border-left: 1px solid var(--vf-line);
	}
	.vft-tool-list--workflow .vft-tool-list__item:first-child .vft-tool-list__link {
		padding-left: 0;
	}
	.vft-tool-list--workflow .vft-tool-list__link:hover {
		background: linear-gradient(to bottom, var(--vf-surface), transparent);
	}
	.vft-tool-list--workflow .vft-tool-list__glyph {
		margin: 2.5rem 0 1.75rem;
	}
}

/* ---------- Font detail page ---------- */

.vft-specimen .vft-toolbar {
	margin-bottom: 0;
}

.vft-waterfall {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	border-top: 1px solid var(--vf-ink);
}

.vft-waterfall__row {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: baseline;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--vf-line);
	transition: background-color .25s;
}

.vft-waterfall__row:hover {
	background: linear-gradient(90deg, var(--vf-surface), transparent);
}

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

.vft-waterfall__text {
	display: block;
	font-size: var(--vft-waterfall-size, 48px);
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vft-glyphs {
	margin: 2.5rem 0 0;
	padding: clamp(1.5rem, 4vw, 3rem);
	font-size: clamp(1.75rem, 4.4vw, 3.25rem);
	line-height: 1.3;
	letter-spacing: .04em;
	overflow-wrap: anywhere;
	word-break: break-word;
	background: var(--vf-ink);
	color: var(--vf-paper);
	border-radius: var(--vf-radius);
}

.vft-facts {
	display: grid;
	gap: 0;
	margin: 0 0 1.5rem;
}

.vft-facts > div {
	display: grid;
	grid-template-columns: minmax(8rem, 35%) 1fr;
	gap: 1rem;
	padding: .75rem 0;
	border-bottom: 1px solid var(--vf-line);
	font-size: .9375rem;
}

.vft-facts dt {
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--vf-muted);
	padding-top: .2rem;
}

.vft-facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.vft-weights-pick {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.1rem;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.vft-weights-pick legend {
	padding: 0 0 .35rem;
	font-family: var(--vf-font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

/* ---------- Contact ---------- */

.vft-contact {
	max-width: 44rem;
	font-family: var(--vf-font-ui);
}

.vft-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vft-notice {
	margin: 0;
	padding: .85rem 1.1rem;
	border-radius: var(--vf-radius-sm);
	font-weight: 500;
}

.vft-notice--success {
	color: var(--vf-success);
	background: #e3f2e7;
}

.vft-notice--error {
	color: var(--vf-danger);
	background: #fbe6e3;
}

/* ---------- Ads, recommendations, consent ---------- */

.vft-ad {
	display: none;
	margin: 2.5rem auto;
	max-width: 100%;
	min-height: 120px;
	text-align: center;
}

.vft-ads-ok .vft-ad {
	display: block;
}

.vft-ad__label {
	display: block;
	margin-bottom: .35rem;
	font-family: var(--vf-font-mono);
	font-size: .625rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--vf-muted);
}

.vft-recs {
	margin: 2.5rem 0;
	padding: 1.35rem 1.5rem;
	border: 1px solid var(--vf-line);
	border-radius: var(--vf-radius);
	background: var(--vf-surface);
}

.vft-recs__title {
	margin: 0 0 .5rem;
	font-size: 1.25rem;
}

.vft-recs__disclosure {
	font-size: .8125rem;
	color: var(--vf-muted);
}

.vft-recs__list {
	margin: 0;
	padding-left: 1.1rem;
}

.vft-recs__list li {
	margin: .4rem 0;
}

.vft-recs__list span {
	display: block;
	font-size: .875rem;
	color: var(--vf-ink-2);
}

.vft-consent {
	position: fixed;
	z-index: 1000;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	max-width: 40rem;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.35rem;
	font-family: var(--vf-font-ui);
	font-size: .9375rem;
	color: var(--vf-ink);
	background: var(--vf-surface);
	border: 1px solid var(--vf-line-strong);
	border-radius: var(--vf-radius);
	box-shadow: 0 20px 50px -20px rgba(20, 19, 16, .45);
	animation: vft-in .5s var(--vf-ease-out) both;
}

.vft-consent[hidden] {
	display: none;
}

.vft-consent__text {
	flex: 1 1 18rem;
	margin: 0;
	line-height: 1.5;
}

.vft-consent__text a {
	color: var(--vf-accent);
}

.vft-consent__actions {
	display: flex;
	gap: .5rem;
}

@media (prefers-reduced-motion: reduce) {
	.vft-tool *,
	.vft-hero *,
	.vft-pair-card__link,
	.vft-discover__link,
	.vft-discover__link *,
	.vft-tool-list__link,
	.vft-tool-list__link *,
	.vft-consent {
		transition: none !important;
		animation: none !important;
	}
	.vft-pair-card__link:hover,
	.vft-discover__link:hover .vft-discover__glyph {
		transform: none;
	}
}
