/* =========================================================
   reset.css —— 基础重置
   ========================================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

/*
 * 不要在这里写 overflow: hidden。
 * 页面现在依赖文档级滚动来做分屏交接，
 * body 上的 overflow 会传播到视口，直接禁掉整页滚动。
 * 背景层自己用 .space { overflow: hidden } 裁剪。
 */
body {
  background: #02030a;
}

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

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

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

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

[hidden] {
  display: none !important;
}

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