/*
 * typography.css
 * Jerarquia tipografica: IBM Plex Serif para titulares, IBM Plex Sans para texto.
 */

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-500.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-700.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-serif-400.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-serif-400i.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Serif';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-serif-500.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Serif';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/ibm-plex-serif-600.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-serif-700.woff2') format('woff2');
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-ink);
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

p {
    max-width: 62ch;
}

.lead {
    font-size: var(--fs-lead);
    font-weight: 400;
    color: var(--color-ink);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-deep-dark);
    margin-bottom: var(--space-xs);
}

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

a.link-inline {
    color: var(--color-deep);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 0.06em;
}

a.link-inline:hover {
    color: var(--color-deep-dark);
}

/* texto trazado, sin relleno -- usado en numeros y palabras decorativas grandes */
.text-outline {
    color: rgba(51, 51, 74, 0.12);
    -webkit-text-stroke: 1.5px var(--color-ink);
    text-stroke: 1.5px var(--color-ink);
    font-family: var(--font-serif);
}

@supports not (-webkit-text-stroke: 1px #000) {
    .text-outline {
        color: rgba(51, 51, 74, 0.22);
        -webkit-text-stroke: 0;
    }
}
