A Line in the Dark by Malinda Lo
Jess and Angie are best friends, so when Angie comes out and starts dating Margot, a rich girl from a different high school, Jess tries to be supportive. Jess has secretly loved Angie for a long time– and she doesn’t plan on losing their relationship to the shark-infested waters of Angie’s new, cliquish social circle …