/* Box sizing and basic reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Neutralize links completely */
a {
    color: inherit;
    text-decoration: inherit;
    font: inherit;
    cursor: pointer;
}

/* Neutralize headings */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* Neutralize lists */
ul, ol {
    list-style: none;
}

/* Neutralize form elements */
button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    border-radius: 0;
    appearance: none;
}

button {
    cursor: pointer;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Media defaults */
img, picture, video, canvas, svg {
    display: block;
    width: 100%;
}

/* Text elements that carry semantic-but-visual styling */
b, strong {
    font-weight: inherit;
}

i, em {
    font-style: inherit;
}

small {
    font-size: inherit;
}

/* Blockquote/figure resets */
blockquote, q {
    quotes: none;
}

blockquote::before, blockquote::after,
q::before, q::after {
    content: none;
}

/* Remove default fieldset styling */
fieldset {
    border: none;
}

/* Address focus ring only when needed via keyboard */
:focus:not(:focus-visible) {
    outline: none;
}