EON and EONA by Alison Goodman. This is an award winning fantasy series for young adults.