Its kinda complicated, really..
When it comes to laid back projects, I plan as I go and things come out smoothly. If it a bit more complicated as a project and some world building is required I have the habit of filling little notebooks (thousands of them honestly) with anything from drafts...