/* Lato is self-hosted (SIL OFL, see /fonts/lato-OFL.txt) so the CSP can stay 'self'-only. */
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/lato-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/lato-latin-400-italic.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/lato-latin-700-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/lato-latin-700-italic.woff2") format("woff2");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
}

h1,
h2 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
    font-size: 1.5rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--accent-color);
}

a:hover {
    color: var(--accent-hover-color);
}

:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}
