Peter Dickinson's "The Ropemaker"?
Literature
Pretty straightforward: books and literature of all stripes can be discussed here.
If you're interested in posting your own writing, formal or informal, check out the Writing community!
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
Sounds like the other commenter got it. I'm commenting because the only time I've ever posted about a book o couldn't remember was "The Dark Lord of Derkholm" also by Diana Wynn Jones! Great book of you haven't read it. She wrote Howell's Moving Castle too.
Google Gemini sez:
The book you're describing is most likely "The Shadows Between Us" by Tricia Levenseller.
Here's why it matches your description:
Island Nation in the South: The story begins on the island of Iolara, a tropical island with a strict code of conduct called the "Way." Discipline and Quest to the North: The protagonist, Alessandra, is being punished for practicing magic, which is forbidden. She joins a group on a quest to the tyrannical Empire of Aethel in the north. Crown Prince with Magic and Internal Struggle: One of the main characters, Kallias, is revealed to be the crown prince of Aethel. He possesses forbidden magic that manifests as dark veins and threatens to consume him if he uses it too much. Abandoned City, Temple, and Possession: The group ventures into the ruined city of Aethel's former capital and break into a temple. There they encounter the Shadow Queen, an ancient deity who temporarily possesses one of the characters. Evil Palace and Power Struggle: The climax takes place in the Obsidian Palace, carved into a mountain, where Kallias faces betrayal and assassination attempts from his siblings vying for the throne. Although some minor details might not perfectly align with your exact memory, the core plot points you mentioned strongly suggest "The Shadows Between Us" is the book you're looking for.
Unfortunately, that's definitely not it. I've never read anything by Tricia Levenseller. None of the other names align either. :( Thanks for the input though!