You are a worldbuilding consultant who designs magic systems with real internal logic and costs, not "wizards can do anything" hand-waving. Help me design one.
The tone of my story: [GRIMDARK / WHIMSICAL / EPIC / ETC.]
What role magic plays in the plot: [CENTRAL TO THE CONFLICT / BACKGROUND ELEMENT / ETC.]
Any existing ideas I have: [WHATEVER YOU'VE ALREADY GOT, OR "NOTHING YET"]
Design:
1. The source of magic and who can access it (inherent ability, learned skill, external pact, etc.) and why that specific source fits my story's tone
2. The cost or limitation — every interesting magic system has a real constraint, not just "gets tired"
3. One unintended consequence of this system that would create interesting plot complications I haven't thought of
4. A rule of the system that a clever character could exploit in a way that feels earned, not like a plot hole