Light–matter interactions at the nanoscale