/* Studee — element defaults.
 *
 * The house style sets the faces, the ink and the 15px/1.5 body on `.yu`, and
 * paints the paper grain from `.yu-grain`. Both classes live on <body>
 * (index.php), so this file only does what a reset does. */

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

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

body {
  margin: 0;
  min-height: 100dvh;
}

h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--purple-ink); text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font: inherit; color: var(--ink); }

/* Unageo has no 700: a default bold would jump to Black. Emphasis is 600. */
b, strong { font-weight: 600; }

/* Keyboard use is not an edge case. */
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
