// Apply a natural box layout model to all elements, but allowing components to change
html {
    font-size: 100%;
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
}

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


/*
 * Resets in addition to Normalize.css
 */

// Resets margins and paddings for headers, ul, ol and p
h1,
h2,
h3,
h4,
h5,
h6,
ul,
li,
p,
html,
body,
blockquote {
    margin: 0;
    padding: 0;
}

// Completely resets form items
// ----------------------------
// Super hard reset that removes all borders
// and radius of all form items.
// ============================
input,
textarea,
button {
    border: 0;
    border-radius: 0;
    outline: none;
}

button.is-target,
button[aria-expanded=true] {
    &:active,
    &:focus {
        outline: none;
    }
}

// Add default responsiveness for referenced resources
embed,
img,
object,
video {
    max-width: 100%;
    height: auto;
}

/*
Selects all iframe that do not:
- have a height attribute
- include a class starting with 'h-'
- do not start with a class like 'h-'
*/
iframe {
    max-width: 100%;

    &:not([height]):not([class*=" h-"]):not([class^="h-"]) {
        height: auto;
    }
}
