@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap");

:root {
  --blue: #0050ff;
  --blue-hover: #003dcc;
  --sand: #e6dace;
  --blush: #f4ece6;
  --white: #ffffff;
  --ink: #050505;
  --muted: #5c5854;
  --line: #d8d0c8;
  --shadow: 0 18px 40px rgba(62, 48, 37, 0.14);
  --content: 980px;
  --wide-content: 1120px;
  --header-height: 132px;
  --sans: "Poppins", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

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

html {
  min-width: 0;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.page--sand {
  background: var(--sand);
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 80, 255, 0.38);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--blue);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: var(--header-height);
  background: var(--white);
}

.site-header__inner {
  width: min(calc(100% - 96px), 1340px);
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.brand__name {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand__name::before {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  background: var(--blue);
  content: "";
  flex: 0 0 auto;
}

.brand__divider {
  font-size: 17px;
  font-weight: 300;
}

.brand__role {
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--blue);
}

.site-main {
  min-width: 0;
}

.button {
  display: inline-flex;
  min-width: 132px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.button--primary:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
}

.button--outline:hover {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-heading::before {
  width: 20px;
  height: 20px;
  background: var(--blue);
  content: "";
  flex: 0 0 auto;
}

.page-intro {
  max-width: 700px;
  margin: 42px auto 70px;
  text-align: center;
  font-size: 17px;
  line-height: 1.9;
}

/* About */

.about-hero {
  position: relative;
  min-height: 824px;
  overflow: clip;
}

.about-hero__sand {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--sand);
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--wide-content));
  min-height: 824px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}

.profile-card {
  width: min(100%, 376px);
  min-height: 527px;
  margin: 0 auto;
  color: var(--ink);
  background: var(--blush);
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-card__body {
  min-height: 473px;
  padding: 43px 46px 32px;
}

.profile-card__portrait {
  width: 205px;
  height: 205px;
  margin: 0 auto 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
}

.profile-card__name {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.profile-card__english-name {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.profile-card__line {
  display: block;
  width: 50px;
  height: 2px;
  margin: 26px auto 24px;
  background: var(--blue);
}

.profile-card__role {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.profile-card__footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.about-copy {
  max-width: 520px;
  padding: 30px 0 30px 54px;
}

.about-copy__hello {
  margin: 0 0 16px;
  font-size: clamp(76px, 8.5vw, 102px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.about-copy__tagline {
  margin: 0 0 34px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.about-copy__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
}

.about-copy__bio {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  text-wrap: pretty;
}

.about-copy__bio + .about-copy__bio {
  margin-top: 20px;
}

/* Resume */

.resume-page,
.projects-page {
  min-height: 100vh;
  padding: 106px 32px 118px;
  background: var(--sand);
}

.resume-shell {
  width: min(100%, 820px);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 74px 0 36px;
}

.section-header h2,
.resume-section > h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.resume-list {
  display: grid;
  gap: 34px;
}

.resume-card {
  display: grid;
  grid-template-columns: 31% 69%;
  min-width: 0;
  padding: 56px 50px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.resume-card__meta {
  padding-right: 28px;
}

.resume-card__date {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.resume-card__company {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
}

.resume-card__position,
.resume-card__location {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.resume-card__content {
  min-width: 0;
  font-size: 15px;
  line-height: 1.85;
}

.resume-card__content > :first-child {
  margin-top: 0;
}

.resume-card__content > :last-child {
  margin-bottom: 0;
}

.resume-card__content h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.resume-card__content h4 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.resume-card__content p {
  margin: 0 0 13px;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  margin-top: 11px;
  padding-left: 18px;
}

.detail-list li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--blue);
  content: "";
}

.detail-list strong {
  font-weight: 600;
}

.resume-section {
  margin-top: 86px;
}

.resume-section > h2 {
  margin-bottom: 36px;
}

.credentials-card {
  padding: 50px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 60px;
}

.credentials-group h3 {
  margin: 0 0 21px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.square-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.square-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.65;
}

.square-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--blue);
  content: "";
}

/* Projects */

.projects-shell {
  width: min(100%, 940px);
  margin: 0 auto;
}

.project-list {
  display: grid;
  gap: 64px;
}

.project-card {
  display: grid;
  grid-template-columns: 56% 44%;
  min-width: 0;
  min-height: 430px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card--featured {
  min-height: 485px;
}

.project-card__content {
  position: relative;
  min-width: 0;
  padding: 62px 48px 48px;
}

.project-card__content::before {
  position: absolute;
  top: 67px;
  left: 0;
  width: 10px;
  height: 54px;
  background: var(--blue);
  content: "";
}

.project-card__title {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.project-card__role {
  margin: 0 0 28px;
  font-size: 14px;
  font-weight: 600;
}

.project-card__summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.project-card__highlights {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.7;
}

.project-card__highlights li {
  position: relative;
  padding-left: 17px;
}

.project-card__highlights li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--blue);
  content: "";
}

.project-card__button {
  min-width: 174px;
  margin-top: 30px;
}

.project-card__visual {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  align-self: center;
  margin: 32px;
  overflow: hidden;
  background: #eef1f3;
}

.project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card--featured .project-card__visual img {
  object-position: 40% top;
}

/* GitHub */

.github-shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0 110px;
}

.github-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}

.github-hero .page-heading {
  justify-content: flex-start;
}

.github-hero__intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.github-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.github-status::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1aa56f;
  box-shadow: 0 0 0 5px rgba(26, 165, 111, 0.14);
  content: "";
  flex: 0 0 auto;
}

.github-status[data-state="snapshot"]::before {
  background: #8a8178;
  box-shadow: 0 0 0 5px rgba(138, 129, 120, 0.14);
}

.github-hero__button {
  white-space: nowrap;
}

.github-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.github-repo-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 390px;
  flex-direction: column;
  padding: 36px 34px 30px;
  border-top: 8px solid var(--blue);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(72, 49, 25, 0.13);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.github-repo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(72, 49, 25, 0.18);
}

.github-repo-card:focus-visible {
  outline: 4px solid rgba(0, 80, 255, 0.3);
  outline-offset: 5px;
}

.github-repo-card__top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 13px;
}

