/* ------------------------------
    Reset CSS by Eric Meyer + modern best practices
    https://meyerweb.com/eric/tools/css/reset/
-------------------------------- */

/* 1. Remove default margin, padding, and set box-sizing */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Set default styles for html and body */
html,
body {
    width: 100%;
    font-size: 100%;
    line-height: 1.5;
    background: transparent;
    color: inherit;
    font-family: sans-serif;
}

/* 3. Remove default margin from common text elements */
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
dl,
dd {
    margin: 0;
}

/* 4. Remove list styles */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 5. Reset link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* 6. Reset form elements */
button,
input,
select,
textarea {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* 7. Make media elements easier to work with */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

/* 8. Reset table styling */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 9. Accessibility: focus outlines */
:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* 10. Text rendering improvements */
body {
    text-rendering: optimizeSpeed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}