/**
 * Windfonts Catalog — shared design tokens & primitives.
 *
 * The catalog is an editorial type library: warm paper, near-black ink,
 * generous whitespace, one restrained seal-red accent. All selectors are
 * namespaced (wfc- / wfd- / wf-) so host Global Styles keep control of the
 * rest of the site.
 */

:root {
	--wf-ink: #171310;
	--wf-ink-soft: #3f3934;
	--wf-muted: #766e65;
	--wf-faint: #8b8175;
	--wf-line: #e7e1d8;
	--wf-line-strong: #d7cec2;
	--wf-paper: #fbf9f5;
	--wf-surface: #f4f0e9;
	--wf-white: #ffffff;
	--wf-dark: #151210;
	--wf-dark-soft: #241f1a;
	--wf-header-bg: #57534e;
	--wf-accent: #b23a2e;
	--wf-accent-soft: #f8eae7;
	--wf-green: #2f6b46;
	--wf-green-soft: #eef6f0;
	--wf-amber: #92610e;
	--wf-amber-soft: #fbf2df;
	--wf-red: #a4372d;
	--wf-red-soft: #f9e9e6;
	--wf-radius: 22px;
	--wf-radius-md: 14px;
	--wf-radius-sm: 9px;
	--wf-shadow: 0 1px 2px rgba(23, 19, 16, 0.04), 0 18px 44px -26px rgba(23, 19, 16, 0.24);
	--wf-shadow-lift: 0 2px 6px rgba(23, 19, 16, 0.05), 0 26px 56px -26px rgba(23, 19, 16, 0.3);
	--wf-font: "Outfit", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--wf-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
	--wf-mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--wf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.wfc-shell,
.wfd {
	color: var(--wf-ink-soft);
	font-family: var(--wf-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wfc-shell *,
.wfd * {
	box-sizing: border-box;
}

/* Text primitives */
.wf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	color: var(--wf-faint);
	font-family: var(--wf-font);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.wf-eyebrow::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}

/* Badges */
.wf-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.22rem 0.55rem;
	border: 1px solid var(--wf-line);
	border-radius: 999px;
	background: var(--wf-white);
	color: var(--wf-muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.35;
	white-space: nowrap;
}

.wf-badge--open {
	border-color: #bcd8c5;
	background: var(--wf-green-soft);
	color: var(--wf-green);
}

.wf-badge--free {
	border-color: #bcd8c5;
	background: var(--wf-green-soft);
	color: var(--wf-green);
}

.wf-badge--restricted {
	border-color: #e7bdb7;
	background: var(--wf-red-soft);
	color: var(--wf-red);
}

.wf-badge--unknown {
	border-color: #e8d2a8;
	background: var(--wf-amber-soft);
	color: var(--wf-amber);
}

.wf-badge--solid {
	border-color: var(--wf-ink);
	background: var(--wf-ink);
	color: var(--wf-white);
}

.wf-badge--outline {
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.82);
}

/* Buttons */
.wf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.6rem;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--wf-ink);
	border-radius: var(--wf-radius-sm);
	background: var(--wf-ink);
	color: var(--wf-white);
	font-family: var(--wf-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s var(--wf-ease), color 0.2s var(--wf-ease), border-color 0.2s var(--wf-ease), transform 0.2s var(--wf-ease);
}

.wf-btn:hover {
	background: var(--wf-ink-soft);
	border-color: var(--wf-ink-soft);
	color: var(--wf-white);
}

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

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

.wf-btn--light {
	border-color: var(--wf-white);
	background: var(--wf-white);
	color: var(--wf-ink);
}

.wf-btn--light:hover {
	border-color: var(--wf-surface);
	background: var(--wf-surface);
	color: var(--wf-ink);
}

.wf-btn--on-dark {
	border-color: rgba(255, 255, 255, 0.32);
	background: transparent;
	color: var(--wf-white);
}

.wf-btn--on-dark:hover {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.08);
	color: var(--wf-white);
}

.wf-btn:focus-visible,
.wf-chip:focus-visible,
.wf-badge:focus-visible {
	outline: 2px solid var(--wf-accent);
	outline-offset: 2px;
}

.wf-btn svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.wf-icon {
	display: block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

/* Utility */
.wf-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wf-empty {
	padding: 4rem 1.5rem;
	border: 1px dashed var(--wf-line-strong);
	border-radius: var(--wf-radius);
	background: var(--wf-paper);
	text-align: center;
}

.wf-empty h2 {
	margin: 0 0 0.5rem;
	color: var(--wf-ink);
	font-size: 22px;
	font-weight: 500;
}

.wf-empty p {
	margin: 0 0 1.25rem;
	color: var(--wf-muted);
}

/* -------------------------------------------------------------------------
   Host font guard
   The site's custom "Ubuntu" face is actually Ubuntu Medium Italic loaded as
   weight 400. Catalog UI must not inherit it: scope UI text to Outfit while
   keeping specimen, heading, serif placeholder and mono rules on top.
   ---------------------------------------------------------------------- */
.wfc-shell p,
.wfc-shell li,
.wfc-shell a,
.wfc-shell span,
.wfc-shell button,
.wfc-shell label,
.wfc-shell select,
.wfc-shell option,
.wfc-shell input,
.wfd-crumbs,
.wfd-crumbs *,
.wfd-jump,
.wfd-jump *,
.wfd-main p,
.wfd-main li,
.wfd-main dd,
.wfd-main dt,
.wfd-main a,
.wfd-main span,
.wfd-main button,
.wfd-main label,
.wfd-main input,
.wfd-aside p,
.wfd-aside a,
.wfd-aside span,
.wfd-aside dd,
.wfd-aside dt,
.wfd-aside button,
.wfd-stage__en,
.wfd-controls__label,
.wfd-chip,
.wfd-custom,
.wfd-custom input,
.wfd-stage__notice,
.wfd-stage__badges .wf-badge,
.wfd-stage__actions .wf-btn {
	font-family: var(--wf-font) !important;
}

.wfc-shell .wfc-card__initial,
.wfc-shell .wfc-hero__ghost {
	font-family: var(--wf-serif) !important;
}

.wfd .wfd-codecard pre,
.wfd .wfd-codecard code,
.wfd .wfd-main code,
.wfd .wfd-codecard__label,
.wfd .wfd-section__num,
.wfd .wfd-related__idx {
	font-family: var(--wf-mono) !important;
}
