/*
 * FareRabbit type scale. Source of truth: /DESIGN_SYSTEM.md §3.
 * Do not use font-size values outside this scale in templates.
 */

body {
	font-family: var(--fr-font-body);
	font-size: 0.95rem; /* body */
	line-height: 1.5;
}

h1, h2, h3, h4,
.fr-display-xl, .fr-display-lg, .fr-heading-xl, .fr-heading-lg, .fr-heading-md {
	font-family: var(--fr-font-display);
	margin: 0 0 var(--fr-space-3) 0;
}

.fr-display-xl {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.05;
}

.fr-display-lg {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
}

.fr-heading-xl {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
}

.fr-heading-lg {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.fr-heading-md {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.25;
}

.fr-body-lg {
	font-size: 1.05rem;
	line-height: 1.5;
}

.fr-body-sm {
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--fr-text-muted);
}

.fr-label {
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.fr-caption {
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--fr-text-muted);
}

@media (min-width: 768px) {
	.fr-display-xl { font-size: 4rem; }
	.fr-display-lg { font-size: 3rem; }
	.fr-heading-xl { font-size: 2rem; }
	.fr-heading-lg { font-size: 1.5rem; }
	.fr-heading-md { font-size: 1.15rem; }
}

/* Visually hidden but still announced by assistive tech — e.g. a
   <label> for a form field whose placeholder already shows the same
   information visually (Phase 1D-C Alert signup forms). */
.fr-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
