
/* 1. Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Margin & padding reset */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* 3. Document base */
html {
  height: 100%;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

/* 4. Lists */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 5. Links */
a,
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color: inherit;
}

/* 6. Media elements */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 7. Forms */
input,
button,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* iOS / Android form normalization */
input,
textarea,
button,
select {
  border-radius: 0;
  appearance: none;
}

/* 8. Textarea */
textarea {
  resize: vertical;
}

/* 9. Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

caption,
th,
td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

/* 10. Accessibility: screen reader only */
.blind,
legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip Navigation */
.skip-navigation a {
  position: absolute;
  left: 0;
  top: -100%;
  z-index: 9999;
  padding: 1em 1.5em;
  background: #000;
  color: #fff;
}

.skip-navigation a:focus {
  top: 0;
}

/* 11. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
