/**
 * Modern Accessible CSS Reset
 *
 * @package OncoDermCare
 */

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 2. Prevent font size inflation on mobile */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: var(--color-canvas);
    color: var(--color-text);
}

/* 3. Set core body defaults */
body {
    min-height: 100vh;
    line-height: var(--line-height-base);
    font-family: var(--font-sans);
    font-size: var(--font-size-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* 4. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 5. Inherit fonts for form inputs */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* 6. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 7. Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* 8. Make interactive elements look like they are clickable */
button,
[role='button'] {
    cursor: pointer;
    border: none;
    background: none;
}

/* 9. Anchor styling defaults */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* 10. Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}