/**
 * RESET
 * Swendeezy Studios Modernized Reset
 * Based on Eric Meyer's Reset v2.0 (2011)
 * Also inspired by Josh W. Comeau's Custom CSS Reset and Andy Bell's A More Modern CSS Reset.
 */

/*------------------------------------------------------------------------------------------------*\
    #BOX-SIZING
\*------------------------------------------------------------------------------------------------*/

html {
    box-sizing: border-box;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

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

*:not(dialog) {
    margin: 0;
}

/*------------------------------------------------------------------------------------------------*\
    #CORE-RESET
\*------------------------------------------------------------------------------------------------*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
main,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
picture,
template {
    padding: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
    border: 0;
}

/*------------------------------------------------------------------------------------------------*\
    #HTML5-DISPLAY-ROLES
\*------------------------------------------------------------------------------------------------*/

/**
 * For older browsers that do not treat these elements as block.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
    display: block;
}

/*------------------------------------------------------------------------------------------------*\
    #BODY
\*------------------------------------------------------------------------------------------------*/

body {
    line-height: 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*------------------------------------------------------------------------------------------------*\
    #TYPOGRAPHY
\*------------------------------------------------------------------------------------------------*/

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

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

p {
    text-wrap: pretty;
}

a:not([class]) {
    color: currentColor;
    text-decoration-skip-ink: auto;
}

/*------------------------------------------------------------------------------------------------*\
    #LISTS
\*------------------------------------------------------------------------------------------------*/

ol,
ul {
    list-style: none;
}

/*------------------------------------------------------------------------------------------------*\
    #QUOTES
\*------------------------------------------------------------------------------------------------*/

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

/*------------------------------------------------------------------------------------------------*\
    #TABLES
\*------------------------------------------------------------------------------------------------*/

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

/*------------------------------------------------------------------------------------------------*\
    #SCROLL
\*------------------------------------------------------------------------------------------------*/

/**
 * Adds breathing room above anchor targets, useful when a sticky header is present.
 */
:target {
    scroll-margin-block: 5ex;
}

/*------------------------------------------------------------------------------------------------*\
    #FORMS
\*------------------------------------------------------------------------------------------------*/

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

textarea:not([rows]) {
    min-height: 10em;
}

/*------------------------------------------------------------------------------------------------*\
    #IMAGES
\*------------------------------------------------------------------------------------------------*/

img,
picture,
video,
canvas,
svg {
    display: block; /* Removes the phantom space at the bottom of inline images. */
    max-width: 100%;
}
