Song Of The Lioness, or anything else by Tamora Pierce

In this first quartet Alanna wants to be a knight, but girls can’t be knights so she cuts off her hair, trades places with her identical twin brother, and goes off to the castle. In the ensuing four books she gets hurt a lot, has some good sex (off camera), fights monsters, hangs out with goddesses and gods, and saves the kingdom all the time. There are a lot of other stories set in the same kingdom, Tortall, as well as some unrelated ones. Tamora Pierce is explicitly and clearly feminist and queer-positive in her portrayals, and while she’s against gender-based oppression also doesn’t disparage femininity, and her female characters are very comfortable in their girl/womanhood.