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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--type-body-size);
    line-height: var(--type-body-line);
    background: var(--bg);
    color: var(--text);
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

p,
ul,
ol,
h1,
h2,
h3 {
    margin: 0;
}

ul {
    padding-left: 1.15rem;
}

h1,
h2,
h3 {
    letter-spacing: -0.03em;
}

h1 {
    font-size: var(--type-h1-size);
    line-height: var(--type-h1-line);
    font-weight: var(--type-h1-weight);
}

h2 {
    font-size: var(--type-h2-size);
    line-height: var(--type-h2-line);
    font-weight: var(--type-h2-weight);
}

h3 {
    font-size: var(--type-h3-size);
    line-height: var(--type-h3-line);
    font-weight: var(--type-h3-weight);
}

code,
pre {
    font-family: var(--font-mono);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

input {
    color: inherit;
}

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