/* ==================================================
   NX CSS RESET V1
================================================== */

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

/* Remove default spacing */
*{
    margin:0;
    padding:0;
}

/* Better scrolling */
html{
    scroll-behavior:smooth;
    -webkit-text-size-adjust:100%;
}

/* Base body */
body{
    min-height:100vh;
    font-family:var(--nx-font-primary);
    color:var(--nx-text-primary);
    background:var(--nx-bg);
    line-height:1.5;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

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

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

/* Buttons */
button{
    border:none;
    background:none;
    cursor:pointer;
}

/* Links */
a{
    color:inherit;
    text-decoration:none;
}

/* Lists */
ul,
ol{
    list-style:none;
}

/* Table */
table{
    border-collapse:collapse;
    border-spacing:0;
}

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

/* Prevent textarea resize */
textarea{
    resize:vertical;
}