html {
	font-size: calc(100% * var(--type-scale, 1));
}

:root {
	--text-display: clamp(2.75rem, 0.25rem + 3.91vw, 4rem);
	--text-h1:      clamp(2.25rem, 1.25rem + 5vw, 3.75rem);
	--text-h2:      clamp(1.875rem, 1.56rem + 1.36vw, 3rem);
	--text-h3:      clamp(1.5rem, 1.29rem + 0.91vw, 2.25rem);
	--text-h4:      clamp(1.25rem, 1.11rem + 0.6vw, 1.75rem);
	--text-h5:      clamp(1.125rem, 1.05rem + 0.3vw, 1.375rem);
	--text-h6:      clamp(1rem, 0.96rem + 0.15vw, 1.125rem);
	--text-body:    clamp(1rem, 0.98rem + 0.08vw, 1.0625rem);

	--text-small:   12px;
	--text-caption: 12px;

	--text-button:  var(--text-body);
}

@media (min-width: 106.25rem) {
	:root {
		--text-display: clamp(4rem, -4.5rem + 8vw, 5rem);
	}
}

body {
	font-family: var(--font-body);
	font-size: var(--text-body);
	font-weight: var(--font-weight-regular);
	line-height: var(--line-height-body);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--font-heading);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-heading);
	color: var(--color-text);
	text-wrap: balance;
}

.text-display, .h-display {
	font-size: var(--text-display);
	font-weight: var(--font-weight-medium);
	line-height: var(--line-height-tight);
	letter-spacing: -0.02em;
}

h1, .h1 { font-size: var(--text-h1); letter-spacing: -0.02em; line-height: var(--line-height-tight); }
h2, .h2 { font-size: var(--text-h2); letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--text-h3); letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--text-h4); }
h5, .h5 { font-size: var(--text-h5); }
h6, .h6 {
	font-size: var(--text-h6);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

p {
	margin: 0 0 var(--space-s);
}
p:last-child {
	margin-bottom: 0;
}

.text-small {
	font-size: var(--text-small);
	line-height: var(--line-height-small);
	color: var(--color-text-muted);
}

.text-caption {
	font-size: var(--text-caption);
	line-height: var(--line-height-small);
	font-weight: var(--font-weight-medium);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

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

a {
	color: inherit;
	text-decoration-color: var(--color-border-strong);
	text-underline-offset: 0.15em;
	transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.wysiwyg a {
	color: var(--color-primary);
	text-decoration: underline;
}
.wysiwyg a:hover {
	color: var(--color-primary-dark);
	text-decoration-color: currentColor;
}

.wysiwyg > * + * {
	margin-top: var(--space-s);
}

ul, ol {
	margin: 0 0 var(--space-s);
	padding-left: 1.25em;
}

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

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