
/* ==================================================
   WEBLYD - CSS RESET
================================================== */


/* Universal Box Sizing */

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* Reset Margin & Padding */

* {
    margin: 0;
    padding: 0;
}


/* HTML Defaults */

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
    color-scheme: dark;

    -webkit-text-size-adjust: 100%;
}


/* Body Defaults */

body {
    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Responsive Media */

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
video {
    height: auto;
}


/* Form Elements */

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}


/* Links */

a {
    color: inherit;
    text-decoration: none;
}


/* Heading & Text Wrapping */

h1,
h2,
h3,
h4,
h5,
h6,
p {
    overflow-wrap: break-word;
}


/* Tables */

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* Textarea */

textarea {
    resize: vertical;
}


/* Hidden Elements */

[hidden] {
    display: none !important;
}


/* Keyboard Accessibility */

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 4px;
}


/* Text Selection */

::selection {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
}


/* Reduced Motion Accessibility */

@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;
    }

}
