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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--doc-font-sans);
    font-size: var(--doc-font-size-base);
    line-height: var(--doc-line-height-normal);
    color: var(--doc-text-primary);
    background-color: var(--doc-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--doc-text-link);
    text-decoration: none;
    transition: color var(--doc-transition-fast);
}

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

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

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

button:focus-visible {
    outline: 2px solid var(--doc-border-focus);
    outline-offset: 2px;
}

ul, ol {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: var(--doc-line-height-tight);
    color: var(--doc-text-heading);
}

::selection {
    background: var(--doc-accent-light);
    color: var(--doc-text-primary);
}

:focus-visible {
    outline: 2px solid var(--doc-border-focus);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--doc-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--doc-scrollbar-thumb);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--doc-scrollbar-thumb-hover);
}
