A planet fragment orbiting a dying star offers a glimpse at Earth’s grim future