*,
*::after,
*::before {
  box-sizing: border-box;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --rootSize: 62.5%;
  --constant: 1.075;
}

html {
  font-family: -apple-system, 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  font-size: var(--rootSize);
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

@media screen and (min-width: 1920px) {
  html {
    /* font-size: 75%; */
    font-size: calc(var(--rootSize) * 1.2);
  }
}

@media screen and (max-width: 1920px) {
  html {
    /* font-size: 67.2%; */
    font-size: calc(var(--rootSize) * var(--constant));
  }
}

@media screen and (max-width: 1440px) {
  html {
    /* font-size: 62.5%; */
    font-size: var(--rootSize);
  }
}

@media screen and (max-width: 1366px) {
  html {
    /* font-size: 58%; */
    font-size: calc(var(--rootSize) / var(--constant));
  }
}

@media screen and (max-width: 1024px) {
  html {
    /* font-size: 54%; */
    font-size: calc(var(--rootSize) / 1.156);
  }
}

@media screen and (max-width: 768px) {
  html {
    /* font-size: 50.3%; */
    font-size: calc(var(--rootSize) / 1.242);
  }
}

body {
  --fontSize: 1.3rem;
  margin: 0;
  line-height: 1.42857143;
  font-size: var(--fontSize);
  color: var(--appColor);
  background-color: transparent;
  z-index: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  vertical-align: middle;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: var(--linkColor);
  background-color: transparent;
  font-weight: 500;
  transition: color 0.3s;
}
a:active,
a.active {
  color: var(--linkActiveColor);
}
a:hover {
  color: var(--linkHoverColor);
}

input,
button,
textarea {
  outline: 0;
  margin: 0;
  border-radius: 0;
}

input::placeholder,
textarea::placeholder {
  color: var(--appColor);
}

input[disabled],
button[disabled],
a[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

button,
input[type='button'],
input[type='submit'] {
  -webkit-appearance: button;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

code {
  border-radius: 2px;
}

.pre,
.code {
  border: 1px inset rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  padding: 1rem;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.7142857;
  overflow-x: auto;
  font-family:
    Söhne Mono,
    Monaco,
    Andale Mono,
    Ubuntu Mono,
    monospace;
  background: #23241f;
  color: #f8f8f2;
}

blockquote {
  border-left: 2px solid #ddd;
  margin: revert;
  margin-left: 0;
  margin-right: 0;
  padding-left: 10px;
  color: #aaa;
  font-style: italic;
}
