// This is adapted from normalize.css but specialized for the specific needs of Becklyn Studios
// http://necolas.github.io/normalize.css/

// ---------------------------------------------------------------------------------------------------------
// Document
// ---------------------------------------------------------------------------------------------------------

html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}

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

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

html,
body {
    height: 100%;
}

// ---------------------------------------------------------------------------------------------------------
// Grouping content
// ---------------------------------------------------------------------------------------------------------

main {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-style: inherit;
    font-weight: inherit;
    font-size: inherit;
}

// ---------------------------------------------------------------------------------------------------------
// Text level semantics
// ---------------------------------------------------------------------------------------------------------

b,
strong {
    font-weight: 700;
}

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

code,
kbd {
    font-size: 1em;
    font-family: monospace, monospace;
}

small {
    font-size: 80%;
}

sub,
sup {
    position: relative;
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

// ---------------------------------------------------------------------------------------------------------
// Embedded content
// ---------------------------------------------------------------------------------------------------------

audio,
video {
    display: block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

img {
    border-style: none;
    max-width: 100%;
}

// ---------------------------------------------------------------------------------------------------------
// Forms
// ---------------------------------------------------------------------------------------------------------

// Don't forget to style the focus state as well!
button {
    border: 0;
    border-radius: 0;
    color: inherit;
    -webkit-font-smoothing: inherit;
    appearance: button;
    -webkit-appearance: button;
    cursor: pointer;
    outline: 0;
    background: none transparent;
    letter-spacing: inherit;
}

button,
input {
    overflow: visible;
}

button,
input,
textarea {
    font: inherit;
    text-align: inherit;
}

input:disabled,
textarea:disabled {
    color: inherit;
}

button,
select {
    text-transform: none;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    appearance: button;
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

:focus {
    outline: 0;
}

::-moz-focus-inner {
    border: 0;
    padding: 0;
}

::-webkit-file-upload-button {
    appearance: button;
    -webkit-appearance: button;
    font: inherit;
}

// ---------------------------------------------------------------------------------------------------------
// Tables
// ---------------------------------------------------------------------------------------------------------

table {
    border-collapse: collapse;
}

th {
    font-weight: inherit;
    text-align: left;
}

// ---------------------------------------------------------------------------------------------------------
// Interactive
// ---------------------------------------------------------------------------------------------------------

details,
menu {
    display: block;
}

summary {
    display: list-item;
}

// ---------------------------------------------------------------------------------------------------------
// Scripting
// ---------------------------------------------------------------------------------------------------------

template {
    display: none;
}

// ---------------------------------------------------------------------------------------------------------
// Hidden
// ---------------------------------------------------------------------------------------------------------

[hidden] {
    display: none;
}

// ---------------------------------------------------------------------------------------------------------
// SVG
// ---------------------------------------------------------------------------------------------------------

svg {
    display: inline-block;
    // By default IE11 renders SVGs with overflow enabled, which can caused weird rendering issues
    overflow: hidden;
}

// ---------------------------------------------------------------------------------------------------------
// Lists
// ---------------------------------------------------------------------------------------------------------

// Disable list styling on lists by default, as the styling should be set
// explicitly in the \`.content\` class (already done in the \`content()\` mixin.
ul,
ol {
    list-style: none;
}
