/* ==============================================
   RESET — Modern CSS Reset
   ============================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul,
ol {
  list-style: none;
}

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

/* Details/Summary normalization */
details {
  display: block;
}

summary {
  display: list-item;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

/* Remove default fieldset styles */
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* Remove textarea resize handle */
textarea {
  resize: vertical;
}

/* Remove default button styles in iOS */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
}

/* Remove inner border and padding in Firefox */
::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/* Restore focus styles unset by previous rule */
:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/* Remove additional ':invalid' styles in Firefox */
:-moz-ui-invalid {
  box-shadow: none;
}

/* Prevent resizing textareas horizontally by default */
textarea {
  resize: vertical;
}

/* Hidden attribute */
[hidden] {
  display: none !important;
}
