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

html {
    font-size: 16px;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--av-font-sans);
    font-size: var(--av-font-size-base);
    line-height: var(--av-line-height-base);
    color: var(--av-text);
    background: var(--av-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

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

a:hover {
    color: var(--av-primary-emphasis);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--av-primary);
    outline-offset: 2px;
    border-radius: var(--av-radius-sm);
}

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

svg[hidden] {
    display: none;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

h1, h2, h3 {
    line-height: var(--av-line-height-tight);
    font-weight: var(--av-font-weight-semibold);
}

/* -- Utility -- */
.av-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;
}

/* -- Scrollbar -- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--av-border);
    border-radius: var(--av-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--av-border-emphasis);
}

/* -- Selection -- */
::selection {
    background: var(--av-primary-muted);
    color: var(--av-text);
}
