:root {
    --site-font: Arial, sans-serif;
    --type-h1: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --type-h2: clamp(1.625rem, 1.375rem + 1.25vw, 2.25rem);
    --type-h3: clamp(1.375rem, 1.25rem + 0.625vw, 1.75rem);
    --type-h4: 1.25rem;
    --type-h5: 1.125rem;
    --type-body: 1rem;
    --type-small: 0.875rem;
    --bs-font-sans-serif: var(--site-font);
    --bs-body-font-family: var(--site-font);
    --bs-body-font-size: var(--type-body);
}

body {
    font-family: var(--site-font);
    font-size: var(--type-body);
    line-height: 1.5;
}

button, input, select, textarea {
    font-family: inherit;
}

h1, .h1 { --heading-size: var(--type-h1); }
h2, .h2 { --heading-size: var(--type-h2); }
h3, .h3 { --heading-size: var(--type-h3); }
h4, .h4 { --heading-size: var(--type-h4); }
h5, .h5 { --heading-size: var(--type-h5); }
h6, .h6 { --heading-size: var(--type-body); }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-size: var(--heading-size, var(--type-h1));
    line-height: 1.2;
}

/* Bootstrap size utilities use !important. Keep semantic headings on their
   own level while supporting articles that use these classes for subheads. */
.fs-1 { font-size: var(--heading-size, var(--type-h1)) !important; }
.fs-2 { font-size: var(--heading-size, var(--type-h2)) !important; }
.fs-3 { font-size: var(--heading-size, var(--type-h3)) !important; }
.fs-4 { font-size: var(--heading-size, var(--type-h4)) !important; }
.fs-5 { font-size: var(--heading-size, var(--type-h5)) !important; }
.fs-6 { font-size: var(--heading-size, var(--type-body)) !important; }

.lead { font-size: var(--type-h5); }
small, .small, .form-text, .invalid-feedback { font-size: var(--type-small); }
