/*
 * typography.css — the type system (Fraunces display + Schibsted Grotesk body).
 *
 * Element defaults + a few intent utilities (.eyebrow, .lead, .display).
 * All sizes/tracking come from tokens.css. text-wrap: balance keeps headline
 * ragging tidy without manual line breaks.
 */

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: var(--lh-heading);
	font-weight: 500;
	margin: 0 0 var(--s-4);
	overflow-wrap: break-word; /* long Finnish compounds never overflow */
	text-wrap: balance;
}

h1,
.display {
	font-size: var(--fs-display);
	line-height: var(--lh-tight);
	letter-spacing: -0.02em;
}

h2 {
	font-size: var(--fs-h2);
	letter-spacing: -0.01em;
}

h3 {
	font-size: var(--fs-h3);
}

/* h4 shifts to the body face — a small sans label, not a serif heading. */
h4 {
	font-family: var(--font-body);
	font-size: var(--fs-body-lg);
	font-weight: 600;
	letter-spacing: 0;
	line-height: var(--lh-heading);
}

p {
	margin: 0 0 var(--s-4);
	max-width: var(--measure);
	overflow-wrap: break-word;
}

a {
	color: var(--koivu);
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color var(--dur-fast) var(--ease);
}

a:hover {
	color: var(--koivu-dark);
}

ul,
ol {
	margin: 0 0 var(--s-4);
	padding-left: var(--s-6);
	max-width: var(--measure);
}

li {
	margin-bottom: var(--s-2);
}

/* ---- Intent utilities ---- */
.eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--koivu);
	margin: 0 0 var(--s-4);
}

.lead {
	font-size: var(--fs-body-lg);
	line-height: var(--lh-body);
	color: var(--muted);
	max-width: 60ch;
}

.u-small {
	font-size: var(--fs-small);
}
