/* ==========================================================
   SONARIA Reset
   Modern CSS Reset
   ========================================================== */

/* Box sizing */

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

/* Remove default margins */

* {
    margin: 0;
    padding: 0;
}

/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}

/* Better text rendering */

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Media defaults */

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

/* Form elements inherit typography */

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

/* Remove default button styles */

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Links */

a {
    color: inherit;
    text-decoration: none;
}

/* Lists */

ul,
ol {
    list-style: none;
}

/* Tables */

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Text overflow */

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Textareas */

textarea {
    resize: vertical;
}

/* Prevent anchor targets from hiding behind sticky navbar */

section[id] {
    scroll-margin-top: 100px;
}

/* Respect reduced motion preferences */

@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;
    }

}