/**
 * Editorial typography
 */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 var(--spacing-3);
    color: var(--color-text);
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.05;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 3.75rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand {
    font-family: var(--brand-font);
    font-weight: 600;
    letter-spacing: -0.03em;
}

h1.brand {
    color: var(--brand-color);
}

.brand a,
.brand a:hover {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 var(--spacing-3);
}

.lede {
    max-width: 62ch;
    margin-bottom: var(--spacing-3);
    color: var(--color-text-mid);
    font-family: var(--main-body-font);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eyebrow {
    margin: 0 0 var(--spacing-2);
    color: var(--color-text-muted);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

small,
.small {
    font-size: var(--font-size-sm);
}

strong,
.strong {
    font-weight: 700;
}

a {
    color: var(--color-primary-link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-primary-light);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

svg.icon {
    width: 1.1em;
    height: 1.1em;
}

aside h1 {
    font-size: 1.4rem;
}

aside h2 {
    font-size: 1.2rem;
}

aside .lede {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
}

.hidden {
    display: none !important;
}

.divider {
    margin: var(--spacing-4) 0;
    border: 0;
    border-top: 1px solid var(--color-border-strong);
}

.truncate {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

::selection {
    background: var(--color-primary);
    color: var(--color-text-contrast);
}
