/* ==========================================================
   HOMIE DESIGN SYSTEM
   RESET.CSS
   Version: 1.0
========================================================== */

/* ==========================================================
   BOX MODEL
========================================================== */

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


/* ==========================================================
   DOCUMENT
========================================================== */

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   BASIC ELEMENTS
========================================================== */

main {
    display: block;
}

section {
    position: relative;
}

header,
footer,
nav,
aside,
article,
figure,
figcaption {
    display: block;
}


/* ==========================================================
   HEADINGS AND TEXT
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure {
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font: inherit;
}

p {
    overflow-wrap: break-word;
}


/* ==========================================================
   LINKS
========================================================== */

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

a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================
   LISTS
========================================================== */

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* ==========================================================
   MEDIA
========================================================== */

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

img {
    height: auto;
}

svg {
    overflow: visible;
}


/* ==========================================================
   FORM ELEMENTS
========================================================== */

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    color: inherit;
    font: inherit;
    line-height: inherit;
}

button,
input,
select,
textarea {
    border: 0;
    border-radius: 0;
    background: transparent;
}

button {
    padding: 0;
    cursor: pointer;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: button;
    -webkit-appearance: button;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

textarea {
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--gray-500);
    opacity: 1;
}

input[type="search"] {
    appearance: textfield;
    -webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-decoration {
    appearance: none;
    -webkit-appearance: none;
}


/* ==========================================================
   TABLE
========================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th {
    text-align: left;
}


/* ==========================================================
   HORIZONTAL RULE
========================================================== */

hr {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--border);
}


/* ==========================================================
   EMBEDDED CONTENT
========================================================== */

iframe {
    display: block;
    width: 100%;
    border: 0;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

[hidden] {
    display: none !important;
}

[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

:focus-visible {
    outline: 3px solid rgba(17, 185, 90, 0.35);
    outline-offset: 3px;
}


/* ==========================================================
   SELECTION
========================================================== */

::selection {
    color: var(--text-white);
    background: var(--primary);
}


/* ==========================================================
   SCROLLBAR
========================================================== */

* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-200);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--gray-200);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-pill);
    background: var(--primary);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* ==========================================================
   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;
    }
}