:root {
  color-scheme: dark;
  background: #171817;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, p, h1 { margin: 0; }

.profile {
  display: grid;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  align-items: center;
}

picture {
  position: absolute;
  inset: 0 0 0 28%;
  z-index: -1;
}

picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

picture::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #171817 0%, rgb(23 24 23 / 80%) 9%, transparent 40%);
}

.identity {
  width: fit-content;
  padding: 3rem 0 3rem clamp(2rem, 7vw, 10rem);
}

.byline {
  color: #b8b8be;
  font-size: clamp(.95rem, 1.25vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
}

h1 {
  margin: .16em 0 .1em -.035em;
  font-size: clamp(4.25rem, 7vw, 7rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.name {
  color: #e8e8ed;
  font-size: clamp(1.65rem, 2.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.bio {
  margin-top: 1.65rem;
  color: #b8b8be;
  font-size: clamp(1rem, 1.14vw, 1.25rem);
  line-height: 1.6;
}

.contact {
  width: max-content;
}

.platforms {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.6vw, 24px);
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  color: #b8b8be;
}

.platforms svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.wechat-qr {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border-radius: 6px;
}

@media (min-aspect-ratio: 2/1) and (min-width: 701px) {
  picture img { object-fit: contain; object-position: center; }
}

@media (max-width: 700px) {
  .profile {
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100svh;
  }

  picture {
    position: relative;
    inset: auto;
    align-self: stretch;
    min-height: 46svh;
  }

  picture img {
    position: absolute;
    object-position: center 33%;
  }

  picture::after {
    background: linear-gradient(0deg, #171817, transparent 17%);
  }

  .identity {
    padding: 1rem 7vw max(2rem, env(safe-area-inset-bottom));
  }

  h1 { font-size: clamp(3.25rem, 13vw, 5rem); }
  .name { font-size: 1.5rem; }
  .bio { margin-top: .85rem; }
}
