:root {
  --brand-blue: #0baee6;
  --verified-blue: #33afed;
  --page-bg: #fafafa;
  --text: #060606;
  --muted: #171717;
  --row-border: #e4e7e9;
  --row-height: 78px;
  --row-radius: 39px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Poppins, Montserrat, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

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

.profile-shell {
  width: min(100%, 768px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--page-bg);
}

.hero {
  height: 160px;
  background: var(--brand-blue);
  border-bottom-right-radius: 24px;
  border-bottom-left-radius: 24px;
}

.identity {
  display: grid;
  justify-items: center;
  margin-top: -121px;
  text-align: center;
}

.avatar {
  display: block;
  width: 238px;
  height: 238px;
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 24px 32px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  object-position: center center;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 47px 0 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

h1 span {
  display: block;
  line-height: 1;
}

h1 img {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  transform: translateY(1px);
}

.identity p {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.links {
  display: grid;
  gap: 24px;
  width: calc(100% - 90px);
  margin: 50px auto 40px;
}

.link-row {
  display: grid;
  grid-template-columns: 62px 1fr 32px;
  align-items: center;
  min-height: var(--row-height);
  padding: 0 32px 0 17px;
  border: 3px solid var(--row-border);
  border-radius: var(--row-radius);
  background: #fff;
  cursor: pointer;
}

.link-row--featured {
  border-color: var(--brand-blue);
}

.icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 48px;
}

.icon img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.icon--lock img {
  width: 40px;
  height: 40px;
}

.label {
  /* overflow: hidden; */
  color: #202124;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row--featured .label {
  font-weight: 800;
}

.chevron {
  justify-self: end;
  color: #1f2224;
  font-size: 45px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.sensitive-modal[hidden] {
  display: none;
}

.sensitive-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(250, 250, 250, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sensitive-modal__content {
  display: grid;
  justify-items: center;
  width: min(100%, 920px);
  text-align: center;
}

.sensitive-modal h2 {
  margin: 0;
  color: #2f3033;
  font-size: clamp(38px, 5.6vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  outline: none;
}

.sensitive-modal p {
  margin: 22px 0 0;
  color: #34363a;
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 400;
  line-height: 1.45;
}

.sensitive-modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.sensitive-modal__button {
  min-width: 168px;
  min-height: 68px;
  padding: 0 32px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.sensitive-modal__button--back {
  background: #555;
}

.sensitive-modal__button--continue {
  background: #1f1f1f;
}

.sensitive-modal__button:focus-visible {
  outline: 3px solid var(--verified-blue);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero {
    height: 160px;
    border-bottom-right-radius: 22px;
    border-bottom-left-radius: 22px;
  }

  .identity {
    margin-top: -104px;
  }

  .avatar {
    width: 204px;
    height: 204px;
    border-width: 5px;
  }

  h1 {
    gap: 9px;
    margin-top: 38px;
    font-size: 31px;
  }

  h1 img {
    width: 28px;
    height: 28px;
  }

  .identity p {
    margin-top: 18px;
    font-size: 19px;
  }

  .links {
    gap: 22px;
    width: calc(100% - 40px);
    margin-top: 46px;
  }

  .link-row {
    grid-template-columns: 54px 1fr 26px;
    min-height: 70px;
    padding: 0 21px 0 15px;
    border-width: 3px;
  }

  .label {
    font-size: 20px;
  }

  .chevron {
    font-size: 40px;
  }

  .sensitive-modal {
    padding: 22px;
  }

  .sensitive-modal__actions {
    width: 100%;
    gap: 10px;
  }

  .sensitive-modal__button {
    min-width: 0;
    width: min(50%, 168px);
    min-height: 62px;
    padding: 0 18px;
    font-size: 20px;
  }
}

@media (max-width: 390px) {
  .hero {
    height: 188px;
  }

  .identity {
    margin-top: -91px;
  }

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

  h1 {
    margin-top: 32px;
    font-size: 28px;
  }

  .identity p {
    font-size: 16px;
  }

  .links {
    width: calc(100% - 28px);
    margin-top: 40px;
  }

  .link-row {
    grid-template-columns: 50px 1fr 24px;
    min-height: 66px;
    padding-right: 18px;
  }

  .label {
    font-size: 18px;
  }

  .sensitive-modal__actions {
    flex-direction: column;
    align-items: center;
  }

  .sensitive-modal__button {
    width: min(100%, 190px);
  }
}
