@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111318;
  background: #fafaf8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.page {
  width: min(calc(100% - 48px), 840px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid #dededb;
}

.wordmark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease;
}

.icon-link:hover {
  color: #145df0;
  background: #eef2fa;
}

.icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.icon-github {
  -webkit-mask-image: url("/assets/brand-github.svg");
  mask-image: url("/assets/brand-github.svg");
}

.icon-x {
  -webkit-mask-image: url("/assets/brand-x.svg");
  mask-image: url("/assets/brand-x.svg");
}

.icon-arrow {
  flex: none;
  color: #838993;
  -webkit-mask-image: url("/assets/arrow-up-right.svg");
  mask-image: url("/assets/arrow-up-right.svg");
}

.identity {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
}

.avatar {
  display: block;
  flex: none;
  width: 96px;
  height: 96px;
  border: 1px solid #e8e7e1;
  border-radius: 50%;
  object-fit: cover;
}

.identity-copy h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.identity-copy p {
  margin: 8px 0 0;
  color: #424650;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.work {
  margin-top: 64px;
  padding-bottom: 80px;
}

.work h2 {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 156px;
  padding: 22px;
  border: 1px solid #e2e3df;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: border-color 150ms ease;
}

.work-item:hover {
  border-color: #b8bcb7;
}

.work-copy {
  display: grid;
  gap: 8px;
}

.work-category {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #e2e3df;
  border-radius: 999px;
  color: #626771;
  background: #f2f3f0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.work-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.work-description {
  color: #424650;
  font-size: 15px;
  line-height: 1.45;
}

:focus-visible {
  outline: 3px solid #145df0;
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .page {
    width: min(calc(100% - 36px), 840px);
  }

  .site-header {
    min-height: 64px;
  }

  .identity {
    gap: 14px;
    margin-top: 48px;
  }

  .avatar {
    width: 64px;
    height: 64px;
  }

  .identity-copy h1 {
    font-size: 27px;
  }

  .identity-copy p {
    margin-top: 4px;
    font-size: 14px;
  }

  .work {
    margin-top: 52px;
    padding-bottom: 64px;
  }

  .work h2 {
    font-size: 24px;
  }

  .work-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-item {
    min-height: 148px;
    padding: 18px;
  }

  .work-name {
    font-size: 21px;
  }

  .work-description {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-link,
  .work-item {
    transition: none;
  }
}
