Text this: First-principles simulations in condensed matter physics and their application to giant planets