/**
 * ==========================================================================
 * SOY YO — Matthias Krause
 * ==========================================================================
 *
 * File:        reset.css
 * Phase:       1 — Foundation
 * Area:        Styles / Reset
 *
 * Purpose:
 * Removes inconsistent browser defaults and establishes a predictable,
 * accessible foundation for all Soy yo interface elements.
 *
 * Dependencies:
 * - None
 *
 * ==========================================================================
 */
 
/*
 * Use a predictable box model for every element.
 */

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


/*
 * Remove default spacing.
 */

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}


/*
 * Establish the document foundation.
 */

html {
  min-height: 100%;
  font-size: 100%;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/*
 * Remove default list styling.
 */

ul,
ol {
  list-style: none;
}


/*
 * Normalize links.
 */

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


/*
 * Normalize buttons and form controls.
 */

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

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

button:disabled {
  cursor: default;
}


/*
 * Keep media elements predictable.
 */

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

img,
video {
  height: auto;
}


/*
 * Improve text inheritance.
 */

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


/*
 * Prevent textarea resizing from affecting the layout horizontally.
 */

textarea {
  resize: vertical;
}


/*
 * Hide elements using the native hidden attribute.
 */

[hidden] {
  display: none !important;
}


/*
 * Keep accessible text available to assistive technology.
 */

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;

  border: 0 !important;
  white-space: nowrap !important;
}


/*
 * Preserve accessible keyboard focus.
 */

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/*
 * Respect the visitor's motion preference.
 */

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
