/* ==========================================================
   RESET
   ========================================================== */

/* Box sizing */

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

/* Remove default margins */

* {
    margin: 0;
}

/* Better scrolling */

html {
    scroll-behavior: smooth;
}

/* Body */

body {
    min-height: 100vh;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    line-height: 1.5;
}

/* Media */

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

/* Forms */

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

/* Buttons */

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

/* Links */

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

/* Lists */

ul,
ol {
    padding: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Tables */

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

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/* Paragraphs */

p {
    text-wrap: pretty;
}

/* Textareas */

textarea {
    resize: vertical;
}

/* Hidden */

[hidden] {
    display: none !important;
}

/* Anchor offset */

:target {
    scroll-margin-top: 100px;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

    }

}