@font-face {
  font-family: "geist";
  src: url("../fonts/Geist-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "geist-mono";
  src: url("../fonts/GeistMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --large-font-size: 5.5vw;
  --small-font-size: 1.33333vw;
  --header-font-family: "geist", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --body-font-family: "geist-mono", "SF Mono", "Menlo", "PingFang SC",
    "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", monospace;
  --max-width: 1510px;
  --color-text: #7ec3f1;
  --dot-color: #545454;
  --dot-hot: #545454;
}

* {
  box-sizing: border-box;
}

html {
  position: relative;
}

body,
html {
  height: 100%;
  width: 100%;
}

body {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: #111;
  font-family: var(--body-font-family);
  font-size: 2vw;
  font-weight: 400;
  line-height: 1.35em;
  margin: 0;
  padding: 0;
}

.big {
  animation: pageFadeIn 2s;
  animation-fill-mode: both;
  font-family: var(--header-font-family);
  font-size: var(--large-font-size);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3em;
}

.zh .big {
  letter-spacing: -0.02em;
}

.small {
  animation: pageFadeIn 1.2s;
  animation-delay: 0.4s;
  animation-fill-mode: both;
  font-size: var(--small-font-size);
  letter-spacing: 0.05em;
  line-height: 1.2em;
}

@media (min-width: 1440px) {
  .small {
    font-size: 16px;
    line-height: 1.3em;
  }
}

@media (max-width: 760px) {
  .small {
    font-size: 12px;
    line-height: 1.3em;
  }
}

header {
  align-items: center;
  display: flex;
  height: 50vh;
  max-width: var(--max-width);
  padding: 10vw 10vw 2.5vw;
}

@media (max-width: 760px) {
  header {
    padding: 5vw;
  }
}

header > p,
header > span {
  white-space: nowrap;
}

.underline {
  position: relative;
  white-space: nowrap;
}

.underline:after {
  background: #0003;
  bottom: 0.05em;
  content: "";
  height: 3px;
  left: 2px;
  position: absolute;
  right: 0;
  z-index: -1;
}

@media (max-width: 760px) {
  .underline:after {
    height: 1.5px;
  }
}

@media (min-width: 1440px) {
  .underline:after {
    height: 4px;
  }
}

section {
  max-width: var(--max-width);
  padding: 2vw 10vw 5vw;
}

@media (max-width: 760px) {
  section {
    padding: 0 5vw 5vw;
  }
}

footer {
  display: flex;
  flex-direction: row;
  line-height: 1.5em;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  footer:not(.beian) {
    flex-direction: column;
  }

  footer:not(.beian) > div {
    margin-block-end: 1em;
  }
}

footer > div {
  flex: 1 1;
}

a {
  transition: opacity 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
}

a,
a:hover {
  border: 0;
  color: #111;
  text-decoration: none;
}

a:hover {
  cursor: ne-resize;
  opacity: 0.5;
}

.small a {
  position: relative;
  white-space: nowrap;
}

.small a:after {
  background: #111;
  bottom: -0.1em;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.4;
  position: absolute;
  right: 0;
  z-index: -1;
}

.small a:hover:after {
  opacity: 0.7;
}

.more-link {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.more-link:hover {
  opacity: 1;
}

.small a.more-link:after {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.small a.more-link:hover:after {
  opacity: 0.7;
}

::selection {
  background: #ffc800;
  color: #111;
  text-shadow: none;
}

.h-list {
  display: flex;
  list-style-type: none;
  padding-left: 0;
}

.h-list li {
  margin-left: 0;
  margin-right: 1.2vw;
}

@media (max-width: 480px) {
  ul {
    margin: 0;
  }

  .h-list li {
    margin-right: 2vw;
  }
}

.v-list {
  list-style-type: none;
  margin-top: 0;
  padding-left: 0;
}

.no-margins {
  margin: 0;
}

.dot-field-frame {
  background: transparent;
  border-radius: 10px;
  height: 111px;
  margin: 0 0 2.2em;
  overflow: hidden;
  width: 100%;
}

.dot-field {
  -webkit-user-select: none;
  background: transparent;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  width: 100%;
}

.dot-field canvas {
  display: block;
}

.last-seen {
  animation: pageFadeIn 0.8s;
  animation-fill-mode: both;
  text-transform: uppercase;
}

.lang-switcher a {
  cursor: pointer;
  opacity: 0.4;
}

.lang-switcher a.current {
  opacity: 1;
}

.contact a:after,
.lang-switcher a:after,
.beian a:after {
  opacity: 0;
}

.contact a {
  margin-right: 0.2em;
}

.emoji {
  margin-right: 0.15em;
}

footer.beian {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-top: auto;
  padding: 2.5em 10vw 1.6em;
  text-align: center;
  text-transform: none;
  width: 100%;
}

footer.beian > div,
footer.beian p {
  flex: none;
  margin: 0;
}

.beian-copy {
  color: #111;
  margin-bottom: 0.15em;
  opacity: 0.42;
}

.beian a {
  color: #111;
  letter-spacing: 0.04em;
  opacity: 0.42;
}

.beian a:hover {
  opacity: 1;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --dot-color: #a3a3a3;
    --dot-hot: #a3a3a3;
  }

  body,
  html {
    background: #111;
  }

  a,
  a:hover,
  body,
  html {
    color: #f0f0f0;
  }

  a.underline:after {
    background: #fff6;
  }

  .small a:after {
    background: #fff;
  }

  .beian-copy,
  .beian a {
    color: #f0f0f0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .big,
  .small,
  .last-seen,
  a {
    animation: none;
    transition: none;
  }
}
