100 lines
1.9 KiB
CSS
100 lines
1.9 KiB
CSS
:root {
|
|
/* Font sizes */
|
|
--font-size-xxs: 0.79rem;
|
|
--font-size-xs: clamp(0.79rem, 2vw, 0.889rem);
|
|
--font-size-s: 0.889rem;
|
|
--font-size-base: clamp(0.889rem, 2.2vw, 1rem);
|
|
--font-size-m: clamp(1rem, 2.15vw, 1.125rem);
|
|
|
|
/* Fluid typography (768px to 1024px) */
|
|
--font-size-h1: clamp(1.802rem, 5.71vw, 3.247rem);
|
|
--font-size-h2: clamp(1.602rem, 4.51vw, 2.566rem);
|
|
--font-size-h3: clamp(1.424rem, 3.56vw, 2.027rem);
|
|
--font-size-h4: clamp(1.266rem, 3.17vw, 1.802rem);
|
|
--font-size-h5: clamp(1.125rem, 2.82vw, 1.602rem);
|
|
|
|
--font-size-subhead: clamp(1.125rem, 3.02vw, 1.802rem);
|
|
|
|
--line-height-body: 1.5;
|
|
--line-height-card: 1.2;
|
|
--line-height-heading: 1.1;
|
|
--line-height-lead: 1.4;
|
|
|
|
--letter-spacing-tight: -0.02em;
|
|
--letter-spacing-normal: 0;
|
|
--letter-spacing-wide: 0.025em;
|
|
--letter-spacing-wider: 0.05em;
|
|
--letter-spacing-widest: 0.12em;
|
|
|
|
--font-weight-regular: 400;
|
|
--font-weight-medium: 500;
|
|
--font-weight-semibold: 600;
|
|
--font-weight-bold: 700;
|
|
|
|
--font-body-color: #000000;
|
|
--font-heading-color: #302e2e;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
p,
|
|
li {
|
|
font-size: var(--font-size-base);
|
|
line-height: var(--line-height-body);
|
|
}
|
|
|
|
.small,
|
|
.text-small {
|
|
font-size: var(--font-size-xs);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.lead,
|
|
.text-lead {
|
|
font-size: var(--font-size-m);
|
|
line-height: var(--line-height-lead);
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
line-height: var(--line-height-heading);
|
|
color: var(--font-heading-color);
|
|
font-family: var(--font-heading);
|
|
font-weight: var(--font-weight-bold);
|
|
letter-spacing: var(--letter-spacing-tight);
|
|
}
|
|
|
|
h1 {
|
|
font-size: var(--font-size-h1);
|
|
}
|
|
|
|
h2 {
|
|
font-size: var(--font-size-h2);
|
|
}
|
|
|
|
h3 {
|
|
font-size: var(--font-size-h3);
|
|
}
|
|
|
|
h4 {
|
|
font-size: var(--font-size-h4);
|
|
}
|
|
|
|
h5 {
|
|
font-size: var(--font-size-h5);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
:root {
|
|
--line-height-body: 1.4;
|
|
--line-height-card: 1.2;
|
|
}
|
|
}
|