/* Home — link-in-bio page */

/* The original site follows the visitor's light / dark setting. Light is the base. */
body.home {
  --page: rgb(247, 247, 248);
  --surface: rgb(242, 242, 242);
  --line: rgb(236, 236, 238);
  --line-strong: rgb(200, 200, 205);
  --text: rgb(0, 0, 0);
  --muted: rgb(41, 41, 48);
  --focus: rgb(0, 0, 0);
  background: var(--page);
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  body.home {
    --page: rgb(15, 15, 16);
    --surface: rgb(25, 25, 26);
    --line: rgb(40, 40, 42);
    --line-strong: rgb(72, 72, 76);
    --text: rgb(255, 255, 255);
    --muted: rgb(142, 142, 147); /* was rgb(41,41,48): unreadable on the dark page */
    --focus: rgb(255, 255, 255);
  }
}
body.home :focus-visible {
  outline-color: var(--focus);
}

.bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 96px 16px 48px;
  overflow: hidden;
}

.bio__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  max-width: 520px;
}

/* ---------- Header ---------- */
.bio__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 8px 16px;
}

.bio__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.bio__avatar {
  width: 96px;
  height: 96px;
  border-radius: 99px;
  object-fit: cover;
  object-position: center;
}

.bio__title {
  width: 100%;
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: -1.2px;
  text-align: center;
  color: var(--text);
}
.bio__title span {
  display: inline-block;
  background-image: linear-gradient(0deg, var(--text) 74.9507%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Social chips ---------- */
.chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: none;
  padding: 0 16px;
}

.chip {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 8px 14px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 400;
  line-height: 13px;
  color: var(--text);
  white-space: pre;
  transition: background-color 0.2s ease;
}
.chip:hover,
.chip:focus-visible {
  background-color: var(--surface);
}
/* enlarge the tap area to 44px without changing the look */
.chip::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}

.chip__icon {
  flex: none;
}
.chip__icon--youtube {
  width: 19px;
  height: 16.89px;
  fill: rgb(255, 0, 0);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.chip__icon--mail {
  width: 16px;
  height: 16px;
  fill: rgb(79, 79, 79);
}
.chip--instagram {
  padding: 8px 10px 8px 4px;
}
.chip__icon--instagram {
  width: 37px;
  height: 37px;
  margin: -1px 0 -1px;
  object-fit: cover;
}

.chips--phone {
  display: none;
}

/* ---------- Link cards ---------- */
.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: calc(100% + 14px);
}
.links--phone {
  display: none;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px;
  border-radius: 6px;
  background-color: var(--surface);
  color: var(--text);
}
.links--desktop .link-card:last-child {
  width: calc(100% - 3px);
}
/* separator line that sits just under each card */
.link-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 1px;
  background-color: var(--line);
  z-index: 1;
  pointer-events: none;
}

.link-card__text {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 132px;
}
.link-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 18.2px;
  letter-spacing: -0.2px;
  white-space: pre;
}
.link-card__sub {
  font-size: 13px;
  font-weight: 400;
  line-height: 16.9px;
  letter-spacing: -0.2px;
}

.link-card__btn {
  position: absolute;
  top: 17.2px;
  right: 16.4px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 6px;
  background-color: var(--page);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  letter-spacing: -0.3px;
  white-space: pre;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.link-card:hover .link-card__btn,
.link-card:focus-visible .link-card__btn {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ---------- Footer ---------- */
.bio__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 154.5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
  color: var(--muted);
  white-space: pre;
}
.bio__footer i {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background-color: var(--surface);
}

/* ---------- Phone ---------- */
@media (max-width: 809.98px) {
  .bio {
    padding: 84px 16px 170px;
  }
  .bio__main {
    gap: 0;
  }
  .bio__header {
    gap: 24px;
  }
  .bio__title br {
    display: none;
  }

  .chips--desktop {
    display: none;
  }
  .chips--phone {
    display: flex;
  }
  .chips--phone.chips--pair {
    gap: 30.4px;
    margin-left: 8.3px;
  }
  .chips--phone.chips--pair .chip:first-child {
    padding: 8px 9px 8px 10px;
  }
  .chips--phone.chips--single {
    margin-left: 14.6px;
  }

  .links--desktop {
    display: none;
  }
  .links--phone {
    display: flex;
    gap: 0;
    width: calc(100% + 18px);
    margin: 10px -9px 0;
  }

  .bio__footer {
    margin-top: 29.5px;
  }
  .bio__footer i {
    display: none;
  }
}
