The solar panel and price tags is the real stumbling block.
If you simply use a solar panel and diode it will charge a battery and if the panel is small and battery large this works OK I use it to keep caravan battery topped up.
As the panel size increases then one has to include a regulator the simple regulator converts excess into heat but the panel is not very efficient using this method.
So as the panel size increases more then one uses a special controller which runs the panel and varying voltages to extract the maximum out of the panel then converts the power to voltage required to charge the battery and temporary stores the power sending pulses of power to battery and measuring the battery voltage between pulses to work out the maximum safe power it can put into the battery without damaging the battery.
PWM regulation is expensive this one at £134 is not the cheapest and a
MPPT regulator can cost more and it is the regulator which decides how much power you get from the panel.
There are some
Cheap Ebay MPPT regulators which are designed to do exactly what you want with an output which auto turns on lights as the panel stops charging how good the cheap controllers are is another question.
The balance between battery, controller, and panel sizes is not easy to work out. A traction battery should last around 7 years but ask any narrow boat user and they well tell you your lucky to get 2 years. It is because often the batteries never get an equalising charge in fact lucky if ever fully charged.
So in other words it's a can of worms and be it solar or wind it's still a bit hit and miss. A bike front wheel with a hub dynamo (not really a dynamo they are alternators) with the rim replaced with a wide band and insulation tape around the spokes just placed to get prevailing wind will work and light the garden in poor weather but my attempts to store the power failed as rarely got the voltage high enough.
Wind chargers all use permanent magnets so use the same controller as solar panels in fact Rutford make regulators designed for both inputs I am told by boat owners the combination of wind and solar works far better than either alone.
I would suggest you take a walk along the local cut and ask canal boat owners as they use both solar and wind a lot and will likely give you a lot of first hand advice. In the main they are a friendly lot.