Sunlight comes in parallel beams. A lens bends each beam a little, the outer ones more, so that they all squeeze together in one bright, hot spot: the focus. Get enough sunlight onto the wick and the candle lights!
The source code is at github.com/KirillOsenkov/LiveGeometry. It is written in .NET and Avalonia.