Question: why aperture affects depth of field?
Answer: It has to do with the fact that shrinking the aperture makes the “bent light cone” get narrower, which in turn shrinks the circle of confusion. This allows for a wider focus range and hence a larger depth of field.