I've heard that the key is air flow on the under side of the roof - that is, soffet vents to let cold air in and ridge vents to let the slightly warmer air out. There is a formula for how much venting you need per square foot of space, but I don't know what it is.
Hope this helps.
Just a Shooter (and home owner)