.github-repo-card h2 {
  margin: 38px 0 18px;
  overflow-wrap: anywhere;
  font-size: clamp(23px, 2vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.github-repo-card > p {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.75;
}

.github-repo-card__language {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 9px;
  border: 1px solid rgba(0, 80, 255, 0.28);
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.github-repo-card__meta {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e1ddd7;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.github-repo-card__meta time,
.github-repo-card__meta > :last-child {
  justify-self: end;
}

/* Footer */

.site-footer {
  min-height: 118px;
  padding: 26px 48px;
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(130px, 0.65fr));
  align-items: center;
  gap: 28px;
  background: var(--white);
  font-size: 12px;
  line-height: 1.55;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__item {
  text-align: center;
}

.site-footer__item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
}

.site-footer__item a:hover {
  color: var(--blue);
}

/* One orchestrated load */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js body.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js body.is-ready .reveal:nth-child(2) {
  transition-delay: 70ms;
}

@media (max-width: 1100px) {
  .site-header__inner {
    width: min(calc(100% - 48px), 1340px);
  }

  .brand__role {
    font-size: 14px;
  }

  .site-nav {
    gap: 22px;
  }

  .about-hero__inner {
    width: min(calc(100% - 40px), var(--wide-content));
  }

  .about-copy {
    padding-left: 34px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: auto;
  }

  .site-header__inner {
    min-height: 0;
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .brand {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .brand__name {
    flex-basis: auto;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px 24px;
  }

  .about-hero {
    min-height: 0;
    padding: 64px 24px 76px;
    background: var(--white);
  }

  .about-hero__sand {
    display: block;
    inset: 0 auto auto 0;
    width: 35%;
    height: 620px;
  }

  .about-hero__inner {
    width: min(100%, 640px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .profile-card {
    margin-left: 0;
  }

  .about-copy {
    max-width: none;
    padding: 0;
  }

  .about-copy__hello {
    font-size: clamp(68px, 18vw, 92px);
  }

  .resume-page,
  .projects-page {
    padding: 78px 24px 90px;
  }

  .github-shell {
    padding: 78px 0 90px;
  }

  .github-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .github-hero__button {
    justify-self: start;
  }

  .github-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resume-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .resume-card {
    padding: 42px 36px;
  }

  .resume-card__meta {
    padding: 0 0 26px;
  }

  .project-card__visual {
    grid-row: 1;
  }

  .project-card__content {
    grid-row: 2;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .site-footer__copyright {
    grid-column: 1 / -1;
    text-align: center;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .site-header__inner {
    width: min(calc(100% - 36px), 1340px);
  }

  .brand__name {
    font-size: 21px;
  }

  .brand__divider {
    display: none;
  }

  .brand__role {
    width: 100%;
    padding-left: 26px;
    font-size: 13px;
  }

  .site-nav {
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }

  .about-hero {
    padding: 42px 18px 62px;
    background: var(--white);
  }

  .about-hero__sand {
    width: 26%;
    height: 560px;
  }

  .profile-card {
    width: min(100%, 350px);
    min-height: 0;
  }

  .profile-card__body {
    min-height: 0;
    padding: 34px 28px 30px;
  }

  .profile-card__portrait {
    width: 168px;
    height: 168px;
  }

  .profile-card__name {
    font-size: 25px;
  }

  .profile-card__role {
    font-size: 14px;
  }

  .profile-card__footer {
    gap: 16px;
    font-size: 11px;
  }

  .about-copy__tagline {
    font-size: 22px;
  }

  .about-copy__actions {
    flex-wrap: wrap;
    margin-bottom: 36px;
  }

  .about-copy__bio {
    font-size: 16px;
  }

  .resume-page,
  .projects-page {
    padding: 58px 18px 72px;
  }

  .github-shell {
    width: calc(100% - 36px);
    padding: 58px 0 72px;
  }

  .github-hero__intro {
    margin-top: 18px;
    font-size: 15px;
  }

  .github-status {
    font-size: 11px;
  }

  .github-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 40px;
  }

  .github-repo-card {
    min-height: 320px;
    padding: 28px 25px 24px;
  }

  .github-repo-card h2 {
    margin: 28px 0 14px;
  }

  .github-repo-card__meta {
    gap: 8px;
  }

  .page-heading {
    font-size: 36px;
  }

  .page-heading::before {
    width: 17px;
    height: 17px;
  }

  .page-intro {
    margin: 32px auto 50px;
    font-size: 15px;
  }

  .section-header {
    margin-top: 56px;
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-card {
    padding: 34px 25px;
  }

  .resume-card__date {
    font-size: 18px;
  }

  .resume-card__content {
    font-size: 14px;
  }

  .credentials-card {
    padding: 34px 25px;
  }

  .project-list {
    gap: 42px;
  }

  .project-card__content {
    padding: 42px 27px 38px;
  }

  .project-card__content::before {
    top: 46px;
    width: 7px;
    height: 46px;
  }

  .project-card__title {
    font-size: 21px;
  }

  .site-footer {
    padding: 34px 18px;
    grid-template-columns: 1fr;
  }

  .site-footer__copyright,
  .site-footer__item {
    grid-column: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
