Light–matter interaction at atomic scales