:root {
  --head: #fff;
  --intro: #f7f7f7;
  --bg: #fff;
  --text: #333b43;
  --muted: #8b949d;
  --dot: #e9e9e9;
  --accent: #ff9f9f;
  --footer: #f4f4f4;
  color-scheme: light;
}
html[data-theme="dark"] {
  --head: #0d141d;
  --intro: #101c27;
  --bg: #16222e;
  --text: #d0d8e1;
  --muted: #a0acb9;
  --dot: #1c2934;
  --footer: #101821;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.header {
  background: var(--head);
  height: 70px;
}
.nav {
  height: 70px;
  max-width: 1000px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.logo,
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1.6px;
  white-space: nowrap;
}
.logo span:last-child,
.footer-logo span:last-child {
  font-weight: 300;
}
.glasses {
  letter-spacing: -8px;
  margin-right: 11px;
  font-size: 25px;
}
.nav nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}
.tools {
  display: flex;
  gap: 20px;
}
.tools button,
#close-search {
  border: 0;
  background: none;
  font-size: 25px;
  line-height: 1;
  color: var(--muted);
}
#search {
  position: absolute;
  right: max(calc((100vw - 1000px) / 2), 20px);
  top: 70px;
  z-index: 3;
  padding: 16px;
  background: var(--head);
  box-shadow: 0 8px 25px #0003;
}
#search label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
#search input {
  border: 1px solid var(--muted);
  background: var(--bg);
  color: var(--text);
  padding: 9px;
  width: 230px;
}
#close-search {
  margin-left: 8px;
}
.intro,
.posts {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 10px 10px;
}
.intro {
  background-color: var(--intro);
  text-align: center;
  padding: 38px 20px 40px;
}
.content {
  width: min(660px, 100%);
  margin: auto;
}
.cover,
article img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 5px;
}
.intro h1 {
  font-size: 22px;
  margin: 29px 0 24px;
  font-weight: 600;
}
.cursor {
  display: inline-block;
  height: 26px;
  width: 4px;
  background: var(--dot);
  vertical-align: middle;
  margin-left: 5px;
}
.intro p {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 28px;
}
.quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.quick i {
  font-style: normal;
}
.aperture {
  font-size: 27px;
  line-height: 1;
  background: conic-gradient(
    #fc5b4d,
    #f6ce30,
    #52c755,
    #00aaff,
    #6260dc,
    #fc5b4d
  );
  background-clip: text;
  color: transparent;
}
.posts {
  background-color: var(--bg);
  padding: 38px 20px 70px;
}
article {
  text-align: center;
  margin: 0 0 78px;
}
article h2 {
  font-size: 21px;
  margin: 26px 0 4px;
  font-weight: 650;
}
.meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.line {
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin: 24px auto;
}
article p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 14px;
}
.pagination .current {
  background: var(--accent);
  color: white;
}
footer {
  text-align: center;
  background: var(--footer);
  padding: 60px 20px;
  color: var(--muted);
  font-size: 13px;
}
.social {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 12px;
  margin-bottom: 45px;
}
.footer-logo {
  color: var(--text);
  margin-bottom: 25px;
}
footer p {
  margin: 8px;
}
@media (max-width: 760px) {
  .nav {
    padding: 0 20px;
    gap: 15px;
  }
  .nav nav {
    overflow: auto;
    gap: 20px;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .nav nav::-webkit-scrollbar {
    display: none;
  }
  .logo {
    font-size: 18px;
  }
  .tools {
    gap: 8px;
  }
  .cover,
  article img {
    height: auto;
    aspect-ratio: 2.54;
    object-fit: cover;
  }
  .intro {
    padding-top: 25px;
  }
  .intro h1 {
    margin-top: 24px;
  }
  .posts {
    padding-top: 28px;
  }
  article {
    margin-bottom: 60px;
  }
  article h2 {
    font-size: 19px;
  }
  .meta {
    gap: 8px;
  }
  .social {
    gap: 15px;
    flex-wrap: wrap;
  }
}
