//
// Core
// -----------------------------------


html,
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
ul,
ol,
li,
dl,
dt,
dd,
figure,
iframe,
blockquote,
textarea,
legend,
fieldset,
pre,
code {
  margin: 0;
  padding: 0;
}

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

html {
  font-size: $base-size;
  box-sizing: border-box;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: $base-font-stack;
  font-size: $base-font-size;
  font-weight: $base-font-weight;
  color: $base-color-text;
  line-height: $base-line-height;
  letter-spacing: .025em;
}

a {
  outline-color: $base-color-brand;

  &:hover {
    text-decoration: none;
  }
}

article,
aside,
figure,
footer,
header,
hgroup,
section {
  display: block;
}

button,
input,
optgroup,
select,
textarea {
  appearance: none;
  margin: 0;
  color: $base-color-text;
  outline: transparent;
}

img,
object,
embed,
iframe,
video,
audio {
  max-width: 100%;
  height: auto;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: bottom;
}

iframe {
  border: 0;
}

ul {
  list-style: none;
}

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

td,
th {
  padding: 0;
  text-align: left;
}

strong {
  font-weight: bold;
}

hr {
  border: 0;
  display: block;
  height: 1px;
  margin: 1.5rem 0;
  background-color: $base-color-border;
}

small {
  font-size: $base-font-size-xsmall;
}

a {
  color: $base-color-link;
}

pre,
code,
kbd,
samp {
  font-family: $base-font-stack-code;
  font-size: $base-font-size;
  text-align: left;
}

button,
.button {
  border: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

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

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

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;
}

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

::-webkit-input-placeholder {
  color: color($base-color-text a(.3));
}

::-moz-placeholder {
  color: color($base-color-text a(.3));
}

:-ms-input-placeholder {
  color: color($base-color-text a(.3));
}

:-moz-placeholder {
  color: color($base-color-text a(.3));
}
