While other girls her age learned only sewing and manners, Maria studied mathematics and read navigation charts by candlelight.