/*
 * typography.css
 * Type scale and text styles.
 */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-display);
	font-weight: var(--weight-medium);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
	text-wrap: balance;
}

h1 {
	font-size: var(--text-2xl);
}

h2 {
	font-size: var(--text-xl);
}

h3 {
	font-size: var(--text-lg);
}

h4,
h5,
h6 {
	font-size: var(--text-md);
}

/*
 * Display type: the oversized lowercase statements used for the hero and
 * section openers ("we are tweak.").
 */
.display {
	font-family: var(--font-display);
	font-size: var(--text-display);
	font-weight: var(--weight-medium);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	text-transform: lowercase;
	text-wrap: balance;
}

/* Small uppercase label, used for eyebrows, categories and meta. */
.label {
	font-size: var(--text-xs);
	font-weight: var(--weight-medium);
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--color-muted);
}

.lead {
	font-size: var(--text-lg);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
	text-wrap: pretty;
}

.text-muted {
	color: var(--color-muted);
}

strong,
b {
	font-weight: var(--weight-bold);
}

small {
	font-size: var(--text-sm);
}

code,
kbd,
pre {
	font-family: var(--font-mono);
	font-size: 0.9em;
}

blockquote {
	font-size: var(--text-lg);
	line-height: var(--leading-snug);
	letter-spacing: var(--tracking-tight);
}

/*
 * Editor-authored content. Scoped so that WordPress output gets sensible
 * rhythm without leaking margins into bespoke layouts.
 */
.prose > * + * {
	margin-block-start: var(--space-sm);
}

.prose > * + :is(h2, h3, h4) {
	margin-block-start: var(--space-md);
}

.prose p,
.prose li {
	line-height: var(--leading-loose);
	text-wrap: pretty;
}

.prose :is(ul, ol) {
	padding-inline-start: 1.25em;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose :is(ul, ol) > li + li {
	margin-block-start: var(--space-2xs);
}

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

.prose a:hover {
	color: var(--color-muted);
}
