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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-3));
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--line-base);
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    color: var(--color-heading);
    line-height: var(--line-tight);
    font-weight: 700;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

picture {
    display: contents;
}

img, svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

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

html.is-menu-open,
body.is-menu-open {
    overflow: hidden;
    height: 100%;
    touch-action: none;
}
