/* ==========================================================================
   RESET
   ========================================================================== */

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

/* 100%, not none. Both stop mobile browsers inflating text on their own, which
   is what this reset is for — but `none` also prevents the reader from
   enlarging text in Safari on iOS, and WCAG 1.4.4 requires text to reach 200%.
   100% keeps the reset and gives the zoom back. */
html { -moz-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

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

ul[role="list"],
ol[role="list"] { list-style: none; padding: 0; }

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

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

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

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

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

textarea:not([rows]) { min-height: 8em; }

:target { scroll-margin-block: 5ex; }

[hidden] { display: none !important; }
