Writing systems

In the study of orthography, what does the term grapheme refer to?